Textbox selection loses highlight color when context menu shown

Editors for WPF Forum

Posted 10 years ago by stewart johnson
Version: 13.2.0590
Avatar

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?

  1. create a new wpf project
  2. add a actipro textbox
  3. add a contextmenu to the actipro textbox
  4. add a .net textbox
  5. add a contextmenu to the .net textbox
  6. launch the application.
  7. put some text in both text boxes
  8. select some text in the .net textbox
  9. right click on the .net textbox to bring up the context menu(notice the selection is still visible)
  10. select some text in the actipro textbox
  11. 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>

Comments (2)

Answer - Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Stewart,

Thanks for letting us know about this.  We've updated it for the next maintenance release.


Actipro Software Support

Posted 10 years ago by stewart johnson
Avatar

FYI The MaskedTextbox has the same problem.

 

Stewart

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.