Template and Themes in WPF through Custom Xaml Files
- by AKRamkumar
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>