44 lines
2.1 KiB
XML
44 lines
2.1 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:vm="using:LindtLeerformPlugin.ViewModels"
|
|
xmlns:v="using:LindtLeerformPlugin.Views"
|
|
x:Class="LindtLeerformPlugin.Views.CellHistogramWindow"
|
|
x:DataType="vm:CellHistogramViewModel"
|
|
Title="{Binding Title}"
|
|
Width="820" Height="560"
|
|
Background="#1A1A1A"
|
|
WindowStartupLocation="CenterOwner"
|
|
ShowInTaskbar="False"
|
|
CanResize="True">
|
|
|
|
<DockPanel Margin="12">
|
|
<StackPanel DockPanel.Dock="Top" Spacing="4" Margin="0,0,0,8">
|
|
<TextBlock Text="Drag the gray dashed handles to edit the AVERAGE spline. Use 'Override Cell' to give this cell its own spline."
|
|
Foreground="LightGray" FontSize="12" TextWrapping="Wrap" />
|
|
<TextBlock Text="A cell is BAD when any histogram bar rises above its active spline."
|
|
Foreground="#888888" FontSize="11" TextWrapping="Wrap" />
|
|
</StackPanel>
|
|
|
|
<StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" Spacing="8" Margin="0,12,0,0">
|
|
<Button Content="Override Cell"
|
|
Command="{Binding CreateOverrideCommand}"
|
|
IsVisible="{Binding !HasOverride}"
|
|
Background="#FF8C00" Foreground="Black" FontWeight="Bold" />
|
|
<Button Content="Remove Override"
|
|
Command="{Binding RemoveOverrideCommand}"
|
|
IsVisible="{Binding HasOverride}"
|
|
Background="#8B0000" Foreground="White" FontWeight="Bold" />
|
|
<TextBlock Text="{Binding VerdictText}" Foreground="LightGray"
|
|
VerticalAlignment="Center" FontSize="13" />
|
|
</StackPanel>
|
|
|
|
<Border Background="#0A0A0A" Padding="2">
|
|
<v:SplineHistogramEditor x:Name="Editor"
|
|
Histogram="{Binding CellHistogram}"
|
|
CellSpline="{Binding CellSpline, Mode=TwoWay}"
|
|
AverageSpline="{Binding AverageSpline, Mode=TwoWay}"
|
|
Bins="{Binding Bins}" />
|
|
</Border>
|
|
</DockPanel>
|
|
</Window>
|