i am beginner in programming WPF - and sorry for my English :).
I am trying lern to use namespace and class in WPF.
I have to question :
1) In the DictionaryResource I can create ContextMenu and later assign this ConterxtMenu to TextBox ( using StaticResource ).
The same I can achieve when I using UserControl ( I create ContextMenu as UserControl and assign to TextBox ).
Do any of these ways is preferred for certain applications such as DictionaryResource apply rather to give the appearance rather than creating the whole ContextMenu?
Are there other ways to share the code?
2) I created such a ContextMenu in ResourceDIctionary (in a separate file.)
It has two entries such as "Show", "Close." Signed it to a TextBox in my main window.
And now how to call the (assigned) ContextMenu event to "Show" to change the text in the TextBox?
View Complete Post