|
|
@ -6,6 +6,9 @@ |
|
|
|
xmlns:local="clr-namespace:rabi_splitter_WPF" |
|
|
|
xmlns:local="clr-namespace:rabi_splitter_WPF" |
|
|
|
mc:Ignorable="d" |
|
|
|
mc:Ignorable="d" |
|
|
|
d:DesignHeight="500" d:DesignWidth="540"> |
|
|
|
d:DesignHeight="500" d:DesignWidth="540"> |
|
|
|
|
|
|
|
<UserControl.Resources> |
|
|
|
|
|
|
|
<local:InvertableBooleanToVisibilityConverter x:Key="InvertableBooleanToVisibilityConverter"/> |
|
|
|
|
|
|
|
</UserControl.Resources> |
|
|
|
<DockPanel> |
|
|
|
<DockPanel> |
|
|
|
<StackPanel> |
|
|
|
<StackPanel> |
|
|
|
<Button Content="Add" Width="40" Height="40" DockPanel.Dock="Right" Click="AddButton_Click"/> |
|
|
|
<Button Content="Add" Width="40" Height="40" DockPanel.Dock="Right" Click="AddButton_Click"/> |
|
|
@ -27,11 +30,18 @@ |
|
|
|
</StackPanel> |
|
|
|
</StackPanel> |
|
|
|
<DockPanel Grid.Column="1" Margin="15,0,15,0"> |
|
|
|
<DockPanel Grid.Column="1" Margin="15,0,15,0"> |
|
|
|
<DockPanel> |
|
|
|
<DockPanel> |
|
|
|
<DockPanel DockPanel.Dock="Top"> |
|
|
|
<Grid DockPanel.Dock="Top"> |
|
|
|
<TextBlock DockPanel.Dock="Left" Text="Format"/> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<Button DockPanel.Dock="Right" Content="Default Format" Click="DefaultButton_Click" Width="120" HorizontalAlignment="Right"/> |
|
|
|
<ColumnDefinition Width="6*" /> |
|
|
|
</DockPanel> |
|
|
|
<ColumnDefinition Width="5*" /> |
|
|
|
<TextBox Margin="0,5,0,5" Text="{Binding Path=OutputFormat, Mode=TwoWay}" AcceptsReturn="True"/> |
|
|
|
<ColumnDefinition Width="3*" /> |
|
|
|
|
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
|
|
|
<TextBlock Grid.Column="0" HorizontalAlignment="Left" Text="Format"/> |
|
|
|
|
|
|
|
<ToggleButton Grid.Column="1" Margin="0,0,5,0" Content="Preview" IsChecked="{Binding Path=IsPreviewingFormat}"/> |
|
|
|
|
|
|
|
<Button Grid.Column="2" Content="Default" Click="DefaultButton_Click"/> |
|
|
|
|
|
|
|
</Grid> |
|
|
|
|
|
|
|
<TextBox Height="50" DockPanel.Dock="Top" Margin="0,5,0,5" Text="{Binding Path=OutputFormat, Mode=TwoWay}" AcceptsReturn="True" Visibility="{Binding Path=IsPreviewingFormat, Converter={StaticResource InvertableBooleanToVisibilityConverter}, ConverterParameter=VisibleWhenFalse, FallbackValue=Visible}"/> |
|
|
|
|
|
|
|
<TextBlock Height="50" DockPanel.Dock="Top" Margin="0,5,0,5" Text="{Binding Path=OutputFormat, Mode=TwoWay}" Visibility="{Binding Path=IsPreviewingFormat, Converter={StaticResource InvertableBooleanToVisibilityConverter}, ConverterParameter=VisibleWhenTrue, FallbackValue=Collapsed}"/> |
|
|
|
</DockPanel> |
|
|
|
</DockPanel> |
|
|
|
</DockPanel> |
|
|
|
</DockPanel> |
|
|
|
<DockPanel Grid.Column="2"> |
|
|
|
<DockPanel Grid.Column="2"> |
|
|
|