I have created a context menu in a textbox contained inside a stakpanel.
Now when the context menu appears I click on 'Open Query' inside that context menu.
I handle this click in
Now when the context menu appears I click on 'Open Query' inside that context menu.
I handle this click in
private void OnMenuItemClicked(object sender, RoutedEventArgs args)
{
RadRoutedEventArgs e = args as RadRoutedEventArgs;
RadMenuItem item = e.OriginalSource as RadMenuItem;
if (item.Header.ToString() == "Open Query")
{
this
.toolKitPanel.Visibility = Visibility.Visible;
}
Now, when I set the toolkitPanel visibility to visible, nothing change in the GUI. as if the GUI isn't updated.
Any explanation to this?
I have tried the UpdateLayout() method but it didn't help.
Thanks