![]() If you look at the XAML file now, you will see Menu code like below where you can see BorderThickness is set to 2, Background is set to Blue, and Menu.BitmapEffect element is added within the Menu element. For example, I set BorderThickness to 2, BitmapEffect to DropShadowEffect, and Background to Blue as shown in Figure 2.įigure 2. Once you set properties in the Properties window, the respective XAML code is written in the XAML file by the designer. If you right click on the menu control and select Properties menu item, you will see the Properties window same as Figure 1.Īs you can see from Figure 1, you can set all properties of a Menu control through this Window such as border thickness, opacity, bitmap effects, background and foreground colors, alignments, width and height, layouts, and fonts. You may use the Properties windows, set properties in XAML manually, or set properties at run-time using WPF code. ![]() ![]() There are three ways to set menu control properties. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |