Sudoku/MainWindow.xaml
(开头部分) 14KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<Window x:Class="Sudoku.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:Sudoku" Icon="sudoku.ico"
mc:Ignorable="d" ResizeMode="CanMinimize" WindowStartupLocation="CenterScreen"
Title="数独" Height="400" Width="420" Loaded="Window_Loaded" Closing="Window_Closing">
<Window.Resources>
<Style TargetType="TextBox">
<EventSetter Event="TextChanged" Handler="TextBox_TextChanged"/>
<EventSetter Event="MouseWheel" Handler="TextBox_MouseWheel"/>
<Setter Property="Focusable" Value="True"/>
<Setter Property="MaxLength" Value="1"/>
<Setter Property="TextAlignment" Value="Center"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="FontSize" Value="20"/>
<Setter Property="Padding" Value="0 6 0 0"/>
<Setter Property="BorderBrush" Value="OrangeRed"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="ToolTipService.ShowOnDisabled" Value="True"/>
<Setter Property="InputMethod.IsInputMethodEnabled" Value="False"/>
</Style>
<Style TargetType="ToolTip">
<Setter Property="BorderBrush" Value="DarkRed"/>
<Setter Property="Background" Value="White"/>
<Setter Property="Foreground" Value="DarkSlateBlue"/>
<Setter Property="BorderThickness" Value="2"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="ToolTipService.BetweenShowDelay" Value="1"/>
<Setter Property="ToolTipService.HasDropShadow" Value="True"/>
<Setter Property="ToolTipService.InitialShowDelay" Value="1"/>
<Setter Property="ToolTipService.Placement" Value="Right"/>
<Setter Property="ToolTipService.ShowDuration" Value="600000"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="ToolTipService.VerticalOffset" Value="2.5"/>
</Style>
<Style TargetType="MenuItem">
<EventSetter Event="Click" Handler="MenuItem_Click"/>
<!--<Setter Property="Background" Value="White"/>-->
<Setter Property="Foreground" Value="DarkRed"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="MenuItem">
<Border BorderThickness="0.5" BorderBrush="DarkBlue" CornerRadius="1" Name="MenuBorder" Width="60" Background="Transparent" Height="20" VerticalAlignment="Center">
<Grid>
<ContentPresenter ContentSource="Header" HorizontalAlignment="Center" Height="30" VerticalAlignment="Top"/>
<Popup IsOpen="{TemplateBinding IsSubmenuOpen}" Placement="Bottom" AllowsTransparency="True">
<Border Margin="2" Background="White" BorderBrush="DarkBlue" BorderThickness="0.5">
<StackPanel IsItemsHost="True"></StackPanel>
</Border>
</Popup>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="MenuBorder" Property="Background" Value="DarkOrange"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
后面还有 253 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。