mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
ux: using Grid instead of StackPanel to layout convertional commit change type
This commit is contained in:
parent
72b46a6e16
commit
d3bca20034
1 changed files with 4 additions and 4 deletions
|
@ -59,10 +59,10 @@
|
||||||
SelectedItem="{Binding Type, Mode=TwoWay}">
|
SelectedItem="{Binding Type, Mode=TwoWay}">
|
||||||
<ComboBox.ItemTemplate>
|
<ComboBox.ItemTemplate>
|
||||||
<DataTemplate x:DataType="{x:Type m:ConventionalCommitType}">
|
<DataTemplate x:DataType="{x:Type m:ConventionalCommitType}">
|
||||||
<StackPanel Orientation="Horizontal" Height="20" VerticalAlignment="Center">
|
<Grid Height="20" ColumnDefinitions="64,Auto" VerticalAlignment="Center">
|
||||||
<TextBlock Text="{Binding Type}"/>
|
<TextBlock Grid.Column="0" Text="{Binding Type}"/>
|
||||||
<TextBlock Margin="6,0,0,0" Text="{Binding Description}" Foreground="{DynamicResource Brush.FG2}"/>
|
<TextBlock Grid.Column="1" Text="{Binding Description}" Foreground="{DynamicResource Brush.FG2}"/>
|
||||||
</StackPanel>
|
</Grid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ComboBox.ItemTemplate>
|
</ComboBox.ItemTemplate>
|
||||||
</ComboBox>
|
</ComboBox>
|
||||||
|
|
Loading…
Reference in a new issue