|
61 | 61 | <ColumnDefinition Width="9*" />
|
62 | 62 | <ColumnDefinition Width="Auto" MinWidth="8" />
|
63 | 63 | </Grid.ColumnDefinitions>
|
64 |
| - <StackPanel |
65 |
| - x:Name="HotkeyArea" |
| 64 | + <Border |
| 65 | + x:Name="HotkeyBG" |
66 | 66 | Grid.Column="2"
|
67 |
| - Margin="0 0 10 0" |
68 | 67 | VerticalAlignment="Center"
|
69 |
| - Visibility="{Binding Settings.ShowOpenResultHotkey, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}"> |
70 |
| - <Border x:Name="HotkeyBG" Style="{DynamicResource ItemHotkeyBGStyle}"> |
71 |
| - <Border.Visibility> |
72 |
| - <Binding Converter="{StaticResource ResourceKey=OpenResultHotkeyVisibilityConverter}" RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=ListBoxItem}" /> |
73 |
| - </Border.Visibility> |
74 |
| - <TextBlock |
75 |
| - x:Name="Hotkey" |
76 |
| - Padding="0 0 0 0" |
77 |
| - HorizontalAlignment="Right" |
78 |
| - VerticalAlignment="Center" |
79 |
| - Style="{DynamicResource ItemHotkeyStyle}"> |
80 |
| - <TextBlock.Text> |
81 |
| - <MultiBinding StringFormat="{}{0}+{1}"> |
82 |
| - <Binding Mode="OneWay" Path="Settings.OpenResultModifiers" /> |
83 |
| - <Binding Converter="{StaticResource ResourceKey=OrdinalConverter}" RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=ListBoxItem}" /> |
84 |
| - </MultiBinding> |
85 |
| - </TextBlock.Text> |
86 |
| - </TextBlock> |
87 |
| - </Border> |
88 |
| - </StackPanel> |
| 68 | + Style="{DynamicResource ItemHotkeyBGStyle}"> |
| 69 | + <Border.Visibility> |
| 70 | + <Binding Converter="{StaticResource ResourceKey=OpenResultHotkeyVisibilityConverter}" RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=ListBoxItem}" /> |
| 71 | + </Border.Visibility> |
| 72 | + <TextBlock |
| 73 | + x:Name="Hotkey" |
| 74 | + Padding="0 0 0 0" |
| 75 | + HorizontalAlignment="Right" |
| 76 | + VerticalAlignment="Center" |
| 77 | + Style="{DynamicResource ItemHotkeyStyle}"> |
| 78 | + <TextBlock.Text> |
| 79 | + <MultiBinding StringFormat="{}{0}+{1}"> |
| 80 | + <Binding Mode="OneWay" Path="Settings.OpenResultModifiers" /> |
| 81 | + <Binding Converter="{StaticResource ResourceKey=OrdinalConverter}" RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=ListBoxItem}" /> |
| 82 | + </MultiBinding> |
| 83 | + </TextBlock.Text> |
| 84 | + </TextBlock> |
| 85 | + </Border> |
89 | 86 |
|
90 |
| - <Border |
| 87 | + <StackPanel |
91 | 88 | Grid.Column="0"
|
92 | 89 | Margin="9 0 0 0"
|
93 |
| - BorderBrush="Transparent" |
94 |
| - BorderThickness="1"> |
95 |
| - <Grid> |
96 |
| - <Image |
97 |
| - x:Name="ImageIcon" |
98 |
| - IsHitTestVisible="False" |
99 |
| - RenderOptions.BitmapScalingMode="Fant" |
100 |
| - Source="{Binding Image, TargetNullValue={x:Null}}" |
101 |
| - Stretch="Uniform" |
102 |
| - StretchDirection="DownOnly" |
103 |
| - Style="{DynamicResource ImageIconStyle}" |
104 |
| - Visibility="{Binding ShowIcon}"> |
105 |
| - <Image.Clip> |
106 |
| - <EllipseGeometry Center="{Binding ElementName=ImageIcon, Path=ActualWidth, Converter={StaticResource DiameterToCenterPointConverter}}"> |
107 |
| - <EllipseGeometry.RadiusX> |
108 |
| - <MultiBinding Converter="{StaticResource IconRadiusConverter}"> |
109 |
| - <Binding ElementName="ImageIcon" Path="ActualWidth" /> |
110 |
| - <Binding Path="Result.RoundedIcon" /> |
111 |
| - </MultiBinding> |
112 |
| - </EllipseGeometry.RadiusX> |
113 |
| - <EllipseGeometry.RadiusY> |
114 |
| - <MultiBinding Converter="{StaticResource IconRadiusConverter}"> |
115 |
| - <Binding ElementName="ImageIcon" Path="ActualWidth" /> |
116 |
| - <Binding Path="Result.RoundedIcon" /> |
117 |
| - </MultiBinding> |
118 |
| - </EllipseGeometry.RadiusY> |
119 |
| - </EllipseGeometry> |
120 |
| - </Image.Clip> |
121 |
| - </Image> |
| 90 | + VerticalAlignment="Center"> |
| 91 | + <Image |
| 92 | + x:Name="ImageIcon" |
| 93 | + IsHitTestVisible="False" |
| 94 | + RenderOptions.BitmapScalingMode="Fant" |
| 95 | + Source="{Binding Image, TargetNullValue={x:Null}}" |
| 96 | + Stretch="Uniform" |
| 97 | + StretchDirection="DownOnly" |
| 98 | + Style="{DynamicResource ImageIconStyle}" |
| 99 | + Visibility="{Binding ShowIcon}"> |
| 100 | + <Image.Clip> |
| 101 | + <EllipseGeometry Center="{Binding ElementName=ImageIcon, Path=ActualWidth, Converter={StaticResource DiameterToCenterPointConverter}}"> |
| 102 | + <EllipseGeometry.RadiusX> |
| 103 | + <MultiBinding Converter="{StaticResource IconRadiusConverter}"> |
| 104 | + <Binding ElementName="ImageIcon" Path="ActualWidth" /> |
| 105 | + <Binding Path="Result.RoundedIcon" /> |
| 106 | + </MultiBinding> |
| 107 | + </EllipseGeometry.RadiusX> |
| 108 | + <EllipseGeometry.RadiusY> |
| 109 | + <MultiBinding Converter="{StaticResource IconRadiusConverter}"> |
| 110 | + <Binding ElementName="ImageIcon" Path="ActualWidth" /> |
| 111 | + <Binding Path="Result.RoundedIcon" /> |
| 112 | + </MultiBinding> |
| 113 | + </EllipseGeometry.RadiusY> |
| 114 | + </EllipseGeometry> |
| 115 | + </Image.Clip> |
| 116 | + </Image> |
122 | 117 |
|
123 |
| - <TextBlock |
124 |
| - x:Name="GlyphIcon" |
125 |
| - FontFamily="{Binding Glyph.FontFamily}" |
126 |
| - Style="{DynamicResource ItemGlyph}" |
127 |
| - Text="{Binding Glyph.Glyph}" |
128 |
| - Visibility="{Binding ShowGlyph}" /> |
129 |
| - </Grid> |
130 |
| - </Border> |
| 118 | + <TextBlock |
| 119 | + x:Name="GlyphIcon" |
| 120 | + FontFamily="{Binding Glyph.FontFamily}" |
| 121 | + Style="{DynamicResource ItemGlyph}" |
| 122 | + Text="{Binding Glyph.Glyph}" |
| 123 | + Visibility="{Binding ShowGlyph}" /> |
| 124 | + </StackPanel> |
131 | 125 |
|
132 |
| - <Grid |
| 126 | + <StackPanel |
133 | 127 | Grid.Column="1"
|
134 | 128 | Margin="6 0 10 0"
|
135 | 129 | HorizontalAlignment="Stretch"
|
136 | 130 | VerticalAlignment="Center">
|
137 |
| - <Grid.RowDefinitions> |
138 |
| - <RowDefinition Height="Auto" /> |
139 |
| - <RowDefinition x:Name="SubTitleRowDefinition" Height="Auto" /> |
140 |
| - </Grid.RowDefinitions> |
141 | 131 | <TextBlock
|
142 | 132 | x:Name="Title"
|
143 |
| - Grid.Row="0" |
144 | 133 | DockPanel.Dock="Left"
|
145 | 134 | FontSize="{Binding Settings.ResultItemFontSize, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
146 | 135 | IsEnabled="False"
|
|
158 | 147 | </TextBlock>
|
159 | 148 | <TextBlock
|
160 | 149 | x:Name="SubTitle"
|
161 |
| - Grid.Row="1" |
162 | 150 | FontSize="{Binding Settings.ResultSubItemFontSize, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
163 | 151 | IsEnabled="False"
|
164 | 152 | Style="{DynamicResource ItemSubTitleStyle}"
|
165 | 153 | Text="{Binding Result.SubTitle}"
|
166 | 154 | TextTrimming="CharacterEllipsis"
|
167 | 155 | ToolTip="{Binding ShowSubTitleToolTip}"
|
168 | 156 | ToolTipService.ShowOnDisabled="True" />
|
169 |
| - </Grid> |
| 157 | + </StackPanel> |
170 | 158 |
|
171 | 159 | </Grid>
|
172 | 160 | </Button.Content>
|
|
0 commit comments