MainWindow.xaml
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<Window x:Class="DrawingPad.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:canvas="clr-namespace:DrawingPad.Canvases"
xmlns:uc="clr-namespace:DrawingPad.UserControls"
xmlns:dd="clr-namespace:WPFToolkit.DragDrop;assembly=WPFToolkit"
xmlns:gcmd="clr-namespace:DrawingPad.Graphics"
mc:Ignorable="d"
Title="MainWindow" Height="700" Width="800"
x:Name="Window">
<Window.Resources>
</Window.Resources>
<Window.CommandBindings>
<CommandBinding Command="{x:Static gcmd:GraphicsCommands.Bold}" Executed="BoldCommandExecuted" CanExecute="CommandBinding_CanExecute"/>
<CommandBinding Command="{x:Static gcmd:GraphicsCommands.Italic}" Executed="ItalicCommandExecuted" CanExecute="CommandBinding_CanExecute"/>
<CommandBinding Command="{x:Static gcmd:GraphicsCommands.Underline}" Executed="UnderlineCommandExecuted" CanExecute="CommandBinding_CanExecute"/>
<CommandBinding Command="{x:Static gcmd:GraphicsCommands.ChangeBackground}" Executed="ChangeFillColorCommandExecuted" CanExecute="CommandBinding_CanExecute"/>
<CommandBinding Command="{x:Static gcmd:GraphicsCommands.ChangeFontColor}" Executed="ChangeFontColorCommandExecuted" CanExecute="CommandBinding_CanExecute"/>
<CommandBinding Command="{x:Static gcmd:GraphicsCommands.ChangeLineColor}" Executed="ChangeLineColorCommandExecuted" CanExecute="CommandBinding_CanExecute"/>
<CommandBinding Command="{x:Static gcmd:GraphicsCommands.ChangeLineStyle}" Executed="ChangeLineStyleCommandExecuted" CanExecute="CommandBinding_CanExecute"/>
<CommandBinding Command="{x:Static gcmd:GraphicsCommands.ChangeLineWidth}" Executed="ChangeLineWidthCommandExecuted" CanExecute="CommandBinding_CanExecute"/>
<CommandBinding Command="{x:Static gcmd:GraphicsCommands.ChangeFontSize}" Executed="ChangeFontSizeCommandExecuted" CanExecute="CommandBinding_CanExecute"/>
<CommandBinding Command="{x:Static gcmd:GraphicsCommands.ChangeFontFamily}" Executed="ChangeFontFamilyCommandExecuted" CanExecute="CommandBinding_CanExecute"/>
</Window.CommandBindings>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="100"/>
<RowDefinition Height="0"/>
<RowDefinition Height="*"/>
<RowDefinition Height="0"/>
<RowDefinition Height="30"/>
</Grid.RowDefinitions>
<uc:ToolBoxUserControl Grid.Row="0"/>
<Border Grid.Row="2" Background="{DynamicResource ResourceKey=BrushCanvasBackground}"/>
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="250"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<!-- 图形列表工具箱 -->
<uc:GraphicsGroupUserControl Grid.Column="0"/>
<!-- 画布 -->
<Border Grid.Column="2" Margin="10">
<Border.Effect>
<DropShadowEffect Color="Black" ShadowDepth="1" Opacity="0.7" BlurRadius="5"/>
</Border.Effect>
<Grid>
<canvas:GuidelineCanvas/>
<canvas:DiagramCanvas x:Name="DiagramCanvas" TextBoxEditor="{Binding ElementName=TextBoxEditor}" ClipToBounds="True"
后面还有 16 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。