UcFrontPage.xaml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <UserControl
  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:local="clr-namespace:BellwetherBackend.SubPage"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:mui="http://firstfloorsoftware.com/ModernUI"
  8. d:DesignHeight="450"
  9. d:DesignWidth="800"
  10. mc:Ignorable="d"
  11. x:Class="BellwetherBackend.SubPage.UcFrontPage">
  12. <Grid Background="White">
  13. <Grid>
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="15" />
  16. <RowDefinition Height="Auto" />
  17. <RowDefinition Height="15" />
  18. <RowDefinition Height="Auto" />
  19. <RowDefinition Height="15" />
  20. <RowDefinition Height="Auto" />
  21. <RowDefinition Height="15" />
  22. </Grid.RowDefinitions>
  23. <StackPanel
  24. Grid.Row="1"
  25. Height="35"
  26. Orientation="Horizontal">
  27. <TextBlock
  28. VerticalAlignment="Center"
  29. Text="太陽能url"
  30. FontSize="20" />
  31. <Rectangle Width="20" />
  32. <TextBox
  33. x:Name="uxSolarEnergyUrlText"
  34. Width="1000"
  35. VerticalContentAlignment="Center"
  36. FontSize="20"
  37. TextChanged="uxSolarUrlText_TextChanged" />
  38. </StackPanel>
  39. <StackPanel
  40. Grid.Row="3"
  41. Height="35"
  42. Orientation="Horizontal">
  43. <TextBlock
  44. VerticalAlignment="Center"
  45. Text="輪播間隔時間(秒)"
  46. FontSize="20" />
  47. <Rectangle Width="20" />
  48. <TextBox
  49. x:Name="uxAutoPlaIntervalText"
  50. Width="1000"
  51. VerticalContentAlignment="Center"
  52. FontSize="20"
  53. TextChanged="uxAutoPlaIntervalText_TextChanged" />
  54. </StackPanel>
  55. <Grid Grid.Row="5">
  56. <Grid.RowDefinitions>
  57. <RowDefinition Height="50" />
  58. <RowDefinition Height="20" />
  59. <RowDefinition Height="*" />
  60. </Grid.RowDefinitions>
  61. <Grid.ColumnDefinitions>
  62. <ColumnDefinition Width="0" />
  63. <ColumnDefinition Width="0" />
  64. <ColumnDefinition Width="*" />
  65. </Grid.ColumnDefinitions>
  66. <TextBlock
  67. Grid.Row="0"
  68. Grid.Column="0"
  69. HorizontalAlignment="Left"
  70. VerticalAlignment="Center"
  71. Text="資料夾"
  72. FontSize="40" />
  73. <Border
  74. Grid.Row="1"
  75. Grid.Column="0"
  76. Height="2"
  77. Margin="0,0,0,0"
  78. VerticalAlignment="Top"
  79. BorderBrush="LightGray"
  80. BorderThickness="2" />
  81. <WrapPanel
  82. x:Name="uxFolderPanel"
  83. Grid.Row="2"
  84. Grid.Column="0"
  85. Margin="10"
  86. HorizontalAlignment="Center"
  87. VerticalAlignment="Top"
  88. Orientation="Vertical" />
  89. <Border
  90. Grid.RowSpan="3"
  91. Grid.Column="1"
  92. Width="2"
  93. BorderBrush="LightGray"
  94. BorderThickness="2"
  95. Opacity="1" />
  96. <Viewbox
  97. Grid.Row="0"
  98. Grid.Column="2"
  99. Margin="0,0,0,5"
  100. HorizontalAlignment="Center">
  101. <StackPanel Orientation="Horizontal">
  102. <mui:ModernButton x:Name="uxAddBtn" Click="uxAddBtn_Click" />
  103. <mui:ModernButton x:Name="uxDeleteBtn" Click="uxDeleteBtn_Click" />
  104. <mui:ModernButton x:Name="uxUpBtn" Click="uxLeftBtn_Click">
  105. <mui:ModernButton.RenderTransform>
  106. <RotateTransform Angle="-90" CenterX="10" CenterY="10" />
  107. </mui:ModernButton.RenderTransform>
  108. </mui:ModernButton>
  109. <mui:ModernButton x:Name="uxDownBtn" Click="uxRightBtn_Click">
  110. <mui:ModernButton.RenderTransform>
  111. <RotateTransform Angle="-90" CenterX="10" CenterY="10" />
  112. </mui:ModernButton.RenderTransform>
  113. </mui:ModernButton>
  114. </StackPanel>
  115. </Viewbox>
  116. <Border
  117. Grid.Row="1"
  118. Grid.Column="2"
  119. Height="2"
  120. Margin="0,0,0,0"
  121. VerticalAlignment="Top"
  122. BorderBrush="LightGray"
  123. BorderThickness="2" />
  124. <Border
  125. Grid.Row="2"
  126. Grid.Column="2"
  127. Width="1250"
  128. Margin="20"
  129. Padding="10"
  130. BorderBrush="Gray"
  131. BorderThickness="2">
  132. <ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
  133. <WrapPanel x:Name="uxFileViewer" />
  134. </ScrollViewer>
  135. </Border>
  136. </Grid>
  137. </Grid>
  138. </Grid>
  139. </UserControl>