|
9 | 9 | xmlns:svgc="http://sharpvectors.codeplex.com/svgc/"
|
10 | 10 | xmlns:ui="http://schemas.modernwpf.com/2019"
|
11 | 11 | xmlns:vm="clr-namespace:Flow.Launcher.ViewModel"
|
12 |
| - d:DataContext="{d:DesignInstance Type=vm:MainViewModel}" |
13 | 12 | Name="FlowMainWindow"
|
14 | 13 | Title="Flow Launcher"
|
15 | 14 | MinWidth="{Binding MainWindowWidth, Mode=OneWay}"
|
16 | 15 | MaxWidth="{Binding MainWindowWidth, Mode=OneWay}"
|
| 16 | + d:DataContext="{d:DesignInstance Type=vm:MainViewModel}" |
17 | 17 | AllowDrop="True"
|
18 | 18 | AllowsTransparency="True"
|
19 | 19 | Background="Transparent"
|
|
38 | 38 | <converters:QuerySuggestionBoxConverter x:Key="QuerySuggestionBoxConverter" />
|
39 | 39 | <converters:BorderClipConverter x:Key="BorderClipConverter" />
|
40 | 40 | <converters:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter" />
|
41 |
| - <converters:BoolToIMEConversionModeConverter x:Key="BoolToIMEConversionModeConverter"/> |
42 |
| - <converters:BoolToIMEStateConverter x:Key="BoolToIMEStateConverter"/> |
43 |
| - <converters:StringToKeyBindingConverter x:Key="StringToKeyBindingConverter"/> |
| 41 | + <converters:BoolToIMEConversionModeConverter x:Key="BoolToIMEConversionModeConverter" /> |
| 42 | + <converters:BoolToIMEStateConverter x:Key="BoolToIMEStateConverter" /> |
| 43 | + <converters:StringToKeyBindingConverter x:Key="StringToKeyBindingConverter" /> |
44 | 44 | </Window.Resources>
|
45 | 45 | <Window.InputBindings>
|
46 | 46 | <KeyBinding Key="Escape" Command="{Binding EscCommand}" />
|
|
180 | 180 | <KeyBinding
|
181 | 181 | Key="F12"
|
182 | 182 | Command="{Binding ToggleGameModeCommand}"
|
183 |
| - Modifiers="Ctrl"/> |
| 183 | + Modifiers="Ctrl" /> |
184 | 184 | <KeyBinding
|
185 | 185 | Key="{Binding PreviewHotkey, Converter={StaticResource StringToKeyBindingConverter}, ConverterParameter='key'}"
|
186 | 186 | Command="{Binding TogglePreviewCommand}"
|
187 |
| - Modifiers="{Binding PreviewHotkey, Converter={StaticResource StringToKeyBindingConverter}, ConverterParameter='modifiers'}"/> |
| 187 | + Modifiers="{Binding PreviewHotkey, Converter={StaticResource StringToKeyBindingConverter}, ConverterParameter='modifiers'}" /> |
188 | 188 | </Window.InputBindings>
|
189 | 189 | <Grid>
|
190 | 190 | <Border MouseDown="OnMouseDown" Style="{DynamicResource WindowBorderStyle}">
|
|
207 | 207 | <TextBox
|
208 | 208 | x:Name="QueryTextBox"
|
209 | 209 | AllowDrop="True"
|
| 210 | + InputMethod.PreferredImeConversionMode="{Binding StartWithEnglishMode, Converter={StaticResource BoolToIMEConversionModeConverter}}" |
| 211 | + InputMethod.PreferredImeState="{Binding StartWithEnglishMode, Converter={StaticResource BoolToIMEStateConverter}}" |
210 | 212 | PreviewDragOver="OnPreviewDragOver"
|
211 | 213 | PreviewKeyUp="QueryTextBox_KeyUp"
|
212 | 214 | Style="{DynamicResource QueryBoxStyle}"
|
213 | 215 | Text="{Binding QueryText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
214 |
| - InputMethod.PreferredImeConversionMode="{Binding StartWithEnglishMode, Converter={StaticResource BoolToIMEConversionModeConverter}}" |
215 |
| - InputMethod.PreferredImeState="{Binding StartWithEnglishMode, Converter={StaticResource BoolToIMEStateConverter}}" |
216 | 216 | Visibility="Visible">
|
217 | 217 | <TextBox.CommandBindings>
|
218 | 218 | <CommandBinding Command="ApplicationCommands.Copy" Executed="OnCopy" />
|
|
273 | 273 | <Grid>
|
274 | 274 | <Image
|
275 | 275 | x:Name="PluginActivationIcon"
|
276 |
| - Width="32" |
277 |
| - Height="32" |
278 |
| - Margin="0,0,18,0" |
279 | 276 | HorizontalAlignment="Right"
|
280 | 277 | VerticalAlignment="Center"
|
281 | 278 | Panel.ZIndex="2"
|
|
403 | 400 | VerticalAlignment="Stretch"
|
404 | 401 | Style="{DynamicResource PreviewArea}"
|
405 | 402 | Visibility="{Binding PreviewVisible, Converter={StaticResource BoolToVisibilityConverter}}">
|
406 |
| - <Border |
407 |
| - Style="{DynamicResource PreviewBorderStyle}" |
| 403 | + <Border |
408 | 404 | d:DataContext="{d:DesignInstance vm:ResultViewModel}"
|
409 | 405 | DataContext="{Binding SelectedItem, ElementName=ResultListBox}"
|
| 406 | + Style="{DynamicResource PreviewBorderStyle}" |
410 | 407 | Visibility="{Binding ShowDefaultPreview}">
|
411 | 408 | <Grid
|
412 | 409 | Margin="20,0,10,0"
|
|
478 | 475 | </StackPanel>
|
479 | 476 | </Grid>
|
480 | 477 | </Border>
|
481 |
| - <Border |
| 478 | + <Border |
482 | 479 | d:DataContext="{d:DesignInstance vm:ResultViewModel}"
|
483 | 480 | DataContext="{Binding SelectedItem, ElementName=ResultListBox}"
|
484 |
| - Style="{DynamicResource PreviewBorderStyle}" |
| 481 | + Style="{DynamicResource PreviewBorderStyle}" |
485 | 482 | Visibility="{Binding ShowCustomizedPreview}">
|
486 | 483 | <ContentControl Content="{Binding Result.PreviewPanel.Value}" />
|
487 | 484 | </Border>
|
|
0 commit comments