MainWindow.xaml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <Window x:Class="PackageUploader.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:dotuntils="clr-namespace:SAGA.DotNetUtils.WPF.UserControl;assembly=SAGA.DotNetUtils"
  7. xmlns:dotconverter="clr-namespace:SAGA.DotNetUtils.WPF.Converter;assembly=SAGA.DotNetUtils"
  8. mc:Ignorable="d"
  9. Title="MainWindow" Height="350" Width="1025">
  10. <Window.Resources>
  11. <dotconverter:BoolToInverserConverter x:Key="BoolToInverserConverter"></dotconverter:BoolToInverserConverter>
  12. </Window.Resources>
  13. <Grid>
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="Auto"/>
  16. <RowDefinition/>
  17. <RowDefinition Height="30"/>
  18. </Grid.RowDefinitions>
  19. <StackPanel Grid.Row="0">
  20. <dotuntils:SelectFile_Hyperlink Height="25" Text="{Binding Path=ExeFullPath,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
  21. IsDisplayFullPath="True" ></dotuntils:SelectFile_Hyperlink>
  22. <dotuntils:SelectPath Name="txtBasePath" Height="25" Text="{Binding Path=BasePath,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
  23. BtnImage="/PackageUploader;Component/Image/folder.png"></dotuntils:SelectPath>
  24. <Grid Height="25">
  25. <Grid.ColumnDefinitions>
  26. <ColumnDefinition/>
  27. <ColumnDefinition Width="25"/>
  28. </Grid.ColumnDefinitions>
  29. <CheckBox Grid.Column="1" x:Name="chk" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="True"></CheckBox>
  30. <TextBox x:Name="txtDirs" Grid.Column="0" Text="{Binding Path=Dirs,UpdateSourceTrigger=PropertyChanged}"
  31. VerticalContentAlignment="Center"
  32. IsEnabled="{Binding ElementName=chk,Path=IsChecked,Converter={StaticResource BoolToInverserConverter},UpdateSourceTrigger=PropertyChanged}"></TextBox>
  33. </Grid>
  34. <TextBlock Name="txtVersion" Text="Hello Packages Vision:3.0.0.0" FontSize="20" Height="25"></TextBlock>
  35. <Button Height="25" Content="上传安装包" Click="ButtonBase_OnClick"></Button>
  36. </StackPanel>
  37. <TextBlock Grid.Row="1"
  38. Margin="20,0"
  39. Name="txtDiscription" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="28"
  40. TextWrapping="WrapWithOverflow"></TextBlock>
  41. <Grid Grid.Row="2">
  42. <Grid.ColumnDefinitions>
  43. <ColumnDefinition/>
  44. <ColumnDefinition Width="200"/>
  45. </Grid.ColumnDefinitions>
  46. <TextBox Grid.Column="0" Name="textbox" Height="25" Text="0.0.0.0"></TextBox>
  47. <Button Grid.Column="1" Name="btnReset" Height="25" Content="重设云端版本号"
  48. Click="BtnReset_OnClick"></Button>
  49. </Grid>
  50. </Grid>
  51. </Window>