UcFrontPage.xaml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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. <StackPanel
  67. Grid.RowSpan="3"
  68. Grid.ColumnSpan="3"
  69. HorizontalAlignment="Left"
  70. VerticalAlignment="Top"
  71. Orientation="Horizontal">
  72. <Label FontSize="20">多媒體輪播</Label>
  73. <Label
  74. Margin="10,0,0,0"
  75. VerticalAlignment="Bottom"
  76. FontSize="16"
  77. Foreground="Red">
  78. (建議尺寸:1280x720)
  79. </Label>
  80. </StackPanel>
  81. <Border
  82. Grid.Row="1"
  83. Grid.Column="0"
  84. Height="2"
  85. Margin="0,0,0,0"
  86. VerticalAlignment="Top"
  87. BorderBrush="LightGray"
  88. BorderThickness="2" />
  89. <WrapPanel
  90. x:Name="uxFolderPanel"
  91. Grid.Row="2"
  92. Grid.Column="0"
  93. Margin="10"
  94. HorizontalAlignment="Center"
  95. VerticalAlignment="Top"
  96. Orientation="Vertical" />
  97. <Border
  98. Grid.RowSpan="3"
  99. Grid.Column="1"
  100. Width="2"
  101. BorderBrush="LightGray"
  102. BorderThickness="2"
  103. Opacity="1" />
  104. <Viewbox
  105. Grid.Row="0"
  106. Grid.Column="2"
  107. Margin="0,0,0,5"
  108. HorizontalAlignment="Center">
  109. <StackPanel Orientation="Horizontal">
  110. <mui:ModernButton x:Name="uxAddBtn" Click="uxAddBtn_Click" />
  111. <mui:ModernButton x:Name="uxDeleteBtn" Click="uxDeleteBtn_Click" />
  112. <mui:ModernButton x:Name="uxUpBtn" Click="uxLeftBtn_Click">
  113. <mui:ModernButton.RenderTransform>
  114. <RotateTransform Angle="-90" CenterX="10" CenterY="10" />
  115. </mui:ModernButton.RenderTransform>
  116. </mui:ModernButton>
  117. <mui:ModernButton x:Name="uxDownBtn" Click="uxRightBtn_Click">
  118. <mui:ModernButton.RenderTransform>
  119. <RotateTransform Angle="-90" CenterX="10" CenterY="10" />
  120. </mui:ModernButton.RenderTransform>
  121. </mui:ModernButton>
  122. </StackPanel>
  123. </Viewbox>
  124. <Border
  125. Grid.Row="1"
  126. Grid.Column="2"
  127. Height="2"
  128. Margin="0,0,0,0"
  129. VerticalAlignment="Top"
  130. BorderBrush="LightGray"
  131. BorderThickness="2" />
  132. <Border
  133. Grid.Row="2"
  134. Grid.Column="2"
  135. Width="1250"
  136. Margin="20"
  137. Padding="10"
  138. BorderBrush="Gray"
  139. BorderThickness="2">
  140. <ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
  141. <WrapPanel x:Name="uxFileViewer" />
  142. </ScrollViewer>
  143. </Border>
  144. </Grid>
  145. </Grid>
  146. </Grid>
  147. </UserControl>