|
46 | 46 | <TextBlock x:Uid="TriggerType_KeyOrShortcut_Text" /> |
47 | 47 | </StackPanel> |
48 | 48 | </ComboBoxItem> |
| 49 | + <ComboBoxItem x:Uid="TriggerType_Expand" Tag="Expand"> |
| 50 | + <StackPanel Orientation="Horizontal" Spacing="8"> |
| 51 | + <FontIcon FontSize="14" Glyph="" /> |
| 52 | + <TextBlock x:Uid="TriggerType_Expand_Text" /> |
| 53 | + </StackPanel> |
| 54 | + </ComboBoxItem> |
49 | 55 | <!-- |
50 | 56 | <ComboBoxItem x:Uid="TriggerType_Mouse" Tag="Mouse"> |
51 | 57 | <StackPanel Orientation="Horizontal" Spacing="8"> |
|
111 | 117 | IsChecked="True" /> |
112 | 118 | </StackPanel> |
113 | 119 | </tkcontrols:Case> |
| 120 | + <!-- Expand Trigger --> |
| 121 | + <tkcontrols:Case Value="Expand"> |
| 122 | + <StackPanel Orientation="Vertical" Spacing="8"> |
| 123 | + <TextBox |
| 124 | + x:Name="ExpandAbbreviationBox" |
| 125 | + x:Uid="ExpandAbbreviationBox" |
| 126 | + Background="{ThemeResource TextControlBackgroundFocused}" |
| 127 | + BorderBrush="{ThemeResource ControlStrokeColorDefaultBrush}" |
| 128 | + GotFocus="ExpandAbbreviationBox_GotFocus" |
| 129 | + TextChanged="ExpandAbbreviationBox_TextChanged" /> |
| 130 | + <TextBlock |
| 131 | + x:Uid="ExpandTriggerKeyLabel" |
| 132 | + Margin="0,8,0,0" |
| 133 | + FontWeight="SemiBold" /> |
| 134 | + <ToggleButton |
| 135 | + x:Name="ExpandTriggerKeyToggleBtn" |
| 136 | + MinHeight="48" |
| 137 | + Padding="8,12,8,12" |
| 138 | + HorizontalAlignment="Stretch" |
| 139 | + HorizontalContentAlignment="Center" |
| 140 | + VerticalContentAlignment="Center" |
| 141 | + Checked="ExpandTriggerKeyToggleBtn_Checked" |
| 142 | + Style="{StaticResource CustomShortcutToggleButtonStyle}" |
| 143 | + Unchecked="ExpandTriggerKeyToggleBtn_Unchecked"> |
| 144 | + <ToggleButton.Content> |
| 145 | + <commoncontrols:KeyVisual |
| 146 | + x:Name="ExpandTriggerKeyVisual" |
| 147 | + Padding="8" |
| 148 | + Background="{ThemeResource ControlFillColorDefaultBrush}" |
| 149 | + BorderThickness="1" |
| 150 | + Content="Space" |
| 151 | + CornerRadius="{StaticResource OverlayCornerRadius}" |
| 152 | + FontSize="16" |
| 153 | + Style="{StaticResource DefaultKeyVisualStyle}" /> |
| 154 | + </ToggleButton.Content> |
| 155 | + </ToggleButton> |
| 156 | + </StackPanel> |
| 157 | + </tkcontrols:Case> |
114 | 158 | <!-- Mouse Button Trigger --> |
115 | 159 | <tkcontrols:Case Value="Mouse"> |
116 | 160 | <ComboBox |
|
365 | 409 | </ComboBox> |
366 | 410 | </StackPanel> |
367 | 411 | </tkcontrols:Case> |
| 412 | + <!-- Replace With Action (for Expand trigger) --> |
| 413 | + <tkcontrols:Case Value="ReplaceWith"> |
| 414 | + <TextBox |
| 415 | + x:Name="ExpandedTextBox" |
| 416 | + x:Uid="ExpandedTextBox" |
| 417 | + MinHeight="120" |
| 418 | + MaxHeight="240" |
| 419 | + AcceptsReturn="True" |
| 420 | + Background="{ThemeResource TextControlBackgroundFocused}" |
| 421 | + BorderBrush="{ThemeResource ControlStrokeColorDefaultBrush}" |
| 422 | + GotFocus="ExpandedTextBox_GotFocus" |
| 423 | + TextChanged="ExpandedTextBox_TextChanged" |
| 424 | + TextWrapping="Wrap" /> |
| 425 | + </tkcontrols:Case> |
368 | 426 | <!-- Mouse Click Action (Placeholder) --> |
369 | 427 | <tkcontrols:Case Value="MouseClick"> |
370 | 428 | <TextBlock |
|
0 commit comments