silverlight 4的button.content属性不能用
lotab 2010-11-02 10:57:07 RT,SL版本4.0.50917
用VS2010建一个SilverlightApplication
MainPage代码如下
<UserControl x:Class="SilverlightApplication4.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400">
<Grid x:Name="LayoutRoot" Background="White">
<Button Height="23" HorizontalAlignment="Left" Margin="197,142,0,0" Name="button1" VerticalAlignment="Top" Width="75" IsEnabled="False">
<Button.Content>
dfdfafda
</Button.Content>
</Button>
<Button Content="Button" Height="23" HorizontalAlignment="Left" Margin="197,211,0,0" Name="button2" VerticalAlignment="Top" Width="75" />
</Grid>
</UserControl>
编译会报错,求高手,问SL4里是不是button.content的属性不能这么写?