How do you move attributes to a style in Expression Blend
Say I have this UserControl and want to move the attributes to a style without having to manually doing it?
<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ei="http://schemas.microsoft.com/expression/2010/inter开发者_如何转开发actions" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
x:Class="Testing.MainPage"
Width="640" Height="480">
<Grid x:Name="LayoutRoot" Background="White">
<Button x:Name="mybutton"
Content="Button"
BorderThickness="5"
Background="Red" />
</Grid>
</UserControl>
So I want to create a new style and move BorderThickness and Background to the new style?
apparently you can do this.
Check this out: http://dotneteers.net/blogs/vbandi/archive/2010/01/19/extract-styles-in-expression-blend.aspx
精彩评论