LunarBrushManager/BrushPicker.xaml
(开头部分) 16KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<UserControl x:Class="SHomeWorkshop.LunarTools.BrushPicker"
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"
mc:Ignorable="d" RenderOptions.EdgeMode="Aliased"
Background="White">
<Border Name="baseBorder" BorderBrush="LightBlue" BorderThickness="1" Padding="2"
Background="White" MouseDown="baseBorder_MouseDown">
<StackPanel Orientation="Vertical">
<StackPanel.Resources>
<Style TargetType="Border" x:Name="borderStyle">
<Setter Property="BorderBrush" Value="Black"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Margin" Value="0,0,1,1"/>
<EventSetter Event="MouseLeftButtonDown" Handler="Border_MouseLeftButtonDown"/>
<Style.Triggers>
<Trigger Property="Border.IsMouseOver" Value="True">
<Setter Property="BorderBrush" Value="Red"/>
</Trigger>
</Style.Triggers>
</Style>
</StackPanel.Resources>
<UniformGrid Name="BaseGrid" Rows="1" Columns="12">
<Border Background="Black" Height="16" Width="16" ToolTip="黑色"/>
<Border Background="White" Height="16" Width="16" ToolTip="白色"/>
<Border Background="Red" Height="16" Width="16" ToolTip="红色"/>
<Border Background="Orange" Height="16" Width="16" ToolTip="橙色"/>
<Border Background="Yellow" Height="16" Width="16" ToolTip="黄色"/>
<Border Background="Green" Height="16" Width="16" ToolTip="绿色"/>
<Border Background="Cyan" Height="16" Width="16" ToolTip="青色"/>
<Border Background="Blue" Height="16" Width="16" ToolTip="蓝色"/>
<Border Background="Purple" Height="16" Width="16" ToolTip="紫色"/>
<!--这个只用于占位-->
<Rectangle Height="16" Width="16" Fill="Transparent" Stroke="Transparent"/>
<Border Name="btnMinimize" Height="16" Width="16" Background="White" Focusable="False"
BorderBrush="DimGray" BorderThickness="1" ToolTip="最小化"
MouseLeftButtonDown="btnMinimize_MousePreviewLeftButtonDown">
<Rectangle Stroke="Transparent" StrokeThickness="0" Fill="Black" HorizontalAlignment="Center"
Height="2" Width="10" Margin="0,0,0,2" VerticalAlignment="Bottom"/>
</Border>
<Border Name="btnClose" Height="16" Width="16" Background="White" Focusable="False"
BorderBrush="DimGray" BorderThickness="1" ToolTip="关闭"
MouseLeftButtonDown="btnClose_MousePreviewLeftButtonDown">
<Canvas>
<Line X1="2" Y1="2" X2="12" Y2="12" Stroke="Black" StrokeThickness="1"/>
<Line X1="12" Y1="2" X2="2" Y2="12" Stroke="Black" StrokeThickness="1"/>
</Canvas>
</Border>
</UniformGrid>
<!--以上为几种基本色及关闭按钮。-->
<Rectangle HorizontalAlignment="Stretch" Height="2" StrokeThickness="0" Fill="DimGray" Margin="0,4"/>
<UniformGrid Name="OtherGrid" Rows="11" Columns="12" RenderOptions.EdgeMode="Aliased">
<Border Background="AliceBlue" Height="16" Width="16" ToolTip="爱丽丝蓝"/>
后面还有 151 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。