|
74 | 74 |
|
75 | 75 | <Expander Header="Advanced (limit search space)" IsExpanded="False" Grid.Column="0" Grid.Row="3"> |
76 | 76 | <Grid ColumnDefinitions="auto,*,auto" RowDefinitions="auto,*"> |
77 | | - <Button Content="Start" |
| 77 | + <Grid ColumnDefinitions="auto,*" Grid.Column="0" Grid.Row="0"> |
| 78 | + <Button Content="Start" |
78 | 79 | Command="{Binding StartCommand}" |
79 | 80 | Width="70" |
80 | | - Grid.Column="0" |
81 | | - Grid.Row="0"/> |
| 81 | + Grid.Column="0"/> |
| 82 | + <ToggleSwitch Name="InputTypeToggle" |
| 83 | + OffContent="Normal" OnContent="Auto Complete" |
| 84 | + Margin="10,0,0,0" |
| 85 | + Grid.Column="1"/> |
| 86 | + </Grid> |
| 87 | + |
82 | 88 | <Grid ColumnDefinitions="auto,*,auto" Margin="5,0,5,0" Grid.Column="1" Grid.Row="0"> |
83 | 89 | <Button Content="<" |
84 | 90 | Command="{Binding PreviousCommand}" |
|
100 | 106 | <TextBlock Text="{Binding CurrentItems.Count}"/> |
101 | 107 | </StackPanel> |
102 | 108 |
|
103 | | - <Grid ColumnDefinitions="*,*" RowDefinitions="*,*,*,*" Grid.Column="0" Grid.Row="1"> |
| 109 | + <Grid ColumnDefinitions="*,auto" Width="268" Grid.Column="0" Grid.Row="1" |
| 110 | + IsVisible="{Binding ElementName=InputTypeToggle, Path=IsChecked}"> |
| 111 | + <AutoCompleteBox Text="{Binding ToAdd}" |
| 112 | + Items="{Binding WordList}" |
| 113 | + IsEnabled="{Binding ElementName=InputTypeToggle, Path=IsChecked}" |
| 114 | + IsTextCompletionEnabled="True" |
| 115 | + FilterMode="Contains" |
| 116 | + MaxDropDownHeight="200" |
| 117 | + Height="45" |
| 118 | + VerticalAlignment="Top" |
| 119 | + Grid.Column="0"/> |
| 120 | + <Button Content="+" Command="{Binding AddExactCommand}" |
| 121 | + Margin="2,0,0,0" Width="45" Height="45" |
| 122 | + FontSize="20" |
| 123 | + VerticalAlignment="Top" |
| 124 | + Grid.Column="1"/> |
| 125 | + </Grid> |
| 126 | + |
| 127 | + <Grid ColumnDefinitions="*,*" RowDefinitions="*,*,*,*" Grid.Column="0" Grid.Row="1" |
| 128 | + IsVisible="{Binding ElementName=InputTypeToggle, Path=!IsChecked}"> |
104 | 129 | <Grid.Styles> |
105 | 130 | <Style Selector="Button"> |
106 | 131 | <Setter Property="Margin" Value="2"/> |
107 | 132 | <Setter Property="Width" Value="130"/> |
108 | 133 | </Style> |
109 | 134 | </Grid.Styles> |
| 135 | + |
110 | 136 | <TextBox Text="{Binding ToAdd}" Grid.ColumnSpan="2" Grid.Row="0" MinHeight="30"/> |
111 | 137 | <Button Content="Similar words" Command="{Binding AddSimilarCommand}" Grid.Column="0" Grid.Row="1"/> |
112 | 138 | <Button Content="Exact word" Command="{Binding AddExactCommand}" Grid.Column="1" Grid.Row="1"/> |
|
0 commit comments