Files

45 lines
1.9 KiB
Plaintext
Raw Permalink Normal View History

2025-09-16 16:06:41 +08:00
<Window
x:Class="ScriptPad.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:local="clr-namespace:ScriptPad"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:md="http://materialdesigninxaml.net/winfx/xaml/themes"
Title="C#脚本"
Width="800"
Height="450"
Background="{DynamicResource MaterialDesign.Brush.Background}"
Closing="Window_Closing"
TextElement.Foreground="{DynamicResource MaterialDesign.Brush.Foreground}"
UseLayoutRounding="True"
mc:Ignorable="d">
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/Szmedi.RvKits;component/WPFUI.xaml" />
</ResourceDictionary.MergedDictionaries>
<RoutedCommand x:Key="runCommand" />
</ResourceDictionary>
</Window.Resources>
<Window.InputBindings>
<KeyBinding Key="F5" Command="{StaticResource runCommand}" />
</Window.InputBindings>
<Window.CommandBindings>
<CommandBinding Command="{StaticResource runCommand}" Executed="RunCommand_Executed" />
</Window.CommandBindings>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<TabControl
Name="tc"
HorizontalContentAlignment="Left"
Background="{DynamicResource MaterialDesign.Brush.Background}"
Foreground="{DynamicResource MaterialDesign.Brush.Foreground}"
SelectionChanged="TabControl_SelectionChanged"
Style="{StaticResource MaterialDesignFilledUniformTabControl}">
<TabItem Header="+" ToolTip="新建文件" />
</TabControl>
</Grid>
</Window>