DSF.Net/Controllers/Switch/TitledSwich1.xaml

(完整代码) 1KB

<UserControl x:Class="DSF.Net.Controllers.Switch.TitledSwich1"
             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" 
             xmlns:local="clr-namespace:DSF.Net.Controllers.Switch"
             mc:Ignorable="d" 
             d:DesignHeight="20" d:DesignWidth="150">
    <Viewbox>
    <Grid Height="20" Width="150">
        <Label x:Name="TitleLabel" Content="TitledSwitch1" Margin="0,0,59.08,0" Foreground="{Binding Path=ThemeColor.TextEnabled}" VerticalContentAlignment="Center" Padding="0" FontSize="15" FontFamily="/WpfApp1;component/Resource/Font/#MJNgai PRC Medium_Dospy-DDC" VerticalAlignment="Top" Height="20"/>
        <Grid x:Name="SwitchOff" HorizontalAlignment="Right" Width="50" Height="20" Visibility="Hidden">
            <Rectangle Margin="3.067,2,2.933,1.999" RadiusX="8" RadiusY="8" Height="16" Opacity="0.7" Fill="#FF310C09"/>
            <Label x:Name="LabelOff"  Content="Off" Margin="10.334,2.003,10.666,1.999" Foreground="{Binding Path=ThemeColor.TextDisabled}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Padding="0" FontSize="11" Background="#00818181"/>
        </Grid>

        <Grid x:Name="SwitchOn"  HorizontalAlignment="Right" Width="50">

            <Rectangle Margin="3.067,2,2.933,1.999" RadiusX="8" RadiusY="8" Height="16" Fill="{Binding Path = ThemeColor.Light}"/>
            <Label x:Name="LabelOn"  Content="On" Margin="10.833,2,10.167,2" Foreground="{Binding Path=ThemeColor.TextEnabled}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Padding="0" FontSize="11"/>
        </Grid>
        <Rectangle x:Name="Touch" Fill="#FFF4F4F5" HorizontalAlignment="Right" Stroke="Black" Width="50" Opacity="0" Height="20" VerticalAlignment="Top"/>
    </Grid>
        </Viewbox>
</UserControl>

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

AI 解读 AI

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

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