2011-07-11 38 views
3

说我有这个UserControl并且想要将属性移动到某个样式而无需手动进行操作?如何将属性移动到Expression Blend中的样式

<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/interactions" 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> 

所以,我想创建一个新的风格,并将BorderThickness和背景移动到新的风格?

回答

3
+0

我知道如何风格。我希望Expression Blend将所有按钮属性移动到我的样式中,因此我不必自己复制和粘贴它。我想知道Expression Blend是否可以做到这一点? –

+0

查看我添加的链接。 – BentOnCoding

+1

谢谢你的工作。然而,它似乎是在复制这些属性而不幸地不移动它们。 –