|
39 | 39 | <ColumnDefinition /> |
40 | 40 | <ColumnDefinition Width="Auto" /> |
41 | 41 | </Grid.ColumnDefinitions> |
42 | | - <Border Margin="4,0,-4,0" |
43 | | - Padding="8,0,0,0" |
| 42 | + <Border Margin="8,0,0,0" |
| 43 | + Padding="0" |
44 | 44 | HorizontalAlignment="Right" |
45 | | - VerticalAlignment="Stretch" |
| 45 | + VerticalAlignment="Center" |
46 | 46 | Panel.ZIndex="99" |
47 | 47 | Background="{TemplateBinding Background}" |
48 | | - BorderBrush="{x:Null}" |
49 | | - BorderThickness="{TemplateBinding BorderThickness, |
50 | | - Converter={StaticResource ThicknessSplitConverter}, |
51 | | - ConverterParameter='0,1,0,1'}" |
52 | | - CornerRadius="{Binding Path=(hc:BorderElement.CornerRadius), RelativeSource={RelativeSource TemplatedParent}}" |
| 48 | + BorderThickness="0" |
| 49 | + CornerRadius="8" |
53 | 50 | Visibility="{Binding ElementName=ButtonClear, Path=Visibility}"> |
54 | 51 | <Button Name="ButtonClear" |
55 | 52 | Width="Auto" |
|
58 | 55 | HorizontalAlignment="Center" |
59 | 56 | VerticalAlignment="Center" |
60 | 57 | HorizontalContentAlignment="Center" |
| 58 | + VerticalContentAlignment="Center" |
61 | 59 | hc:BorderElement.CornerRadius="4" |
62 | 60 | hc:IconElement.Geometry="{StaticResource DeleteFillCircleGeometry}" |
63 | 61 | hc:IconElement.Width="14" |
64 | 62 | Background="{TemplateBinding Background}" |
| 63 | + BorderThickness="0" |
65 | 64 | Command="{x:Static hc:ControlCommands.Clear}" |
66 | 65 | Foreground="{Binding BorderBrush, ElementName=border}" |
67 | 66 | Style="{StaticResource ButtonIcon}" |
|
79 | 78 | <ScrollViewer x:Name="PART_ContentHost" |
80 | 79 | Grid.Row="0" |
81 | 80 | Grid.Column="0" |
82 | | - Margin="-2,0" |
| 81 | + Margin="2,0" |
83 | 82 | Padding="{TemplateBinding Padding}" |
84 | 83 | VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" |
85 | 84 | Focusable="false" |
|
163 | 162 | <ColumnDefinition /> |
164 | 163 | <ColumnDefinition Width="Auto" /> |
165 | 164 | </Grid.ColumnDefinitions> |
166 | | - <Border Margin="4,0,-4,0" |
167 | | - Padding="8,0,0,0" |
| 165 | + <Border Margin="8,0,0,0" |
| 166 | + Padding="0" |
168 | 167 | HorizontalAlignment="Right" |
169 | | - VerticalAlignment="Stretch" |
| 168 | + VerticalAlignment="Center" |
170 | 169 | Panel.ZIndex="99" |
171 | 170 | Background="{TemplateBinding Background}" |
172 | | - BorderBrush="{x:Null}" |
173 | | - BorderThickness="{TemplateBinding BorderThickness, |
174 | | - Converter={StaticResource ThicknessSplitConverter}, |
175 | | - ConverterParameter='0,1,0,1'}" |
176 | | - CornerRadius="{Binding Path=(hc:BorderElement.CornerRadius), RelativeSource={RelativeSource TemplatedParent}}" |
| 171 | + BorderThickness="0" |
| 172 | + CornerRadius="8" |
177 | 173 | Visibility="{Binding ElementName=ButtonClear, Path=Visibility}"> |
178 | 174 | <Button Name="ButtonClear" |
179 | 175 | Width="Auto" |
|
182 | 178 | HorizontalAlignment="Center" |
183 | 179 | VerticalAlignment="Center" |
184 | 180 | HorizontalContentAlignment="Center" |
| 181 | + VerticalContentAlignment="Center" |
185 | 182 | hc:BorderElement.CornerRadius="4" |
186 | 183 | hc:IconElement.Geometry="{StaticResource DeleteFillCircleGeometry}" |
187 | 184 | hc:IconElement.Width="14" |
188 | 185 | Background="{TemplateBinding Background}" |
| 186 | + BorderThickness="0" |
189 | 187 | Command="{x:Static hc:ControlCommands.Clear}" |
190 | 188 | Foreground="{Binding BorderBrush, ElementName=border}" |
191 | 189 | Style="{StaticResource ButtonIcon}" |
|
203 | 201 | <ScrollViewer x:Name="PART_ContentHost" |
204 | 202 | Grid.Row="0" |
205 | 203 | Grid.Column="0" |
206 | | - Margin="-2,0" |
| 204 | + Margin="2,0" |
207 | 205 | Padding="{TemplateBinding Padding}" |
208 | 206 | VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" |
209 | 207 | Focusable="false" |
|
254 | 252 | <Style x:Key="SearchBarPlusBaseStyle" |
255 | 253 | BasedOn="{StaticResource SearchBarExtendBaseStyle}" |
256 | 254 | TargetType="hc:SearchBar"> |
| 255 | + <Setter Property="Padding" Value="4,0" /> |
257 | 256 | <Setter Property="Template" Value="{StaticResource SearchBarPlusTopTemplate}" /> |
258 | 257 | <Style.Triggers> |
259 | 258 | <Trigger Property="hc:InfoElement.TitlePlacement" Value="Left"> |
|
0 commit comments