Some features of styles are :
- Style exists only within one WPF app. - cannot be applied to anything outside of the WPF application in which they exist, nor can they be applied to any WinForms controls hosted within a WPF Window.
- separation of presentation and logic. This means that designers can work on the appearance of an application by using only XAML at the same time that developers work on the programming logic by using C# or Visual Basic.
Let see an example without style.
<StackPanel>
<Label Background="YellowGreen"
FontStyle="Normal"
Padding="8,4"
Margin="4"
Height="38"
Width="68">Without</Label>
<Label Background="YellowGreen"
FontStyle="Normal"
Padding="8,4"
Margin="4"
Width="70"
Height="34">Style</Label>
</StackPanel>
0 comments:
Post a Comment