Skip to content

Commit

Permalink
Added right-click options to angle selection.
Browse files Browse the repository at this point in the history
  • Loading branch information
vchelaru committed Dec 23, 2024
1 parent 8a3c1f9 commit e6dfda6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion WpfDataUi/Controls/AngleSelectorDisplay.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@
PreviewKeyDown="TextBox_PreviewKeyDown_1"
LostFocus="TextBox_LostFocus_1"
Margin="0,0,13,0"
/>
>
<TextBox.ContextMenu>
<ContextMenu>
</ContextMenu>
</TextBox.ContextMenu>
</TextBox>
<decorators:NoSizeDecorator>
<TextBlock IsHitTestVisible="False"
VerticalAlignment="Center"
Expand Down
2 changes: 2 additions & 0 deletions WpfDataUi/Controls/AngleSelectorDisplay.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ public AngleSelectorDisplay()
mTextBoxLogic = new TextBoxDisplayLogic(this, this.TextBox);

this.RefreshContextMenu(TopRowGrid.ContextMenu);
this.RefreshContextMenu(TextBox.ContextMenu);

// do we have to refresh the context menu? We do in the TextBoxDisplay
}
Expand Down Expand Up @@ -282,6 +283,7 @@ public void Refresh(bool forceRefreshEvenIfFocused = false)
this.Label.Content = InstanceMember.DisplayName;

this.RefreshContextMenu(TopRowGrid.ContextMenu);
this.RefreshContextMenu(TextBox.ContextMenu);

HintTextBlock.Visibility = !string.IsNullOrEmpty(InstanceMember?.DetailText) ? Visibility.Visible : Visibility.Collapsed;
HintTextBlock.Text = InstanceMember?.DetailText;
Expand Down

0 comments on commit e6dfda6

Please sign in to comment.