mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-29 16:14:59 +00:00
feature: add property RestoreOnStartup
property to ViewModels.Workspace
(#488)
This commit is contained in:
parent
900ebd8282
commit
84fda6a8db
9 changed files with 59 additions and 25 deletions
|
@ -46,7 +46,7 @@
|
|||
</Grid>
|
||||
|
||||
<!-- BODY -->
|
||||
<Grid Grid.Row="1" ColumnDefinitions="200,16,256" Height="324" Margin="8">
|
||||
<Grid Grid.Row="1" ColumnDefinitions="200,16,256" MinHeight="356" Margin="8">
|
||||
<Border Grid.Column="0"
|
||||
BorderThickness="1" BorderBrush="{DynamicResource Brush.Border2}"
|
||||
Background="{DynamicResource Brush.Contents}">
|
||||
|
@ -107,12 +107,16 @@
|
|||
<ContentControl Grid.Column="2" Content="{Binding Selected}">
|
||||
<ContentControl.DataTemplates>
|
||||
<DataTemplate DataType="vm:Workspace">
|
||||
<Grid RowDefinitions="Auto,Auto,Auto,Auto">
|
||||
<Grid RowDefinitions="Auto,32,32,Auto,256">
|
||||
<TextBlock Grid.Row="0" Text="{DynamicResource Text.ConfigureWorkspace.Name}"/>
|
||||
<TextBox Grid.Row="1" Margin="0,4,0,0" CornerRadius="3" Height="28" Text="{Binding Name, Mode=TwoWay}"/>
|
||||
|
||||
<TextBlock Grid.Row="2" Margin="0,12,0,4" Text="{DynamicResource Text.ConfigureWorkspace.Color}"/>
|
||||
<v:ColorPicker Grid.Row="3" HorizontalAlignment="Left" Value="{Binding Color, Mode=TwoWay}"/>
|
||||
<CheckBox Grid.Row="2"
|
||||
Content="{DynamicResource Text.ConfigureWorkspace.Restore}"
|
||||
IsChecked="{Binding RestoreOnStartup, Mode=TwoWay}"/>
|
||||
|
||||
<TextBlock Grid.Row="3" Margin="0,8,0,4" Text="{DynamicResource Text.ConfigureWorkspace.Color}"/>
|
||||
<v:ColorPicker Grid.Row="4" HorizontalAlignment="Left" Value="{Binding Color, Mode=TwoWay}"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ContentControl.DataTemplates>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue