12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <Window x:Class="PackageUploader.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:dotuntils="clr-namespace:SAGA.DotNetUtils.WPF.UserControl;assembly=SAGA.DotNetUtils"
- xmlns:dotconverter="clr-namespace:SAGA.DotNetUtils.WPF.Converter;assembly=SAGA.DotNetUtils"
- mc:Ignorable="d"
- Title="MainWindow" Height="350" Width="1025">
- <Window.Resources>
- <dotconverter:BoolToInverserConverter x:Key="BoolToInverserConverter"></dotconverter:BoolToInverserConverter>
- </Window.Resources>
-
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition/>
- <RowDefinition Height="30"/>
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0">
- <dotuntils:SelectFile_Hyperlink Height="25" Text="{Binding Path=ExeFullPath,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
- IsDisplayFullPath="True" ></dotuntils:SelectFile_Hyperlink>
- <dotuntils:SelectPath Name="txtBasePath" Height="25" Text="{Binding Path=BasePath,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
- BtnImage="/PackageUploader;Component/Image/folder.png"></dotuntils:SelectPath>
- <Grid Height="25">
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- <ColumnDefinition Width="25"/>
- </Grid.ColumnDefinitions>
- <CheckBox Grid.Column="1" x:Name="chk" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="True"></CheckBox>
- <TextBox x:Name="txtDirs" Grid.Column="0" Text="{Binding Path=Dirs,UpdateSourceTrigger=PropertyChanged}"
- VerticalContentAlignment="Center"
- IsEnabled="{Binding ElementName=chk,Path=IsChecked,Converter={StaticResource BoolToInverserConverter},UpdateSourceTrigger=PropertyChanged}"></TextBox>
- </Grid>
- <TextBlock Name="txtVersion" Text="Hello Packages Vision:3.0.0.0" FontSize="20" Height="25"></TextBlock>
- <Button Height="25" Content="上传安装包" Click="ButtonBase_OnClick"></Button>
- </StackPanel>
- <TextBlock Grid.Row="1"
- Margin="20,0"
- Name="txtDiscription" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="28"
- TextWrapping="WrapWithOverflow"></TextBlock>
- <Grid Grid.Row="2">
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- <ColumnDefinition Width="200"/>
- </Grid.ColumnDefinitions>
- <TextBox Grid.Column="0" Name="textbox" Height="25" Text="0.0.0.0"></TextBox>
- <Button Grid.Column="1" Name="btnReset" Height="25" Content="重设云端版本号"
- Click="BtnReset_OnClick"></Button>
- </Grid>
- </Grid>
- </Window>
|