mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
ux: use CommitMessageTextBox
in Reword popup panel
This commit is contained in:
parent
4f61cd1b38
commit
0d03d08bf0
1 changed files with 12 additions and 10 deletions
|
@ -12,7 +12,7 @@
|
||||||
<TextBlock FontSize="18"
|
<TextBlock FontSize="18"
|
||||||
Classes="bold"
|
Classes="bold"
|
||||||
Text="{DynamicResource Text.Reword}"/>
|
Text="{DynamicResource Text.Reword}"/>
|
||||||
<Grid Margin="0,16,0,0" RowDefinitions="32,32,32,32" ColumnDefinitions="100,*">
|
<Grid Margin="0,16,0,0" RowDefinitions="32,160,Auto" ColumnDefinitions="100,*">
|
||||||
<TextBlock Grid.Row="0" Grid.Column="0"
|
<TextBlock Grid.Row="0" Grid.Column="0"
|
||||||
HorizontalAlignment="Right" VerticalAlignment="Center"
|
HorizontalAlignment="Right" VerticalAlignment="Center"
|
||||||
Margin="0,0,8,0"
|
Margin="0,0,8,0"
|
||||||
|
@ -24,16 +24,18 @@
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<TextBlock Grid.Row="1" Grid.Column="0"
|
<TextBlock Grid.Row="1" Grid.Column="0"
|
||||||
HorizontalAlignment="Right" VerticalAlignment="Center"
|
HorizontalAlignment="Right" VerticalAlignment="Top"
|
||||||
Margin="0,0,8,0"
|
Margin="0,8,8,0"
|
||||||
Text="{DynamicResource Text.Reword.Message}"/>
|
Text="{DynamicResource Text.Reword.Message}"/>
|
||||||
<TextBox Grid.Row="1" Grid.RowSpan="3" Grid.Column="1"
|
<v:CommitMessageTextBox Grid.Row="1" Grid.Column="1"
|
||||||
|
Margin="0,5,0,0"
|
||||||
|
Text="{Binding Message, Mode=TwoWay}"/>
|
||||||
|
|
||||||
|
<TextBlock Grid.Row="2" Grid.Column="1"
|
||||||
Margin="0,4,0,0"
|
Margin="0,4,0,0"
|
||||||
CornerRadius="2"
|
Text="Use 'Shift+Enter' to input a new line. 'Enter' is the hotkey of OK button"
|
||||||
AcceptsReturn="True"
|
TextWrapping="Wrap"
|
||||||
VerticalContentAlignment="Top"
|
Foreground="{DynamicResource Brush.FG2}"/>
|
||||||
Text="{Binding Message, Mode=TwoWay}"
|
|
||||||
v:AutoFocusBehaviour.IsEnabled="True"/>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
|
Loading…
Reference in a new issue