DSF.Net/Controllers/Label/AlertIndicator.xaml

(完整代码) 2KB

<UserControl x:Class="DSF.Net.Controllers.Label.AlertIndicator"
             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.Label"
             mc:Ignorable="d" 
             d:DesignHeight="20" d:DesignWidth="100">
    <Viewbox>
        <Grid Width="100" Height="20">
            <Grid x:Name="bg" RenderTransformOrigin="0,0.5" Width="16" HorizontalAlignment="Left" Height="20" Opacity="0.3">

                <Rectangle x:Name="Rec2" Fill="{Binding Path=ThemeColor.Alert}" Width="4" HorizontalAlignment="Left" Height="20"/>
                <Rectangle x:Name="Rec1_Copy2" Fill="{Binding Path=ThemeColor.Alert}" Width="4" HorizontalAlignment="Left" Height="20" Margin="6,0,0,0"/>
                <Rectangle x:Name="Rec1_Copy3" Fill="{Binding Path=ThemeColor.Alert}" Width="4" HorizontalAlignment="Left" Height="20" Margin="12,0,-2,0"/>
            </Grid>

            <Grid x:Name="AlertGrid" RenderTransformOrigin="0,0.5" Width="16" HorizontalAlignment="Left" Height="20">

                <Rectangle x:Name="Rec1" Fill="{Binding Path=ThemeColor.Alert}" Width="4" HorizontalAlignment="Left" Height="20"/>
                <Rectangle x:Name="Rec1_Copy1" Fill="{Binding Path=ThemeColor.Alert}" Width="4" Height="20" Margin="6,0,0,0" HorizontalAlignment="Left"/>
                <Rectangle x:Name="Rec1_Copy" Fill="{Binding Path=ThemeColor.Alert}" Width="4" HorizontalAlignment="Left" Height="20" Margin="12,0,0,0"/>
            </Grid>
            <Label x:Name="labelText" Content="ALERT LEVEL" Foreground="{Binding Path=ThemeColor.TextEnabled}" FontFamily="/WpfApp1;component/Resource/Font/#MJNgai PRC Medium_Dospy-DDC" FontSize="14" Padding="0" HorizontalContentAlignment="Right" VerticalContentAlignment="Center" HorizontalAlignment="Right" Width="85"/>

        </Grid>
    </Viewbox>
</UserControl>

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

AI 解读 AI

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

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