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/up-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的属性不能这么写?
用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/up-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的属性不能这么写?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货