Daniel Daniel - 1 year ago 137
C# Question

Undestanding XAML syntax

I have a Theme attribute that I can load like this:


AeroTheme is a class. How can I achieve the same result via attributes?

<xcad:DockingManager Theme="What should I write here?">

Answer Source

You need an instance of that theme, which you can provide as a static resource. For example if the parent control is a grid:

  <xcad:AeroTheme x:Key="myTheme"/>

<xcad:DockingManager Theme="{StaticResource myTheme}">
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download