开发者

How do you move attributes to a style in Expression Blend

开发者 https://www.devze.com 2023-03-19 01:47 出处:网络
Say I have this UserControl and want to move the attributes to a style without having to manually doing it?

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号