Archived
forked from RDTKEditor/RDTKEditor
119 lines
4.7 KiB
XML
119 lines
4.7 KiB
XML
<Window x:Class="RDTKEditor.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:skia="clr-namespace:SkiaSharp.Views.WPF;assembly=SkiaSharp.Views.WPF"
|
|
xmlns:local="clr-namespace:RDTKEditor"
|
|
xmlns:rdtkwpf="clr-namespace:RhythmBase.Control.WPF;assembly=RhythmBase.Control.WPF"
|
|
mc:Ignorable="d"
|
|
Title="RDTK Editor" Height="450" Width="800">
|
|
<Window.DataContext>
|
|
<local:MainViewModel/>
|
|
</Window.DataContext>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Menu Grid.Row="0" VerticalAlignment="Top">
|
|
<MenuItem Header="文件(_F)">
|
|
<MenuItem Header="打开文件(_O)" Click="OpenFile" InputGestureText="Ctrl+O"/>
|
|
<MenuItem Header="保存文件(_S)" Click="SaveFile" InputGestureText="Ctrl+S"/>
|
|
<Separator/>
|
|
<MenuItem Header="退出(_E)" Click="Exit"/>
|
|
</MenuItem>
|
|
<MenuItem Header="帮助(_H)">
|
|
<MenuItem Header="关于(_A)" Click="About"/>
|
|
</MenuItem>
|
|
</Menu>
|
|
<Grid Grid.Row="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="200" MinWidth="100" MaxWidth="300" />
|
|
<ColumnDefinition Width="5" />
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="5" />
|
|
<ColumnDefinition Width="200" MinWidth="100" MaxWidth="300" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="5" />
|
|
<RowDefinition Height="100" MinHeight="90" MaxHeight="270"/>
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Column="0" Background="LightBlue">
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
|
<ItemsControl x:Name="ItemProperties" Background="LightGray">
|
|
<ComboBox Grid.Row="0" BorderBrush="#FFDF4444" Foreground="#FFC65E5E" RenderTransformOrigin="0.5,0.5">
|
|
<ComboBox.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform/>
|
|
<SkewTransform/>
|
|
<RotateTransform Angle="-0.383"/>
|
|
<TranslateTransform/>
|
|
</TransformGroup>
|
|
</ComboBox.RenderTransform>
|
|
<ComboBox.Background>
|
|
<LinearGradientBrush EndPoint="0,1">
|
|
<GradientStop Color="#FFF0F0F0"/>
|
|
<GradientStop Color="#FF963333" Offset="1"/>
|
|
</LinearGradientBrush>
|
|
</ComboBox.Background>
|
|
<ComboBoxItem Content="选项 1" />
|
|
<ComboBoxItem Content="选项 2" />
|
|
</ComboBox>
|
|
<Label Grid.Row="1" Content="Label" RenderTransformOrigin="0.5,0.5">
|
|
<Label.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform/>
|
|
<SkewTransform/>
|
|
<RotateTransform Angle="0.017"/>
|
|
<TranslateTransform/>
|
|
</TransformGroup>
|
|
</Label.RenderTransform>
|
|
</Label>
|
|
<ListView Grid.Row="3" d:ItemsSource="{d:SampleData ItemCount=3}">
|
|
<ListView.View>
|
|
<GridView>
|
|
<GridViewColumn/>
|
|
</GridView>
|
|
</ListView.View>
|
|
</ListView>
|
|
</ItemsControl>
|
|
</ScrollViewer>
|
|
</Border>
|
|
<GridSplitter Grid.Column="1" Width="5" Background="Gray" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
|
|
<Viewbox Grid.Row="0" Grid.Column="2" Stretch="Uniform">
|
|
<Border Background="LightGray" Width="1600" Height="900">
|
|
<skia:SKElement x:Name="mainUI" PaintSurface="mainUI_PaintSurface" />
|
|
</Border>
|
|
</Viewbox>
|
|
<GridSplitter Grid.Column="3" Width="5" Background="Gray" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
|
|
<Border Grid.Column="4" Background="LightBlue" >
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
|
<Grid x:Name="timelineCanvas3" Background="LightGray" >
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="20" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBox Grid.Row="0" x:Name="AIAssistantText" TextWrapping="Wrap" >
|
|
AI问答
|
|
</TextBox>
|
|
<Button Grid.Row="1" x:Name="AIButton" VerticalAlignment="Bottom" Click="AIAssistantButton_Click" IsEnabled="{Binding IsButtonEnabled}" >
|
|
点击按钮开发
|
|
</Button>
|
|
</Grid>
|
|
</ScrollViewer>
|
|
</Border>
|
|
<GridSplitter Grid.Row="1" Grid.ColumnSpan="5" Height="5" Background="Gray" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
|
|
<Border Grid.ColumnSpan="5" Grid.Row="2" Background="LightSalmon">
|
|
<ScrollViewer x:Name="timelineScrollviewer" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" >
|
|
<rdtkwpf:RDTimeLinePanel x:Name="timeLine">
|
|
</rdtkwpf:RDTimeLinePanel>
|
|
</ScrollViewer>
|
|
</Border>
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|