mirror of
https://onedev.site.tesses.net/crosslang/crosslangdevstudio
synced 2026-02-08 09:15:45 +00:00
79 lines
3.7 KiB
XML
79 lines
3.7 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:vm="using:CrossLangDevStudio.ViewModels"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
Width="640"
|
|
Height="480"
|
|
WindowStartupLocation="CenterOwner"
|
|
x:Class="CrossLangDevStudio.Views.PublishDialogView"
|
|
x:DataType="vm:PublishDialogViewModel"
|
|
Icon="/Assets/crosslang.ico"
|
|
Title="Publish">
|
|
<Design.DataContext>
|
|
<!-- This only sets the DataContext for the previewer in an IDE,
|
|
to set the actual DataContext for runtime, set the DataContext property in code (look at App.axaml.cs) -->
|
|
<vm:PublishDialogViewModel/>
|
|
</Design.DataContext>
|
|
|
|
<Grid Margin="20">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label Margin="0 5" Grid.Row="0" Content="Package Prefix" />
|
|
<TextBox Grid.Row="1" Text="{Binding Prefix}" />
|
|
<Label Margin="0 5" Grid.Row="2" Content="Server (click load even if correct and if package prefix is changed)" />
|
|
<Grid Grid.Row="3">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<ComboBox Grid.Column="0" ItemsSource="{Binding Servers}" SelectedIndex="{Binding ServerIndex}" HorizontalAlignment="Stretch" />
|
|
<Button Grid.Column="1" Content="Load" Command="{Binding LoadCommand}" />
|
|
</Grid>
|
|
<Label Margin="0 5" Grid.Row="4" Content="Target" />
|
|
<ComboBox Grid.Row="5" ItemsSource="{Binding Targets}" SelectedIndex="{Binding TargetIndex}" HorizontalAlignment="Stretch" />
|
|
<Label Margin="0 5" Grid.Row="6" Content="Output type" />
|
|
<ComboBox Grid.Row="7" SelectedIndex="{Binding OutputType}" HorizontalAlignment="Stretch">
|
|
<ComboBoxItem>Directory</ComboBoxItem>
|
|
<ComboBoxItem>ZIP</ComboBoxItem>
|
|
<ComboBoxItem>TAR</ComboBoxItem>
|
|
<ComboBoxItem>TAR.GZ</ComboBoxItem>
|
|
<ComboBoxItem>TAR.BZ2</ComboBoxItem>
|
|
</ComboBox>
|
|
|
|
<Label Margin="0 5" Grid.Row="8" Content="{Binding OutputLabel}" />
|
|
<Grid Grid.Row="9">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBox Grid.Column="0" Text="{Binding Output}" />
|
|
<Button Grid.Column="1" Content="Browse" Command="{Binding BrowseCommand}" />
|
|
</Grid>
|
|
|
|
<Grid Grid.Row="11">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Button Grid.Column="1" Content="Publish" Command="{Binding PublishCommand}" Margin="0 0 5 0"/>
|
|
<Button Grid.Column="2" Content="Cancel" Command="{Binding CancelCommand}"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Window> |