Template and Themes in WPF through Custom Xaml Files

Posted by AKRamkumar on Stack Overflow See other posts from Stack Overflow or by AKRamkumar
Published on 2010-05-17T22:22:25Z Indexed on 2010/05/17 22:30 UTC
Read the original article Hit count: 297

Filed under:
|
|
|
|

I have an application where I give my user Widgets. Suppose my user wants to customize the layout of the widgets.

For example, I have a clock that is green. In Xaml, to add an animation around the clock would be easy.

How could i make it such that at runtime, my application reads a layout.xaml file. Loads it and parses all the gradients and xaml. But still be able to use my widget in there.

EG

<Layout>
<Grid>
<!-- Grid Definitions or Animations or Whatever-->
      <Clock/> <!-- They need to be able to simply
      use this and my applications needs to read this-->
</Grid>
</Layout>

© Stack Overflow or respective owner

Related posts about wpf

Related posts about gui