Select to view content in your preferred language

Sample Code for Opening a user control widget

742
0
09-29-2010 10:49 AM
ShaningYu
Honored Contributor
I loaded a sample code into the \UserControls\ folder of the project.  I want to load the widget (e.g. myControl.xaml as well as myControl.xaml.cs) as a MenuItem through a menu.   The related code is below:

                    <Button x:Name="myMenuItem1"
                            Style="{StaticResource MenuItem}"
                            ToolTipService.ToolTip="Your First Menu Here!"
                            Content="SubMenu #1" >

I tried to find a piece of sample code to triggle the widget but not successful.  If you know how, I will appreciate your help.  Thanks.
0 Kudos
0 Replies