111,126
社区成员
发帖
与我相关
我的任务
分享
<UserControl x:Class="Test02.UC"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Test02"
Height="300" Width="300">
<StackPanel>
<CheckBox x:Name="Chb" Content="Chb_Content"/>
<TextBlock x:Name="Tb" Text="Tb_Content"/>
</StackPanel>
</UserControl>
public TextBlock TB
{
set{this.Tb = value;}
get{return this.Tb;}
}
<Grid>
<local:UC Background="LightBlue">
<local:UC.TB Text="ABC"/>
</local:UC>
</Grid>