|
|
|
|
<UserControl x:Class="rabi_splitter_WPF.VariableExportTab"
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:local="clr-namespace:rabi_splitter_WPF"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
d:DesignHeight="500" d:DesignWidth="540">
|
|
|
|
|
<DockPanel>
|
|
|
|
|
<StackPanel>
|
|
|
|
|
<Button Content="Add" Width="40" Height="40" DockPanel.Dock="Right" Click="AddButton_Click"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<ListBox Name="VariableExportListBox" Width="500" ItemsSource="{Binding VariableExportSettings}">
|
|
|
|
|
<ListBox.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Grid Name="MainPanel" Height="80" Width="480" DockPanel.Dock="Top" Margin="5,0,5,0">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="4*" />
|
|
|
|
|
<ColumnDefinition Width="6*" />
|
|
|
|
|
<ColumnDefinition Width="2*" />
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<StackPanel Grid.Column="0">
|
|
|
|
|
<TextBlock Text="Variable"/>
|
|
|
|
|
<ComboBox ItemsSource="{Binding Path=VariableCaptions}" DisplayMemberPath="Value" SelectedValuePath="Key" SelectedValue="{Binding Path=SelectedVariable, Mode=TwoWay}"/>
|
|
|
|
|
<TextBlock Text="Output File" Margin="0,2,0,0"/>
|
|
|
|
|
<TextBox Text="{Binding Path=OutputFileName, Mode=TwoWay}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<DockPanel Grid.Column="1" Margin="15,0,15,0">
|
|
|
|
|
<DockPanel>
|
|
|
|
|
<DockPanel DockPanel.Dock="Top">
|
|
|
|
|
<TextBlock DockPanel.Dock="Left" Text="Format"/>
|
|
|
|
|
<Button DockPanel.Dock="Right" Content="Default Format" Click="DefaultButton_Click" Width="120" HorizontalAlignment="Right"/>
|
|
|
|
|
</DockPanel>
|
|
|
|
|
<TextBox Margin="0,5,0,5" Text="{Binding Path=OutputFormat, Mode=TwoWay}" AcceptsReturn="True"/>
|
|
|
|
|
</DockPanel>
|
|
|
|
|
</DockPanel>
|
|
|
|
|
<DockPanel Grid.Column="2">
|
|
|
|
|
<Button Content="X" DockPanel.Dock="Top" Width="20" HorizontalAlignment="Right" Click="CloseButton_Click"/>
|
|
|
|
|
<ToggleButton Margin="5,5,5,5" Content="Export" DockPanel.Dock="Bottom" IsChecked="{Binding Path=IsExporting, Mode=TwoWay}"/>
|
|
|
|
|
</DockPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</ListBox.ItemTemplate>
|
|
|
|
|
</ListBox>
|
|
|
|
|
</DockPanel>
|
|
|
|
|
</UserControl>
|