I miss something similar to the CleanCode book for xaml. How should I structure the XAML?
? All attributes in one line? One attribute per line?
<TextBlock Grid.Column="2"
Margin="2"
Text="{Binding TotalCheckedTagCount, FallbackValue=0}"
Foreground="Black"
FontWeight="Bold"
FontSize="14"
HorizontalAlignment="Right"
/>
? Which properties first? The Gridposition? The name? The Binding?
? Should I put the closing xml tag on the same line or on a new one?
<TextBlock
<!-- .... -->
/>
<TextBlock
<!-- .... --> />
and so on... I'd just like to know if there is already an existing guide before I spent time with creating one myself. So far I've had no luck in finding one.
Edit: Two interesting guides provided by mm8:
https://github.com/cmaneu/xaml-coding-guidelines
https://paulstovell.wordpress.com/2007/05/04/xaml-and-wpf-coding-guidelines/
They cover topics like, naming, attribut placment, closing tags, resources handling etc.