
When you select text inside an actipro textbox the selected text becomes highlighted.
if you right click to bring up a context menu the selected text loses its highlight color
A standard wpf textbox does not behave this way.
Is there a way to make the actipro behave like the .net textbox?
- create a new wpf project
- add a actipro textbox
- add a contextmenu to the actipro textbox
- add a .net textbox
- add a contextmenu to the .net textbox
- launch the application.
- put some text in both text boxes
- select some text in the .net textbox
- right click on the .net textbox to bring up the context menu(notice the selection is still visible)
- select some text in the actipro textbox
- right click on the .net textbox to bring up the context menu(notice the selection is not visible)
<Window x:Class="WpfApplication4.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525" xmlns:editors="http://schemas.actiprosoftware.com/winfx/xaml/editors">
<Grid>
<editors:TextBox HorizontalAlignment="Left" Margin="121,204,0,0" Name="textBox1" VerticalAlignment="Top" Width="273" >
<editors:TextBox.ContextMenu>
<ContextMenu>
<MenuItem Header="test"></MenuItem>
</ContextMenu>
</editors:TextBox.ContextMenu>
</editors:TextBox>
<TextBox Height="23" HorizontalAlignment="Left" Margin="109,269,0,0" Name="textBox2" VerticalAlignment="Top" Width="120" >
<TextBox.ContextMenu>
<ContextMenu>
<MenuItem Header="test"></MenuItem>
</ContextMenu>
</TextBox.ContextMenu>