Daniel Daniel - 7 months ago 77
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?">


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}">