I'm writing a fairly big interface using Silverlight. As I progress, the xaml
file is getting fairly big and is becoming proportionally uglier.
grids
and stack panels
. Is there a preferred approach when using one or the other?I am looking for advice and links to other resources that can be used as examples.
If you have lots of complex XAML, you could try to break it down into several UserControls to make it more modular and have less XAML in each file.
Here is a tutorial http://silverlight.net/learn/tutorials/usercontrols.aspx
And here is a video http://silverlight.net/learn/learnvideo.aspx?video=52036
This may be the same as the XAML best practices question, where the recommendation was to take a look at http://dotnet.org.za/rudi/archive/2009/01/13/xaml-guidelines-released.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With