splitter/Splitter-UI/Views/InspectorPane.axaml

43 lines
1.6 KiB
XML

<UserControl
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="Splitter_UI.Views.InspectorPane"
xmlns:vm="clr-namespace:Splitter_UI.ViewModels"
x:DataType="vm:InspectorPaneViewModel">
<Border Background="#252525" Padding="12">
<StackPanel Spacing="8">
<TextBlock Text="Parameters" FontSize="18" Margin="0,0,0,10"/>
<StackPanel Orientation="Horizontal" Spacing="8">
<TextBlock Text="Rotate:" Width="100"/>
<NumericUpDown Value="{Binding Selected.Job.Rotate}" Width="120"/>
</StackPanel>
<!--
<StackPanel Orientation="Horizontal" Spacing="8">
<TextBlock Text="Crop:" Width="100"/>
<TextBox Text="{Binding Selected.CropText}" Width="200"/>
</StackPanel>
-->
<StackPanel Orientation="Horizontal" Spacing="8">
<TextBlock Text="Detect:" Width="100"/>
<ComboBox ItemsSource="{Binding DetectModes}"
SelectedItem="{Binding Selected.Job.Detect}"
Width="200"/>
</StackPanel>
<CheckBox Content="Force Fixed Duration"
IsChecked="{Binding Selected.Job.ForceFixed}"/>
<CheckBox Content="Debug Mode"
IsChecked="{Binding Selected.Job.Debug}"/>
<Button Content="Apply to Selected"
Command="{Binding ApplyOverridesCommand}"
Margin="0,10,0,0"/>
</StackPanel>
</Border>
</UserControl>