c# - Undestanding XAML syntax -


i have theme attribute can load this:

 <xcad:dockingmanager>             <xcad:dockingmanager.theme>                 <xcad:aerotheme>                 </xcad:aerotheme>             </xcad:dockingmanager.theme> 

aerotheme class. how can achieve same result via attributes?

 <xcad:dockingmanager  theme="what should write here?"> 

you need instance of theme, can provide static resource. example if parent control grid:

<grid.resources>   <xcad:aerotheme x:key="mytheme"/> </grid.resources>  <xcad:dockingmanager theme="{staticresource mytheme}"> 

Comments