This is a migrated thread and some comments may be shown as answers.

ContextMenu in a TextBox

1 Answer 69 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Joseph
Top achievements
Rank 1
Joseph asked on 29 Jun 2009, 12:46 PM
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

 

 

 

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

 

1 Answer, 1 is accepted

Sort by
0
Joseph
Top achievements
Rank 1
answered on 29 Jun 2009, 01:22 PM
False alarm. The height of the panel was set to 0 in the designer.
Tags
General Discussions
Asked by
Joseph
Top achievements
Rank 1
Answers by
Joseph
Top achievements
Rank 1
Share this question
or