Painter/MainWindow.xaml
(开头部分) 37KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<Window x:Class="Painter.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Painter" xmlns:component="clr-namespace:Painter.Component"
mc:Ignorable="d"
Title="绘图板" Height="600" Width="1000" WindowStartupLocation="CenterScreen" Background="White" Foreground="Black">
<Window.Resources>
<RoutedUICommand x:Key="New" />
<RoutedUICommand x:Key="Open"/>
<RoutedUICommand x:Key="Save"/>
<RoutedUICommand x:Key="SaveOther"/>
<RoutedUICommand x:Key="Close"/>
<RoutedUICommand x:Key="Undo"/>
<RoutedUICommand x:Key="Redo"/>
<RoutedUICommand x:Key="Copy"/>
<RoutedUICommand x:Key="Cut"/>
<RoutedUICommand x:Key="Property"/>
<RoutedUICommand x:Key="Paste"/>
<RoutedUICommand x:Key="PageClose"/>
<Style x:Key="menuItemColor" TargetType="MenuItem">
<Setter Property="Background" Value="White"/>
</Style>
<Style x:Key="tabPage" TargetType="TabItem">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="TabItem">
<Border Height="24" BorderThickness="1,1,1,0" BorderBrush="#ACACAC" Name="border">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<TextBlock Text="{TemplateBinding TabItem.Header}" Padding="5,0,0,0"/>
<TextBlock Text="X" Margin="4,0" MouseLeftButtonDown="PagePath_MouseLeftButtonDown"/>
</StackPanel>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsSelected" Value="true">
<Setter Property="Height" TargetName="border" Value="30"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Window.InputBindings>
<KeyBinding Gesture="Ctrl+N" Command="{StaticResource New}" />
<KeyBinding Gesture="Ctrl+O" Command="{StaticResource Open}" />
<KeyBinding Gesture="Ctrl+S" Command="{StaticResource Save}" />
<KeyBinding Gesture="Ctrl+Z" Command="{StaticResource Undo}" />
<KeyBinding Gesture="Ctrl+Y" Command="{StaticResource Redo}" />
<KeyBinding Gesture="Ctrl+C" Command="{StaticResource Copy}" />
<KeyBinding Gesture="Ctrl+V" Command="{StaticResource Paste}" />
<KeyBinding Gesture="Ctrl+X" Command="{StaticResource Cut}" />
<KeyBinding Gesture="Ctrl+Shift+S" Command="{StaticResource SaveOther}"/>
<KeyBinding Gesture="Ctrl+E" Command="{StaticResource Property}"/>
<KeyBinding Gesture="Ctrl+W" Command="{StaticResource PageClose}" />
</Window.InputBindings>
<Window.CommandBindings>
<CommandBinding Command="{StaticResource New}" Executed="NewPageMenuItem_Click"/>
<CommandBinding Command="{StaticResource Open}" Executed="OpenPageMenuItem_Click" />
后面还有 401 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。