|
51 | 51 | <Setter Property="Template"> |
52 | 52 | <Setter.Value> |
53 | 53 | <ControlTemplate TargetType="{x:Type ToggleButton}"> |
54 | | - <Border Padding="{TemplateBinding Padding}"> |
55 | | - <StackPanel Orientation="Horizontal"> |
56 | | - <TextBlock x:Name="arrow" Text="Foobar" Foreground="Red" /> |
| 54 | + <Border Padding="{TemplateBinding Padding}" Style="{StaticResource repositoryBorderStyle}"> |
| 55 | + <StackPanel Orientation="Horizontal" Background="#F8F8F8"> |
| 56 | + <ui:OcticonImage x:Name="arrow" Icon="triangle_right" Foreground="Black" Height="10" Margin="5,0,0,0" /> |
| 57 | + <ContentPresenter HorizontalAlignment="Left" Margin="0" RecognizesAccessKey="True" SnapsToDevicePixels="True" VerticalAlignment="Center"/> |
57 | 58 | </StackPanel> |
58 | 59 | </Border> |
59 | 60 |
|
60 | 61 | <ControlTemplate.Triggers> |
61 | 62 | <Trigger Property="IsChecked" Value="True"> |
62 | | - <Setter Property="Foreground" TargetName="arrow" Value="Blue" /> |
| 63 | + <Setter TargetName="arrow" Property="Icon" Value="triangle_down" /> |
63 | 64 | </Trigger> |
64 | 65 | </ControlTemplate.Triggers> |
65 | 66 | </ControlTemplate> |
|
215 | 216 | <ControlTemplate TargetType="{x:Type GroupItem}"> |
216 | 217 | <Expander Style="{StaticResource StatusGroupExpander}" IsExpanded="{Binding Name.IsExpanded}"> |
217 | 218 | <Expander.Header> |
218 | | - <Border Background="#F8F8F8" |
219 | | - Width="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Expander}}, Path=ActualWidth}" |
220 | | - Style="{StaticResource repositoryBorderStyle}"> |
221 | | - <StackPanel Orientation="Horizontal" |
222 | | - VerticalAlignment="Center" |
223 | | - HorizontalAlignment="Stretch" |
224 | | - Margin="0"> |
225 | | - <Image x:Name="avatar" |
226 | | - Width="16" |
227 | | - Height="16" |
228 | | - Margin="10,0,6,0" |
229 | | - RenderOptions.BitmapScalingMode="HighQuality" |
230 | | - Source="{Binding Items[0].Owner.Avatar}" /> |
231 | | - <TextBlock Text="{Binding Path=Name.Header}" |
232 | | - Style="{StaticResource cloneRepoHeaderStyle}" /> |
233 | | - </StackPanel> |
| 219 | + <Border Style="{StaticResource repositoryBorderStyle}"> |
| 220 | + <StackPanel Orientation="Horizontal" |
| 221 | + VerticalAlignment="Center" |
| 222 | + Margin="0"> |
| 223 | + <Image x:Name="avatar" |
| 224 | + Width="16" |
| 225 | + Height="16" |
| 226 | + Margin="0,0,5,0" |
| 227 | + RenderOptions.BitmapScalingMode="HighQuality" |
| 228 | + Source="{Binding Items[0].Owner.Avatar}" /> |
| 229 | + <TextBlock Text="{Binding Path=Name.Header}" |
| 230 | + Style="{StaticResource cloneRepoHeaderStyle}" /> |
| 231 | + </StackPanel> |
234 | 232 | </Border> |
235 | 233 | </Expander.Header> |
236 | 234 | <ItemsPresenter Margin="0" /> |
|
0 commit comments