-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathExperimentalRepoDialogWindow.axaml
More file actions
38 lines (35 loc) · 2.02 KB
/
Copy pathExperimentalRepoDialogWindow.axaml
File metadata and controls
38 lines (35 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<Window x:Class="LlamaServerLauncher.ExperimentalRepoDialogWindow"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="clr-namespace:LlamaServerLauncher.ViewModels;assembly=LlamaServerLauncher"
Title="{Binding DialogTitle}"
Width="500" Height="280"
WindowStartupLocation="CenterOwner"
CanResize="True"
MinWidth="400" MinHeight="260"
Background="{DynamicResource WindowBackgroundBrush}">
<Design.DataContext>
<vm:ExperimentalRepoDialogViewModel/>
</Design.DataContext>
<Grid Margin="15" RowDefinitions="Auto,Auto,Auto,Auto,Auto,*" Width="460">
<TextBlock Grid.Row="0" Text="{Binding Localized.RepoUrl}" Margin="0,0,0,5"/>
<TextBox Grid.Row="1" Text="{Binding RepoUrl, UpdateSourceTrigger=PropertyChanged}"
PlaceholderText="https://github.com/user/repo" Margin="0,0,0,8"/>
<TextBlock Grid.Row="2" Text="{Binding ValidationError}" Foreground="Red" FontSize="12" Margin="0,0,0,8"
IsVisible="{Binding HasValidationError}"/>
<Grid Grid.Row="3" ColumnDefinitions="*,12,*" Margin="0,0,0,10">
<StackPanel Grid.Column="0">
<TextBlock Text="{Binding Localized.DisplayName}" Margin="0,0,0,5"/>
<TextBox Text="{Binding DisplayName, UpdateSourceTrigger=PropertyChanged}"/>
</StackPanel>
<StackPanel Grid.Column="2">
<TextBlock Text="{Binding Localized.FilterTags}" Margin="0,0,0,5"/>
<TextBox Text="{Binding FilterTags}" PlaceholderText="windows,mswin,win"/>
</StackPanel>
</Grid>
<StackPanel Grid.Row="4" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,10,0,0">
<Button Content="{Binding Localized.OK}" Click="OkClick" Width="80" Margin="0,0,10,0" IsEnabled="{Binding CanSave}"/>
<Button Content="{Binding Localized.Cancel}" Click="CancelClick" Width="80"/>
</StackPanel>
</Grid>
</Window>