Advertisement
Cosmo224

brickplanet launcer BAML

Sep 5th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.54 KB | None | 0 0
  1. <Window
  2. x:Class="LauncherBeta.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:local="clr-namespace:Launcher"
  3. Name="LauncherWindow"
  4. Title="Brickplanet Launcher"
  5. Height="256"
  6. Width="512"
  7. WindowStyle="None"
  8. ResizeMode="NoResize"
  9. WindowStartupLocation="CenterScreen" xmlns:launcherbeta="clr-namespace:LauncherBeta"
  10. ContentRendered="LauncherWindow_Rendered">
  11. <FrameworkElement.Resources>
  12. <ResourceDictionary>
  13. <SolidColorBrush
  14. Color="#FF06B025"
  15. x:Key="ProgressBar.Progress" />
  16. <SolidColorBrush
  17. Color="#FFE6E6E6"
  18. x:Key="ProgressBar.Background" />
  19. <SolidColorBrush
  20. Color="#FFBCBCBC"
  21. x:Key="ProgressBar.Border" />
  22. <Style
  23. TargetType="{x:Type ProgressBar}"
  24. x:Key="DownloadProgressBar">
  25. <Setter
  26. Property="Foreground"
  27. Value="{StaticResource ProgressBar.Progress}" />
  28. <Setter
  29. Property="Background"
  30. Value="{StaticResource ProgressBar.Background}" />
  31. <Setter
  32. Property="BorderBrush"
  33. Value="{StaticResource ProgressBar.Border}" />
  34. <Setter
  35. Property="BorderThickness"
  36. Value="1" />
  37. <Setter
  38. Property="Template">
  39. <Setter.Value>
  40. <ControlTemplate
  41. TargetType="{x:Type ProgressBar}">
  42. <Grid
  43. Name="TemplateRoot">
  44. <VisualStateManager.VisualStateGroups>
  45. <VisualStateGroup
  46. x:Name="CommonStates">
  47. <VisualState
  48. x:Name="Determinate" />
  49. <VisualState
  50. x:Name="Indeterminate">
  51. <Storyboard
  52. RepeatBehavior="Forever">
  53. <DoubleAnimationUsingKeyFrames
  54. Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)"
  55. Storyboard.TargetName="Animation">
  56. <EasingDoubleKeyFrame
  57. KeyTime="0"
  58. Value="0.25" />
  59. <EasingDoubleKeyFrame
  60. KeyTime="0:0:1"
  61. Value="0.25" />
  62. <EasingDoubleKeyFrame
  63. KeyTime="0:0:2"
  64. Value="0.25" />
  65. </DoubleAnimationUsingKeyFrames>
  66. <PointAnimationUsingKeyFrames
  67. Storyboard.TargetProperty="(UIElement.RenderTransformOrigin)"
  68. Storyboard.TargetName="Animation">
  69. <EasingPointKeyFrame
  70. KeyTime="0"
  71. Value="-0.5,0.5" />
  72. <EasingPointKeyFrame
  73. KeyTime="0:0:1"
  74. Value="0.5,0.5" />
  75. <EasingPointKeyFrame
  76. KeyTime="0:0:2"
  77. Value="1.5,0.5" />
  78. </PointAnimationUsingKeyFrames>
  79. </Storyboard>
  80. </VisualState>
  81. </VisualStateGroup>
  82. </VisualStateManager.VisualStateGroups>
  83. <Border
  84. BorderBrush="{TemplateBinding BorderBrush}"
  85. BorderThickness="{TemplateBinding BorderThickness}"
  86. Background="{TemplateBinding Background}"
  87. CornerRadius="5" />
  88. <Rectangle
  89. Name="PART_Track" />
  90. <Grid
  91. Name="PART_Indicator"
  92. ClipToBounds="True"
  93. HorizontalAlignment="Left">
  94. <Rectangle
  95. Name="Indicator"
  96. Fill="{TemplateBinding Foreground}"
  97. RadiusX="30"
  98. RadiusY="30" />
  99. <Rectangle
  100. Name="Animation"
  101. Fill="{TemplateBinding Foreground}"
  102. RenderTransformOrigin="0.5,0.5"
  103. RadiusX="5"
  104. RadiusY="5">
  105. <UIElement.RenderTransform>
  106. <TransformGroup>
  107. <ScaleTransform />
  108. <SkewTransform />
  109. <RotateTransform />
  110. <TranslateTransform />
  111. </TransformGroup>
  112. </UIElement.RenderTransform>
  113. </Rectangle>
  114. </Grid>
  115. </Grid>
  116. <ControlTemplate.Triggers>
  117. <Trigger
  118. Property="ProgressBar.Orientation"
  119. Value="Vertical">
  120. <Setter
  121. TargetName="TemplateRoot"
  122. Property="FrameworkElement.LayoutTransform">
  123. <Setter.Value>
  124. <RotateTransform
  125. Angle="-90" />
  126. </Setter.Value>
  127. </Setter>
  128. </Trigger>
  129. <Trigger
  130. Property="ProgressBar.IsIndeterminate"
  131. Value="True">
  132. <Setter
  133. TargetName="Indicator"
  134. Property="Visibility"
  135. Value="Collapsed" />
  136. </Trigger>
  137. </ControlTemplate.Triggers>
  138. </ControlTemplate>
  139. </Setter.Value>
  140. </Setter>
  141. </Style>
  142. </ResourceDictionary>
  143. </FrameworkElement.Resources>
  144. <Grid
  145. Background="#FF272727">
  146. <Image
  147. Height="18"
  148. Margin="0,60,170,0"
  149. VerticalAlignment="Top"
  150. Source="Resources/bp-whit-logo6.png"
  151. HorizontalAlignment="Right"
  152. Width="175" />
  153. <TextBlock
  154. Name="updateText"
  155. TextWrapping="Wrap"
  156. TextAlignment="Center"
  157. Margin="81,164,0,0"
  158. RenderTransformOrigin="-0.526,-0.164"
  159. Foreground="#FFFFFFFF"
  160. Width="350"
  161. Height="92"
  162. HorizontalAlignment="Left"
  163. VerticalAlignment="Top"
  164. Background="{x:Null}" />
  165. <Grid
  166. Height="100" />
  167. <ProgressBar
  168. Name="downloadProgress"
  169. HorizontalAlignment="Left"
  170. Height="26"
  171. Margin="81,108,0,0"
  172. VerticalAlignment="Top"
  173. Width="350"
  174. Value="0"
  175. Background="#FF272727"
  176. BorderBrush="#FF323232"
  177. Style="{DynamicResource DownloadProgressBar}"
  178. Foreground="#FF1773AD" />
  179. </Grid>
  180. </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement