ATWPF.Theme/LayoutControl/TextBlockPropertyCtl.xaml

(完整代码) 2KB

<UserControl x:Class="ATWPF.Theme.LayoutControl.TextBlockPropertyCtl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             Background="Aquamarine">
    <UserControl.Resources>
        <Style TargetType="StackPanel">
            <Setter Property="Orientation" Value="Horizontal"/>
            <Setter Property="Margin" Value="3"/>
        </Style>
        <Style TargetType="TextBlock">
            <Setter Property="TextAlignment" Value="Center"/>
            <Setter Property="Width" Value="70"/>
        </Style>
        <Style TargetType="TextBox">
            <Setter Property="Width" Value="70"/>
        </Style>
    </UserControl.Resources>
    <WrapPanel Width="150" Height="180">
        <StackPanel>
            <TextBlock Text="Top:"/>
            <TextBox Text="{Binding Path=Canvas.Top,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBox>
        </StackPanel>
        <StackPanel >
            <TextBlock Text="Left:"/>
            <TextBox Text="{Binding Path=Left,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBox>
        </StackPanel>
        <StackPanel >
            <TextBlock Text="Width:"/>
            <TextBox Text="{Binding Path=Width,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBox>
        </StackPanel>
        <StackPanel >
            <TextBlock  Text="Height:"/>
            <TextBox Text="{Binding Path=Height,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBox>
        </StackPanel>
        <StackPanel >
            <TextBlock Text="FontSize:"/>
            <TextBox Text="{Binding Path=FontSize,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBox>
        </StackPanel>
        <StackPanel >
            <TextBlock Text="Background:"/>
            <TextBox Text="{Binding Path=Background,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBox>
        </StackPanel>
</WrapPanel>
</UserControl>

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。