45 lines
2.4 KiB
XML
45 lines
2.4 KiB
XML
<ribbon:RibbonWindow
|
|
x:Class="JD.Guinness.WPF.Module.View.WorkspaceSelectionBox"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
ApplicationName="Set your workspace"
|
|
SizeToContent="Height"
|
|
Width="600"
|
|
ResizeMode="NoResize"
|
|
WindowStartupLocation="CenterScreen">
|
|
<ribbon:RibbonWindow.InputBindings>
|
|
<KeyBinding Key="Esc" Command="{Binding CancelCommand}"/>
|
|
<KeyBinding Key="Return" Command="{Binding OkCommand}"/>
|
|
</ribbon:RibbonWindow.InputBindings>
|
|
<StackPanel Orientation="Vertical" Margin="5">
|
|
<Grid Margin="0,0,0,5">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition/>
|
|
<RowDefinition Height="5"/>
|
|
<RowDefinition/>
|
|
<RowDefinition Height="5"/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Text="Perforce server" VerticalAlignment="Center" Margin="0,0,5,0"/>
|
|
<TextBlock Grid.Row="2" Text="Workspaces" VerticalAlignment="Center" Margin="0,0,5,0"/>
|
|
<TextBlock Grid.Row="4" Text="Guinness file" VerticalAlignment="Center"/>
|
|
<TextBox Grid.Column="1" Text="{Binding PerforceServer}"/>
|
|
<ComboBox Grid.Row="2" Grid.Column="1" ItemsSource="{Binding Workspaces}" SelectedItem="{Binding SelectedWorkspace}" DisplayMemberPath="Name"/>
|
|
<DockPanel Grid.Row="4" Grid.Column="1">
|
|
<TextBlock DockPanel.Dock="Left" Text="{Binding SelectedWorkspace.Path}" VerticalAlignment="Center"/>
|
|
<TextBlock DockPanel.Dock="Left" Text="\" VerticalAlignment="Center"/>
|
|
<Button DockPanel.Dock="Right" Content="..." Command="{Binding SelectFileCommand}"/>
|
|
<TextBox Text="{Binding FilePath, UpdateSourceTrigger=PropertyChanged}" />
|
|
</DockPanel>
|
|
</Grid>
|
|
<UniformGrid HorizontalAlignment="Right" Rows="1" DockPanel.Dock="Bottom">
|
|
<Button Content="Select" Command="{Binding OkCommand}" Padding="5" Margin="-5,0,5,0"/>
|
|
<Button Content="Cancel" Command="{Binding CancelCommand}" Grid.Column="2" Padding="5"/>
|
|
</UniformGrid>
|
|
</StackPanel>
|
|
</ribbon:RibbonWindow>
|