Hello,
I have a user control that contains a text box and a search button. This user control has been added to a RadMenu as follows:
<telerik:RadMenu HorizontalAlignment="Stretch" DataContext="{Binding SimpleSearchViewModel}">
<telerik:RadMenu.ItemsPanel>
<ItemsPanelTemplate>
<DockPanel HorizontalAlignment="Stretch" />
</ItemsPanelTemplate>
</telerik:RadMenu.ItemsPanel>
<telerik:RadMenu.Items>
<telerik:RadMenuItem Header="Menu1" />
<telerik:RadMenuItem Header="Menu2" />
<telerik:RadMenuItem HorizontalAlignment="Right">
<telerik:RadMenuItem.Header>
<searchctrls:SimpleSearchView />
</telerik:RadMenuItem.Header>
</telerik:RadMenuItem>
</telerik:RadMenu.Items>
</telerik:RadMenu>
This seems to work fine. The problem I am experiencing is that when the user control (SimpleSearchView) is focused, say, with the cursor in the textbox, it takes two (2) clicks to close the application using the "X" at the corner of the window. This behavior does not seem to appear with any other UI item in my application, i.e. I can focus the textbox in the SimpleSearchView control and then click another menu item without a problem.
Could you help me resolve this issue?
Let me know if a separate sample project would be helpful.
Many thanks
I have a user control that contains a text box and a search button. This user control has been added to a RadMenu as follows:
<telerik:RadMenu HorizontalAlignment="Stretch" DataContext="{Binding SimpleSearchViewModel}">
<telerik:RadMenu.ItemsPanel>
<ItemsPanelTemplate>
<DockPanel HorizontalAlignment="Stretch" />
</ItemsPanelTemplate>
</telerik:RadMenu.ItemsPanel>
<telerik:RadMenu.Items>
<telerik:RadMenuItem Header="Menu1" />
<telerik:RadMenuItem Header="Menu2" />
<telerik:RadMenuItem HorizontalAlignment="Right">
<telerik:RadMenuItem.Header>
<searchctrls:SimpleSearchView />
</telerik:RadMenuItem.Header>
</telerik:RadMenuItem>
</telerik:RadMenu.Items>
</telerik:RadMenu>
This seems to work fine. The problem I am experiencing is that when the user control (SimpleSearchView) is focused, say, with the cursor in the textbox, it takes two (2) clicks to close the application using the "X" at the corner of the window. This behavior does not seem to appear with any other UI item in my application, i.e. I can focus the textbox in the SimpleSearchView control and then click another menu item without a problem.
Could you help me resolve this issue?
Let me know if a separate sample project would be helpful.
Many thanks