|
6 | 6 | xmlns:local="clr-namespace:MangaPrinter.WpfGUI.Dialogs"
|
7 | 7 | xmlns:d3="clr-namespace:InteractiveDataDisplay.WPF;assembly=InteractiveDataDisplay.WPF"
|
8 | 8 | mc:Ignorable="d"
|
9 |
| - Title="Choose cutoff ratio for double-page" Height="500" Width="800" WindowStartupLocation="CenterScreen" |
| 9 | + Title="Choose cutoff ratio for double-page" Height="550" Width="1000" WindowStartupLocation="CenterScreen" |
10 | 10 | Loaded="Window_Loaded" Closing="Window_Closing" FontSize="14">
|
11 | 11 | <Grid>
|
12 | 12 | <Grid.RowDefinitions>
|
13 | 13 | <RowDefinition/>
|
14 | 14 | <RowDefinition Height="auto"></RowDefinition>
|
15 | 15 | <RowDefinition Height="auto"></RowDefinition>
|
16 | 16 | </Grid.RowDefinitions>
|
17 |
| - <d3:Chart BottomTitle="Ratio (Page Width/Height)" LeftTitle="Count" Grid.Row="0" Margin="5,5"> |
18 |
| - <Grid> |
19 |
| - <d3:LineGraph x:Name="gRatio" Description="Ratio Distribution" Stroke="Blue" StrokeThickness="3"/> |
20 |
| - <d3:LineGraph x:Name="gCutoff" Description="Cutoff" Stroke="Red" StrokeThickness="3"/> |
21 |
| - </Grid> |
22 |
| - </d3:Chart> |
23 |
| - |
| 17 | + |
| 18 | + <TabControl Grid.Row="0"> |
| 19 | + <TabItem > |
| 20 | + <TabItem.Header> |
| 21 | + <TextBlock FontSize="15pt">Visual</TextBlock> |
| 22 | + </TabItem.Header> |
| 23 | + <d3:Chart BottomTitle="Ratio (Page Width/Height)" LeftTitle="Count" Margin="5,5"> |
| 24 | + <Grid> |
| 25 | + <d3:LineGraph x:Name="gRatio" Description="Ratio Distribution" Stroke="Blue" StrokeThickness="3"/> |
| 26 | + <d3:LineGraph x:Name="gCutoff" Description="Cutoff" Stroke="Red" StrokeThickness="3"/> |
| 27 | + </Grid> |
| 28 | + </d3:Chart> |
| 29 | + </TabItem> |
| 30 | + <TabItem > |
| 31 | + <TabItem.Header> |
| 32 | + <TextBlock FontSize="15pt">Textual</TextBlock> |
| 33 | + </TabItem.Header> |
| 34 | + <StackPanel> |
| 35 | + <TextBlock x:Name="x20x100"> |
| 36 | + |
| 37 | + </TextBlock> |
| 38 | + <RichTextBox> |
| 39 | + <RichTextBox.Document> |
| 40 | + <FlowDocument> |
| 41 | + <Paragraph> |
| 42 | + <TextBlock FontWeight="Bold">Value:</TextBlock> |
| 43 | + <TextBlock x:Name="txtValue"></TextBlock> |
| 44 | + <TextBlock FontWeight="Bold">Count:</TextBlock> |
| 45 | + <TextBlock x:Name="txtValueCount"></TextBlock> |
| 46 | + <LineBreak/> |
| 47 | + <TextBlock FontWeight="Bold">Count Before:</TextBlock> |
| 48 | + <TextBlock x:Name="txtCountBfr"></TextBlock> |
| 49 | + <TextBlock FontWeight="Bold">Count After:</TextBlock> |
| 50 | + <TextBlock x:Name="txtCountAftr"></TextBlock> |
| 51 | + </Paragraph> |
| 52 | + </FlowDocument> |
| 53 | + </RichTextBox.Document> |
| 54 | + </RichTextBox> |
| 55 | + </StackPanel> |
| 56 | + </TabItem> |
| 57 | + </TabControl> |
| 58 | + |
24 | 59 | <StackPanel Grid.Row="1" Margin="5,5">
|
25 | 60 | <Label>Choose cutoff (in the middle?)</Label>
|
26 | 61 | <Slider Name="sldCutoff" Minimum="0" Maximum="99" SmallChange="1" LargeChange="1"
|
27 | 62 | Value="{Binding BucketIndex}" ValueChanged="Slider_ValueChanged"/>
|
28 | 63 | </StackPanel>
|
| 64 | + |
29 | 65 | <DockPanel Grid.Row="2" LastChildFill="False">
|
30 | 66 | <Button DockPanel.Dock="Right" Margin="5" Padding="5"
|
31 | 67 | Name="btnAccept" Click="BtnAccept_Click">Accept</Button>
|
|
0 commit comments