|
| 1 | +<Window x:Class="DataToolChain.StringColumnBuilder" |
| 2 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 5 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 6 | + xmlns:local="clr-namespace:DataToolChain" |
| 7 | + mc:Ignorable="d" |
| 8 | + d:DataContext="{d:DesignInstance Type=local:StringColumnBuilderViewModel, IsDesignTimeCreatable=True}" |
| 9 | + Title="StringColumnBuilder" Height="650" Width="800"> |
| 10 | + <Grid> |
| 11 | + <Grid.ColumnDefinitions> |
| 12 | + <ColumnDefinition Width="395*"/> |
| 13 | + <ColumnDefinition Width="5"/> |
| 14 | + <ColumnDefinition Width="424*"/> |
| 15 | + <ColumnDefinition Width="5"/> |
| 16 | + <ColumnDefinition Width="424*"/> |
| 17 | + </Grid.ColumnDefinitions> |
| 18 | + <Grid.RowDefinitions> |
| 19 | + <RowDefinition Height="Auto"/> |
| 20 | + <RowDefinition Height="*"/> |
| 21 | + </Grid.RowDefinitions> |
| 22 | + |
| 23 | + <StackPanel Background="Beige" Grid.ColumnSpan="5"> |
| 24 | + <TextBlock TextWrapping="Wrap" Margin="5">(Top) Enter List of Regexes on the Left, and their corresponding replacements on the right (if no replacement value specified then will remove). (Bottom) Enter text on left, new text appears on right.</TextBlock> |
| 25 | + <StackPanel Margin="5"> |
| 26 | + |
| 27 | + <StackPanel Orientation="Horizontal"> |
| 28 | + <CheckBox IsChecked="{Binding Path=IsCaseSensitive}">Match Case</CheckBox> |
| 29 | + <CheckBox IsChecked="{Binding Path=RemoveEmpty}" Margin="10,0,0,0">Remove empty entries</CheckBox> |
| 30 | + </StackPanel> |
| 31 | + |
| 32 | + <StackPanel Orientation="Horizontal"> |
| 33 | + <CheckBox IsChecked="{Binding Path=UseRegex}">Use Regex</CheckBox> |
| 34 | + <CheckBox IsChecked="{Binding Path=Multiline}" Margin="10,0,0,0">Match newline</CheckBox> |
| 35 | + </StackPanel> |
| 36 | + </StackPanel> |
| 37 | + </StackPanel> |
| 38 | + |
| 39 | + <GridSplitter Grid.Column="1" Grid.Row="1" Background="Gray" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"></GridSplitter> |
| 40 | + |
| 41 | + <Grid Grid.Column="0" Row="1"> |
| 42 | + <Grid.RowDefinitions> |
| 43 | + <RowDefinition Height="Auto"/> |
| 44 | + <RowDefinition Height="5"/> |
| 45 | + <RowDefinition Height="410*"/> |
| 46 | + </Grid.RowDefinitions> |
| 47 | + <TextBox AcceptsReturn="False" AcceptsTab="True" TextWrapping="NoWrap" MaxLines="1" Padding="5" Text="{Binding Path=Separator, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"></TextBox> |
| 48 | + <GridSplitter Grid.Row="1" Background="Gray" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"></GridSplitter> |
| 49 | + <TextBox AcceptsReturn="True" Grid.Row="2" AcceptsTab="True" TextWrapping="NoWrap" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Text="{Binding Path=StringInput, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"></TextBox> |
| 50 | + </Grid> |
| 51 | + |
| 52 | + <TextBox AcceptsReturn="True" Grid.Row="1" Grid.Column="2" AcceptsTab="True" TextWrapping="NoWrap" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Text="{Binding Path=ExistingData, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"></TextBox> |
| 53 | + |
| 54 | + <GridSplitter Grid.Column="3" Grid.Row="1" Background="Gray" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"></GridSplitter> |
| 55 | + |
| 56 | + <TextBox AcceptsReturn="True" Grid.Row="1" Grid.Column="4" AcceptsTab="True" TextWrapping="NoWrap" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Text="{Binding Path=StringOutput, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"></TextBox> |
| 57 | + |
| 58 | + <!--<Grid Grid.Column="0" Grid.Row="1"> |
| 59 | + <Grid.RowDefinitions> |
| 60 | + <RowDefinition Height="Auto"/> |
| 61 | + <RowDefinition Height="5"/> |
| 62 | + <RowDefinition Height="410*"/> |
| 63 | + </Grid.RowDefinitions> |
| 64 | + <TextBox AcceptsReturn="True" AcceptsTab="True" TextWrapping="NoWrap" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Text="{Binding Path=RegexMatchInputs, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"></TextBox> |
| 65 | + <GridSplitter Grid.Column="1" Background="Gray" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"></GridSplitter> |
| 66 | + |
| 67 | + </Grid>--> |
| 68 | + |
| 69 | + </Grid> |
| 70 | +</Window> |
0 commit comments