Advertisement
Guest User

CreateClient

a guest
Nov 22nd, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 171.40 KB | None | 0 0
  1.  
  2.  
  3.  
  4. <ScrollViewer Height="Auto"
  5. VerticalScrollBarVisibility="Auto"
  6. VerticalScrollMode="Enabled"
  7. IsVerticalScrollChainingEnabled="True"
  8. HorizontalScrollMode="Disabled"
  9. >
  10.  
  11. <Grid Height="1000" Width="432px">
  12. <Grid.Background>
  13. <LinearGradientBrush EndPoint="1.5,1" StartPoint="0.02,0" SpreadMethod="Pad" Opacity="1" MappingMode="RelativeToBoundingBox">
  14. <GradientStop Color="#FF1F2833" Offset="0.137"/>
  15. <GradientStop Color="#FFE91EAD" Offset="0.98"/>
  16. <GradientStop Color="#FFE91EAD" Offset="0"/>
  17. <GradientStop Color="#FF1F2833" Offset="0.686"/>
  18. </LinearGradientBrush>
  19. </Grid.Background>
  20.  
  21.  
  22. <StackPanel Height="Auto"
  23. VerticalAlignment="Top">
  24. <StackPanel HorizontalAlignment="Center"
  25. Width="275"
  26. Orientation="Vertical">
  27.  
  28. <TextBlock Text="Oprettelse af klient"
  29. Foreground="White"
  30. FontSize="25"
  31. HorizontalAlignment="Left"
  32. Margin="0,50,0,0"/>
  33.  
  34. <Line X1="0"
  35. X2="250"
  36. Stroke="#66fcf1"
  37. Margin="0,10,0,0"/>
  38.  
  39. <TextBlock Text="Navn"
  40. Foreground="White"
  41. FontSize="18"
  42. Margin="0,10,0,0"/>
  43.  
  44. <TextBox x:Name="NavnBox"
  45. Background="White"
  46. Margin="0,5,0,0"
  47. Width="215"
  48. HorizontalAlignment="Left"
  49. PlaceholderText="Indtast navn"
  50. Height="35"
  51. Foreground="black">
  52. <TextBox.Resources>
  53. <Style x:Key="RundeKanter" TargetType="TextBox">
  54. <Setter Property="MinWidth" Value="{ThemeResource TextControlThemeMinWidth}"/>
  55. <Setter Property="MinHeight" Value="{ThemeResource TextControlThemeMinHeight}"/>
  56. <Setter Property="Foreground" Value="{ThemeResource TextControlForeground}"/>
  57. <Setter Property="Background" Value="{ThemeResource TextControlBackground}"/>
  58. <Setter Property="BorderBrush" Value="{ThemeResource TextControlBorderBrush}"/>
  59. <Setter Property="SelectionHighlightColor" Value="{ThemeResource TextControlSelectionHighlightColor}"/>
  60. <Setter Property="BorderThickness" Value="{ThemeResource TextControlBorderThemeThickness}"/>
  61. <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}"/>
  62. <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}"/>
  63. <Setter Property="ScrollViewer.HorizontalScrollMode" Value="Auto"/>
  64. <Setter Property="ScrollViewer.VerticalScrollMode" Value="Auto"/>
  65. <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden"/>
  66. <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden"/>
  67. <Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False"/>
  68. <Setter Property="Padding" Value="{ThemeResource TextControlThemePadding}"/>
  69. <Setter Property="Template">
  70. <Setter.Value>
  71. <ControlTemplate TargetType="TextBox">
  72. <Grid CornerRadius="17" BorderThickness="2" BorderBrush="#66fcf1">
  73. <Grid.Resources>
  74. <Style x:Name="DeleteButtonStyle" TargetType="Button">
  75. <Setter Property="Template">
  76. <Setter.Value>
  77. <ControlTemplate TargetType="Button">
  78. <Grid x:Name="ButtonLayoutGrid" BorderBrush="{ThemeResource TextControlButtonBorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{ThemeResource TextControlButtonBackground}">
  79. <VisualStateManager.VisualStateGroups>
  80. <VisualStateGroup x:Name="CommonStates">
  81. <VisualState x:Name="Normal"/>
  82. <VisualState x:Name="PointerOver">
  83. <Storyboard>
  84. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonLayoutGrid">
  85. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBackgroundPointerOver}"/>
  86. </ObjectAnimationUsingKeyFrames>
  87. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonLayoutGrid">
  88. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBorderBrushPointerOver}"/>
  89. </ObjectAnimationUsingKeyFrames>
  90. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="GlyphElement">
  91. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonForegroundPointerOver}"/>
  92. </ObjectAnimationUsingKeyFrames>
  93. </Storyboard>
  94. </VisualState>
  95. <VisualState x:Name="Pressed">
  96. <Storyboard>
  97. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonLayoutGrid">
  98. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBackgroundPressed}"/>
  99. </ObjectAnimationUsingKeyFrames>
  100. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonLayoutGrid">
  101. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBorderBrushPressed}"/>
  102. </ObjectAnimationUsingKeyFrames>
  103. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="GlyphElement">
  104. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonForegroundPressed}"/>
  105. </ObjectAnimationUsingKeyFrames>
  106. </Storyboard>
  107. </VisualState>
  108. <VisualState x:Name="Disabled">
  109. <Storyboard>
  110. <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ButtonLayoutGrid"/>
  111. </Storyboard>
  112. </VisualState>
  113. </VisualStateGroup>
  114. </VisualStateManager.VisualStateGroups>
  115. <TextBlock x:Name="GlyphElement" AutomationProperties.AccessibilityView="Raw" Foreground="{ThemeResource TextControlButtonForeground}" FontStyle="Normal" FontSize="12" FontFamily="{ThemeResource SymbolThemeFontFamily}" HorizontalAlignment="Center" Text="&#xE10A;" VerticalAlignment="Center"/>
  116. </Grid>
  117. </ControlTemplate>
  118. </Setter.Value>
  119. </Setter>
  120. </Style>
  121. </Grid.Resources>
  122. <Grid.ColumnDefinitions>
  123. <ColumnDefinition Width="*"/>
  124. <ColumnDefinition Width="Auto"/>
  125. </Grid.ColumnDefinitions>
  126. <Grid.RowDefinitions>
  127. <RowDefinition Height="Auto"/>
  128. <RowDefinition Height="*"/>
  129. </Grid.RowDefinitions>
  130. <VisualStateManager.VisualStateGroups>
  131. <VisualStateGroup x:Name="CommonStates">
  132. <VisualState x:Name="Disabled">
  133. <Storyboard>
  134. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="HeaderContentPresenter">
  135. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlHeaderForegroundDisabled}"/>
  136. </ObjectAnimationUsingKeyFrames>
  137. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BorderElement">
  138. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBackgroundDisabled}"/>
  139. </ObjectAnimationUsingKeyFrames>
  140. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BorderElement">
  141. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBorderBrushDisabled}"/>
  142. </ObjectAnimationUsingKeyFrames>
  143. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
  144. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlForegroundDisabled}"/>
  145. </ObjectAnimationUsingKeyFrames>
  146. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PlaceholderTextContentPresenter">
  147. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlPlaceholderForegroundDisabled}"/>
  148. </ObjectAnimationUsingKeyFrames>
  149. </Storyboard>
  150. </VisualState>
  151. <VisualState x:Name="Normal"/>
  152. <VisualState x:Name="PointerOver">
  153. <Storyboard>
  154. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BorderElement">
  155. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBorderBrushPointerOver}"/>
  156. </ObjectAnimationUsingKeyFrames>
  157. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BorderElement">
  158. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBackgroundPointerOver}"/>
  159. </ObjectAnimationUsingKeyFrames>
  160. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PlaceholderTextContentPresenter">
  161. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlPlaceholderForegroundPointerOver}"/>
  162. </ObjectAnimationUsingKeyFrames>
  163. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
  164. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlForegroundPointerOver}"/>
  165. </ObjectAnimationUsingKeyFrames>
  166. </Storyboard>
  167. </VisualState>
  168. <VisualState x:Name="Focused">
  169. <Storyboard>
  170. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PlaceholderTextContentPresenter">
  171. <DiscreteObjectKeyFrame KeyTime="0" Value="Black"/>
  172. </ObjectAnimationUsingKeyFrames>
  173. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BorderElement">
  174. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBackgroundFocused}"/>
  175. </ObjectAnimationUsingKeyFrames>
  176. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BorderElement">
  177. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBorderBrushFocused}"/>
  178. </ObjectAnimationUsingKeyFrames>
  179. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
  180. <DiscreteObjectKeyFrame KeyTime="0" Value="Black"/>
  181. </ObjectAnimationUsingKeyFrames>
  182. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="RequestedTheme" Storyboard.TargetName="ContentElement">
  183. <DiscreteObjectKeyFrame KeyTime="0" Value="Light"/>
  184. </ObjectAnimationUsingKeyFrames>
  185. </Storyboard>
  186. </VisualState>
  187. </VisualStateGroup>
  188. <VisualStateGroup x:Name="ButtonStates">
  189. <VisualState x:Name="ButtonVisible">
  190. <Storyboard>
  191. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DeleteButton">
  192. <DiscreteObjectKeyFrame KeyTime="0">
  193. <DiscreteObjectKeyFrame.Value>
  194. <Visibility>Visible</Visibility>
  195. </DiscreteObjectKeyFrame.Value>
  196. </DiscreteObjectKeyFrame>
  197. </ObjectAnimationUsingKeyFrames>
  198. </Storyboard>
  199. </VisualState>
  200. <VisualState x:Name="ButtonCollapsed"/>
  201. </VisualStateGroup>
  202. </VisualStateManager.VisualStateGroups>
  203. <Border x:Name="BorderElement" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="1" CornerRadius="15"/>
  204. <ContentPresenter x:Name="HeaderContentPresenter" Grid.ColumnSpan="2" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" Foreground="{ThemeResource TextControlHeaderForeground}" FontWeight="Normal" Margin="0,0,0,8" Grid.Row="0" Visibility="Collapsed" x:DeferLoadStrategy="Lazy"/>
  205. <ScrollViewer x:Name="ContentElement" AutomationProperties.AccessibilityView="Raw" HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}" HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" IsTabStop="False" IsHorizontalRailEnabled="{TemplateBinding ScrollViewer.IsHorizontalRailEnabled}" IsVerticalRailEnabled="{TemplateBinding ScrollViewer.IsVerticalRailEnabled}" IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}" Margin="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" Grid.Row="1" VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}" VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}" ZoomMode="Disabled" VerticalAlignment="Center"/>
  206. <ContentControl x:Name="PlaceholderTextContentPresenter" Grid.ColumnSpan="2" Content="{TemplateBinding PlaceholderText}" Foreground="{ThemeResource TextControlPlaceholderForeground}" IsHitTestVisible="False" IsTabStop="False" Margin="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" Grid.Row="1"/>
  207. <Button x:Name="DeleteButton" AutomationProperties.AccessibilityView="Raw" BorderThickness="{TemplateBinding BorderThickness}" Grid.Column="1" FontSize="{TemplateBinding FontSize}" IsTabStop="False" Margin="{ThemeResource HelperButtonThemePadding}" MinWidth="34" Grid.Row="1" Style="{StaticResource DeleteButtonStyle}" Visibility="Collapsed" VerticalAlignment="Stretch"/>
  208. </Grid>
  209. </ControlTemplate>
  210. </Setter.Value>
  211. </Setter>
  212. </Style>
  213. </TextBox.Resources>
  214. <TextBox.Style>
  215. <StaticResource ResourceKey="RundeKanter"/>
  216. </TextBox.Style>
  217. </TextBox>
  218.  
  219. <TextBlock Text="Alder"
  220. Foreground="White"
  221. FontSize="18"
  222. Margin="0,10,0,0"/>
  223. <TextBox x:Name="AlderBox"
  224. Background="White"
  225. Margin="0,5,0,0"
  226. Width="215"
  227. HorizontalAlignment="Left"
  228. PlaceholderText="Indtast alder"
  229. Height="35"
  230. MaxLength="2">
  231. <TextBox.Resources>
  232. <Style x:Key="RundeKanter" TargetType="TextBox">
  233. <Setter Property="MinWidth" Value="{ThemeResource TextControlThemeMinWidth}"/>
  234. <Setter Property="MinHeight" Value="{ThemeResource TextControlThemeMinHeight}"/>
  235. <Setter Property="Foreground" Value="{ThemeResource TextControlForeground}"/>
  236. <Setter Property="Background" Value="{ThemeResource TextControlBackground}"/>
  237. <Setter Property="BorderBrush" Value="{ThemeResource TextControlBorderBrush}"/>
  238. <Setter Property="SelectionHighlightColor" Value="{ThemeResource TextControlSelectionHighlightColor}"/>
  239. <Setter Property="BorderThickness" Value="{ThemeResource TextControlBorderThemeThickness}"/>
  240. <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}"/>
  241. <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}"/>
  242. <Setter Property="ScrollViewer.HorizontalScrollMode" Value="Auto"/>
  243. <Setter Property="ScrollViewer.VerticalScrollMode" Value="Auto"/>
  244. <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden"/>
  245. <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden"/>
  246. <Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False"/>
  247. <Setter Property="Padding" Value="{ThemeResource TextControlThemePadding}"/>
  248. <Setter Property="Template">
  249. <Setter.Value>
  250. <ControlTemplate TargetType="TextBox">
  251. <Grid CornerRadius="17" BorderThickness="2" BorderBrush="#66fcf1">
  252. <Grid.Resources>
  253. <Style x:Name="DeleteButtonStyle" TargetType="Button">
  254. <Setter Property="Template">
  255. <Setter.Value>
  256. <ControlTemplate TargetType="Button">
  257. <Grid x:Name="ButtonLayoutGrid" BorderBrush="{ThemeResource TextControlButtonBorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{ThemeResource TextControlButtonBackground}">
  258. <VisualStateManager.VisualStateGroups>
  259. <VisualStateGroup x:Name="CommonStates">
  260. <VisualState x:Name="Normal"/>
  261. <VisualState x:Name="PointerOver">
  262. <Storyboard>
  263. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonLayoutGrid">
  264. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBackgroundPointerOver}"/>
  265. </ObjectAnimationUsingKeyFrames>
  266. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonLayoutGrid">
  267. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBorderBrushPointerOver}"/>
  268. </ObjectAnimationUsingKeyFrames>
  269. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="GlyphElement">
  270. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonForegroundPointerOver}"/>
  271. </ObjectAnimationUsingKeyFrames>
  272. </Storyboard>
  273. </VisualState>
  274. <VisualState x:Name="Pressed">
  275. <Storyboard>
  276. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonLayoutGrid">
  277. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBackgroundPressed}"/>
  278. </ObjectAnimationUsingKeyFrames>
  279. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonLayoutGrid">
  280. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBorderBrushPressed}"/>
  281. </ObjectAnimationUsingKeyFrames>
  282. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="GlyphElement">
  283. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonForegroundPressed}"/>
  284. </ObjectAnimationUsingKeyFrames>
  285. </Storyboard>
  286. </VisualState>
  287. <VisualState x:Name="Disabled">
  288. <Storyboard>
  289. <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ButtonLayoutGrid"/>
  290. </Storyboard>
  291. </VisualState>
  292. </VisualStateGroup>
  293. </VisualStateManager.VisualStateGroups>
  294. <TextBlock x:Name="GlyphElement" AutomationProperties.AccessibilityView="Raw" Foreground="{ThemeResource TextControlButtonForeground}" FontStyle="Normal" FontSize="12" FontFamily="{ThemeResource SymbolThemeFontFamily}" HorizontalAlignment="Center" Text="&#xE10A;" VerticalAlignment="Center"/>
  295. </Grid>
  296. </ControlTemplate>
  297. </Setter.Value>
  298. </Setter>
  299. </Style>
  300. </Grid.Resources>
  301. <Grid.ColumnDefinitions>
  302. <ColumnDefinition Width="*"/>
  303. <ColumnDefinition Width="Auto"/>
  304. </Grid.ColumnDefinitions>
  305. <Grid.RowDefinitions>
  306. <RowDefinition Height="Auto"/>
  307. <RowDefinition Height="*"/>
  308. </Grid.RowDefinitions>
  309. <VisualStateManager.VisualStateGroups>
  310. <VisualStateGroup x:Name="CommonStates">
  311. <VisualState x:Name="Disabled">
  312. <Storyboard>
  313. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="HeaderContentPresenter">
  314. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlHeaderForegroundDisabled}"/>
  315. </ObjectAnimationUsingKeyFrames>
  316. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BorderElement">
  317. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBackgroundDisabled}"/>
  318. </ObjectAnimationUsingKeyFrames>
  319. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BorderElement">
  320. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBorderBrushDisabled}"/>
  321. </ObjectAnimationUsingKeyFrames>
  322. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
  323. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlForegroundDisabled}"/>
  324. </ObjectAnimationUsingKeyFrames>
  325. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PlaceholderTextContentPresenter">
  326. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlPlaceholderForegroundDisabled}"/>
  327. </ObjectAnimationUsingKeyFrames>
  328. </Storyboard>
  329. </VisualState>
  330. <VisualState x:Name="Normal"/>
  331. <VisualState x:Name="PointerOver">
  332. <Storyboard>
  333. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BorderElement">
  334. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBorderBrushPointerOver}"/>
  335. </ObjectAnimationUsingKeyFrames>
  336. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BorderElement">
  337. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBackgroundPointerOver}"/>
  338. </ObjectAnimationUsingKeyFrames>
  339. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PlaceholderTextContentPresenter">
  340. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlPlaceholderForegroundPointerOver}"/>
  341. </ObjectAnimationUsingKeyFrames>
  342. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
  343. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlForegroundPointerOver}"/>
  344. </ObjectAnimationUsingKeyFrames>
  345. </Storyboard>
  346. </VisualState>
  347. <VisualState x:Name="Focused">
  348. <Storyboard>
  349. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PlaceholderTextContentPresenter">
  350. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlPlaceholderForegroundFocused}"/>
  351. </ObjectAnimationUsingKeyFrames>
  352. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BorderElement">
  353. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBackgroundFocused}"/>
  354. </ObjectAnimationUsingKeyFrames>
  355. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BorderElement">
  356. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBorderBrushFocused}"/>
  357. </ObjectAnimationUsingKeyFrames>
  358. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
  359. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlForegroundFocused}"/>
  360. </ObjectAnimationUsingKeyFrames>
  361. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="RequestedTheme" Storyboard.TargetName="ContentElement">
  362. <DiscreteObjectKeyFrame KeyTime="0" Value="Light"/>
  363. </ObjectAnimationUsingKeyFrames>
  364. </Storyboard>
  365. </VisualState>
  366. </VisualStateGroup>
  367. <VisualStateGroup x:Name="ButtonStates">
  368. <VisualState x:Name="ButtonVisible">
  369. <Storyboard>
  370. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DeleteButton">
  371. <DiscreteObjectKeyFrame KeyTime="0">
  372. <DiscreteObjectKeyFrame.Value>
  373. <Visibility>Visible</Visibility>
  374. </DiscreteObjectKeyFrame.Value>
  375. </DiscreteObjectKeyFrame>
  376. </ObjectAnimationUsingKeyFrames>
  377. </Storyboard>
  378. </VisualState>
  379. <VisualState x:Name="ButtonCollapsed"/>
  380. </VisualStateGroup>
  381. </VisualStateManager.VisualStateGroups>
  382. <Border x:Name="BorderElement" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="1" CornerRadius="15"/>
  383. <ContentPresenter x:Name="HeaderContentPresenter" Grid.ColumnSpan="2" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" Foreground="{ThemeResource TextControlHeaderForeground}" FontWeight="Normal" Margin="0,0,0,8" Grid.Row="0" Visibility="Collapsed" x:DeferLoadStrategy="Lazy"/>
  384. <ScrollViewer x:Name="ContentElement" AutomationProperties.AccessibilityView="Raw" HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}" HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" IsTabStop="False" IsHorizontalRailEnabled="{TemplateBinding ScrollViewer.IsHorizontalRailEnabled}" IsVerticalRailEnabled="{TemplateBinding ScrollViewer.IsVerticalRailEnabled}" IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}" Margin="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" Grid.Row="1" VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}" VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}" ZoomMode="Disabled" VerticalAlignment="Center"/>
  385. <ContentControl x:Name="PlaceholderTextContentPresenter" Grid.ColumnSpan="2" Content="{TemplateBinding PlaceholderText}" Foreground="{ThemeResource TextControlPlaceholderForeground}" IsHitTestVisible="False" IsTabStop="False" Margin="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" Grid.Row="1"/>
  386. <Button x:Name="DeleteButton" AutomationProperties.AccessibilityView="Raw" BorderThickness="{TemplateBinding BorderThickness}" Grid.Column="1" FontSize="{TemplateBinding FontSize}" IsTabStop="False" Margin="{ThemeResource HelperButtonThemePadding}" MinWidth="34" Grid.Row="1" Style="{StaticResource DeleteButtonStyle}" Visibility="Collapsed" VerticalAlignment="Stretch"/>
  387. </Grid>
  388. </ControlTemplate>
  389. </Setter.Value>
  390. </Setter>
  391. </Style>
  392. </TextBox.Resources>
  393. <TextBox.Style>
  394. <StaticResource ResourceKey="RundeKanter"/>
  395. </TextBox.Style>
  396. </TextBox>
  397.  
  398. <TextBlock Text="Køn"
  399. Foreground="White"
  400. FontSize="18"
  401. Margin="0,10,0,0"/>
  402.  
  403. <ComboBox Background="White">
  404. <ComboBoxItem Content="Mand"/>
  405. <ComboBoxItem Content="Kvinde"/>
  406. </ComboBox>
  407.  
  408. <TextBlock Text="Højde"
  409. Foreground="White"
  410. FontSize="18"
  411. Margin="0,10,0,0"/>
  412. <TextBox Background="White"
  413. x:Name="HøjdeBox"
  414. Margin="0,5,0,0"
  415. Width="215"
  416. HorizontalAlignment="Left"
  417. PlaceholderText="Indtast højde"
  418. Height="35"
  419. MaxLength="3">
  420. <TextBox.Resources>
  421. <Style x:Key="RundeKanter" TargetType="TextBox">
  422. <Setter Property="MinWidth" Value="{ThemeResource TextControlThemeMinWidth}"/>
  423. <Setter Property="MinHeight" Value="{ThemeResource TextControlThemeMinHeight}"/>
  424. <Setter Property="Foreground" Value="{ThemeResource TextControlForeground}"/>
  425. <Setter Property="Background" Value="{ThemeResource TextControlBackground}"/>
  426. <Setter Property="BorderBrush" Value="{ThemeResource TextControlBorderBrush}"/>
  427. <Setter Property="SelectionHighlightColor" Value="{ThemeResource TextControlSelectionHighlightColor}"/>
  428. <Setter Property="BorderThickness" Value="{ThemeResource TextControlBorderThemeThickness}"/>
  429. <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}"/>
  430. <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}"/>
  431. <Setter Property="ScrollViewer.HorizontalScrollMode" Value="Auto"/>
  432. <Setter Property="ScrollViewer.VerticalScrollMode" Value="Auto"/>
  433. <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden"/>
  434. <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden"/>
  435. <Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False"/>
  436. <Setter Property="Padding" Value="{ThemeResource TextControlThemePadding}"/>
  437. <Setter Property="Template">
  438. <Setter.Value>
  439. <ControlTemplate TargetType="TextBox">
  440. <Grid CornerRadius="17" BorderThickness="2" BorderBrush="#66fcf1">
  441. <Grid.Resources>
  442. <Style x:Name="DeleteButtonStyle" TargetType="Button">
  443. <Setter Property="Template">
  444. <Setter.Value>
  445. <ControlTemplate TargetType="Button">
  446. <Grid x:Name="ButtonLayoutGrid" BorderBrush="{ThemeResource TextControlButtonBorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{ThemeResource TextControlButtonBackground}">
  447. <VisualStateManager.VisualStateGroups>
  448. <VisualStateGroup x:Name="CommonStates">
  449. <VisualState x:Name="Normal"/>
  450. <VisualState x:Name="PointerOver">
  451. <Storyboard>
  452. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonLayoutGrid">
  453. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBackgroundPointerOver}"/>
  454. </ObjectAnimationUsingKeyFrames>
  455. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonLayoutGrid">
  456. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBorderBrushPointerOver}"/>
  457. </ObjectAnimationUsingKeyFrames>
  458. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="GlyphElement">
  459. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonForegroundPointerOver}"/>
  460. </ObjectAnimationUsingKeyFrames>
  461. </Storyboard>
  462. </VisualState>
  463. <VisualState x:Name="Pressed">
  464. <Storyboard>
  465. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonLayoutGrid">
  466. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBackgroundPressed}"/>
  467. </ObjectAnimationUsingKeyFrames>
  468. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonLayoutGrid">
  469. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBorderBrushPressed}"/>
  470. </ObjectAnimationUsingKeyFrames>
  471. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="GlyphElement">
  472. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonForegroundPressed}"/>
  473. </ObjectAnimationUsingKeyFrames>
  474. </Storyboard>
  475. </VisualState>
  476. <VisualState x:Name="Disabled">
  477. <Storyboard>
  478. <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ButtonLayoutGrid"/>
  479. </Storyboard>
  480. </VisualState>
  481. </VisualStateGroup>
  482. </VisualStateManager.VisualStateGroups>
  483. <TextBlock x:Name="GlyphElement" AutomationProperties.AccessibilityView="Raw" Foreground="{ThemeResource TextControlButtonForeground}" FontStyle="Normal" FontSize="12" FontFamily="{ThemeResource SymbolThemeFontFamily}" HorizontalAlignment="Center" Text="&#xE10A;" VerticalAlignment="Center"/>
  484. </Grid>
  485. </ControlTemplate>
  486. </Setter.Value>
  487. </Setter>
  488. </Style>
  489. </Grid.Resources>
  490. <Grid.ColumnDefinitions>
  491. <ColumnDefinition Width="*"/>
  492. <ColumnDefinition Width="Auto"/>
  493. </Grid.ColumnDefinitions>
  494. <Grid.RowDefinitions>
  495. <RowDefinition Height="Auto"/>
  496. <RowDefinition Height="*"/>
  497. </Grid.RowDefinitions>
  498. <VisualStateManager.VisualStateGroups>
  499. <VisualStateGroup x:Name="CommonStates">
  500. <VisualState x:Name="Disabled">
  501. <Storyboard>
  502. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="HeaderContentPresenter">
  503. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlHeaderForegroundDisabled}"/>
  504. </ObjectAnimationUsingKeyFrames>
  505. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BorderElement">
  506. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBackgroundDisabled}"/>
  507. </ObjectAnimationUsingKeyFrames>
  508. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BorderElement">
  509. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBorderBrushDisabled}"/>
  510. </ObjectAnimationUsingKeyFrames>
  511. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
  512. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlForegroundDisabled}"/>
  513. </ObjectAnimationUsingKeyFrames>
  514. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PlaceholderTextContentPresenter">
  515. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlPlaceholderForegroundDisabled}"/>
  516. </ObjectAnimationUsingKeyFrames>
  517. </Storyboard>
  518. </VisualState>
  519. <VisualState x:Name="Normal"/>
  520. <VisualState x:Name="PointerOver">
  521. <Storyboard>
  522. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BorderElement">
  523. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBorderBrushPointerOver}"/>
  524. </ObjectAnimationUsingKeyFrames>
  525. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BorderElement">
  526. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBackgroundPointerOver}"/>
  527. </ObjectAnimationUsingKeyFrames>
  528. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PlaceholderTextContentPresenter">
  529. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlPlaceholderForegroundPointerOver}"/>
  530. </ObjectAnimationUsingKeyFrames>
  531. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
  532. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlForegroundPointerOver}"/>
  533. </ObjectAnimationUsingKeyFrames>
  534. </Storyboard>
  535. </VisualState>
  536. <VisualState x:Name="Focused">
  537. <Storyboard>
  538. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PlaceholderTextContentPresenter">
  539. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlPlaceholderForegroundFocused}"/>
  540. </ObjectAnimationUsingKeyFrames>
  541. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BorderElement">
  542. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBackgroundFocused}"/>
  543. </ObjectAnimationUsingKeyFrames>
  544. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BorderElement">
  545. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBorderBrushFocused}"/>
  546. </ObjectAnimationUsingKeyFrames>
  547. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
  548. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlForegroundFocused}"/>
  549. </ObjectAnimationUsingKeyFrames>
  550. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="RequestedTheme" Storyboard.TargetName="ContentElement">
  551. <DiscreteObjectKeyFrame KeyTime="0" Value="Light"/>
  552. </ObjectAnimationUsingKeyFrames>
  553. </Storyboard>
  554. </VisualState>
  555. </VisualStateGroup>
  556. <VisualStateGroup x:Name="ButtonStates">
  557. <VisualState x:Name="ButtonVisible">
  558. <Storyboard>
  559. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DeleteButton">
  560. <DiscreteObjectKeyFrame KeyTime="0">
  561. <DiscreteObjectKeyFrame.Value>
  562. <Visibility>Visible</Visibility>
  563. </DiscreteObjectKeyFrame.Value>
  564. </DiscreteObjectKeyFrame>
  565. </ObjectAnimationUsingKeyFrames>
  566. </Storyboard>
  567. </VisualState>
  568. <VisualState x:Name="ButtonCollapsed"/>
  569. </VisualStateGroup>
  570. </VisualStateManager.VisualStateGroups>
  571. <Border x:Name="BorderElement" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="1" CornerRadius="15"/>
  572. <ContentPresenter x:Name="HeaderContentPresenter" Grid.ColumnSpan="2" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" Foreground="{ThemeResource TextControlHeaderForeground}" FontWeight="Normal" Margin="0,0,0,8" Grid.Row="0" Visibility="Collapsed" x:DeferLoadStrategy="Lazy"/>
  573. <ScrollViewer x:Name="ContentElement" AutomationProperties.AccessibilityView="Raw" HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}" HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" IsTabStop="False" IsHorizontalRailEnabled="{TemplateBinding ScrollViewer.IsHorizontalRailEnabled}" IsVerticalRailEnabled="{TemplateBinding ScrollViewer.IsVerticalRailEnabled}" IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}" Margin="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" Grid.Row="1" VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}" VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}" ZoomMode="Disabled" VerticalAlignment="Center"/>
  574. <ContentControl x:Name="PlaceholderTextContentPresenter" Grid.ColumnSpan="2" Content="{TemplateBinding PlaceholderText}" Foreground="{ThemeResource TextControlPlaceholderForeground}" IsHitTestVisible="False" IsTabStop="False" Margin="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" Grid.Row="1"/>
  575. <Button x:Name="DeleteButton" AutomationProperties.AccessibilityView="Raw" BorderThickness="{TemplateBinding BorderThickness}" Grid.Column="1" FontSize="{TemplateBinding FontSize}" IsTabStop="False" Margin="{ThemeResource HelperButtonThemePadding}" MinWidth="34" Grid.Row="1" Style="{StaticResource DeleteButtonStyle}" Visibility="Collapsed" VerticalAlignment="Stretch"/>
  576. </Grid>
  577. </ControlTemplate>
  578. </Setter.Value>
  579. </Setter>
  580. </Style>
  581. </TextBox.Resources>
  582. <TextBox.Style>
  583. <StaticResource ResourceKey="RundeKanter"/>
  584. </TextBox.Style>
  585. </TextBox>
  586.  
  587. <TextBlock Text="Vægt"
  588. Foreground="White"
  589. FontSize="18"
  590. Margin="0,10,0,0"/>
  591.  
  592. <TextBox Background="White"
  593. Margin="0,5,0,0"
  594. Width="215"
  595. HorizontalAlignment="Left"
  596. PlaceholderText="Indtast vægt"
  597. Height="35"
  598. x:Name="VægtBox"
  599. MaxLength="3">
  600. <TextBox.Resources>
  601. <Style x:Key="RundeKanter" TargetType="TextBox">
  602. <Setter Property="MinWidth" Value="{ThemeResource TextControlThemeMinWidth}"/>
  603. <Setter Property="MinHeight" Value="{ThemeResource TextControlThemeMinHeight}"/>
  604. <Setter Property="Foreground" Value="{ThemeResource TextControlForeground}"/>
  605. <Setter Property="Background" Value="{ThemeResource TextControlBackground}"/>
  606. <Setter Property="BorderBrush" Value="{ThemeResource TextControlBorderBrush}"/>
  607. <Setter Property="SelectionHighlightColor" Value="{ThemeResource TextControlSelectionHighlightColor}"/>
  608. <Setter Property="BorderThickness" Value="{ThemeResource TextControlBorderThemeThickness}"/>
  609. <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}"/>
  610. <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}"/>
  611. <Setter Property="ScrollViewer.HorizontalScrollMode" Value="Auto"/>
  612. <Setter Property="ScrollViewer.VerticalScrollMode" Value="Auto"/>
  613. <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden"/>
  614. <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden"/>
  615. <Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False"/>
  616. <Setter Property="Padding" Value="{ThemeResource TextControlThemePadding}"/>
  617. <Setter Property="Template">
  618. <Setter.Value>
  619. <ControlTemplate TargetType="TextBox">
  620. <Grid CornerRadius="17" BorderThickness="2" BorderBrush="#66fcf1">
  621. <Grid.Resources>
  622. <Style x:Name="DeleteButtonStyle" TargetType="Button">
  623. <Setter Property="Template">
  624. <Setter.Value>
  625. <ControlTemplate TargetType="Button">
  626. <Grid x:Name="ButtonLayoutGrid" BorderBrush="{ThemeResource TextControlButtonBorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{ThemeResource TextControlButtonBackground}">
  627. <VisualStateManager.VisualStateGroups>
  628. <VisualStateGroup x:Name="CommonStates">
  629. <VisualState x:Name="Normal"/>
  630. <VisualState x:Name="PointerOver">
  631. <Storyboard>
  632. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonLayoutGrid">
  633. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBackgroundPointerOver}"/>
  634. </ObjectAnimationUsingKeyFrames>
  635. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonLayoutGrid">
  636. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBorderBrushPointerOver}"/>
  637. </ObjectAnimationUsingKeyFrames>
  638. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="GlyphElement">
  639. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonForegroundPointerOver}"/>
  640. </ObjectAnimationUsingKeyFrames>
  641. </Storyboard>
  642. </VisualState>
  643. <VisualState x:Name="Pressed">
  644. <Storyboard>
  645. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonLayoutGrid">
  646. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBackgroundPressed}"/>
  647. </ObjectAnimationUsingKeyFrames>
  648. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonLayoutGrid">
  649. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBorderBrushPressed}"/>
  650. </ObjectAnimationUsingKeyFrames>
  651. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="GlyphElement">
  652. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonForegroundPressed}"/>
  653. </ObjectAnimationUsingKeyFrames>
  654. </Storyboard>
  655. </VisualState>
  656. <VisualState x:Name="Disabled">
  657. <Storyboard>
  658. <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ButtonLayoutGrid"/>
  659. </Storyboard>
  660. </VisualState>
  661. </VisualStateGroup>
  662. </VisualStateManager.VisualStateGroups>
  663. <TextBlock x:Name="GlyphElement" AutomationProperties.AccessibilityView="Raw" Foreground="{ThemeResource TextControlButtonForeground}" FontStyle="Normal" FontSize="12" FontFamily="{ThemeResource SymbolThemeFontFamily}" HorizontalAlignment="Center" Text="&#xE10A;" VerticalAlignment="Center"/>
  664. </Grid>
  665. </ControlTemplate>
  666. </Setter.Value>
  667. </Setter>
  668. </Style>
  669. </Grid.Resources>
  670. <Grid.ColumnDefinitions>
  671. <ColumnDefinition Width="*"/>
  672. <ColumnDefinition Width="Auto"/>
  673. </Grid.ColumnDefinitions>
  674. <Grid.RowDefinitions>
  675. <RowDefinition Height="Auto"/>
  676. <RowDefinition Height="*"/>
  677. </Grid.RowDefinitions>
  678. <VisualStateManager.VisualStateGroups>
  679. <VisualStateGroup x:Name="CommonStates">
  680. <VisualState x:Name="Disabled">
  681. <Storyboard>
  682. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="HeaderContentPresenter">
  683. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlHeaderForegroundDisabled}"/>
  684. </ObjectAnimationUsingKeyFrames>
  685. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BorderElement">
  686. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBackgroundDisabled}"/>
  687. </ObjectAnimationUsingKeyFrames>
  688. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BorderElement">
  689. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBorderBrushDisabled}"/>
  690. </ObjectAnimationUsingKeyFrames>
  691. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
  692. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlForegroundDisabled}"/>
  693. </ObjectAnimationUsingKeyFrames>
  694. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PlaceholderTextContentPresenter">
  695. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlPlaceholderForegroundDisabled}"/>
  696. </ObjectAnimationUsingKeyFrames>
  697. </Storyboard>
  698. </VisualState>
  699. <VisualState x:Name="Normal"/>
  700. <VisualState x:Name="PointerOver">
  701. <Storyboard>
  702. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BorderElement">
  703. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBorderBrushPointerOver}"/>
  704. </ObjectAnimationUsingKeyFrames>
  705. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BorderElement">
  706. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBackgroundPointerOver}"/>
  707. </ObjectAnimationUsingKeyFrames>
  708. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PlaceholderTextContentPresenter">
  709. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlPlaceholderForegroundPointerOver}"/>
  710. </ObjectAnimationUsingKeyFrames>
  711. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
  712. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlForegroundPointerOver}"/>
  713. </ObjectAnimationUsingKeyFrames>
  714. </Storyboard>
  715. </VisualState>
  716. <VisualState x:Name="Focused">
  717. <Storyboard>
  718. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PlaceholderTextContentPresenter">
  719. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlPlaceholderForegroundFocused}"/>
  720. </ObjectAnimationUsingKeyFrames>
  721. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BorderElement">
  722. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBackgroundFocused}"/>
  723. </ObjectAnimationUsingKeyFrames>
  724. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BorderElement">
  725. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBorderBrushFocused}"/>
  726. </ObjectAnimationUsingKeyFrames>
  727. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
  728. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlForegroundFocused}"/>
  729. </ObjectAnimationUsingKeyFrames>
  730. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="RequestedTheme" Storyboard.TargetName="ContentElement">
  731. <DiscreteObjectKeyFrame KeyTime="0" Value="Light"/>
  732. </ObjectAnimationUsingKeyFrames>
  733. </Storyboard>
  734. </VisualState>
  735. </VisualStateGroup>
  736. <VisualStateGroup x:Name="ButtonStates">
  737. <VisualState x:Name="ButtonVisible">
  738. <Storyboard>
  739. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DeleteButton">
  740. <DiscreteObjectKeyFrame KeyTime="0">
  741. <DiscreteObjectKeyFrame.Value>
  742. <Visibility>Visible</Visibility>
  743. </DiscreteObjectKeyFrame.Value>
  744. </DiscreteObjectKeyFrame>
  745. </ObjectAnimationUsingKeyFrames>
  746. </Storyboard>
  747. </VisualState>
  748. <VisualState x:Name="ButtonCollapsed"/>
  749. </VisualStateGroup>
  750. </VisualStateManager.VisualStateGroups>
  751. <Border x:Name="BorderElement" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="1" CornerRadius="15"/>
  752. <ContentPresenter x:Name="HeaderContentPresenter" Grid.ColumnSpan="2" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" Foreground="{ThemeResource TextControlHeaderForeground}" FontWeight="Normal" Margin="0,0,0,8" Grid.Row="0" Visibility="Collapsed" x:DeferLoadStrategy="Lazy"/>
  753. <ScrollViewer x:Name="ContentElement" AutomationProperties.AccessibilityView="Raw" HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}" HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" IsTabStop="False" IsHorizontalRailEnabled="{TemplateBinding ScrollViewer.IsHorizontalRailEnabled}" IsVerticalRailEnabled="{TemplateBinding ScrollViewer.IsVerticalRailEnabled}" IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}" Margin="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" Grid.Row="1" VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}" VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}" ZoomMode="Disabled" VerticalAlignment="Center"/>
  754. <ContentControl x:Name="PlaceholderTextContentPresenter" Grid.ColumnSpan="2" Content="{TemplateBinding PlaceholderText}" Foreground="{ThemeResource TextControlPlaceholderForeground}" IsHitTestVisible="False" IsTabStop="False" Margin="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" Grid.Row="1"/>
  755. <Button x:Name="DeleteButton" AutomationProperties.AccessibilityView="Raw" BorderThickness="{TemplateBinding BorderThickness}" Grid.Column="1" FontSize="{TemplateBinding FontSize}" IsTabStop="False" Margin="{ThemeResource HelperButtonThemePadding}" MinWidth="34" Grid.Row="1" Style="{StaticResource DeleteButtonStyle}" Visibility="Collapsed" VerticalAlignment="Stretch"/>
  756. </Grid>
  757. </ControlTemplate>
  758. </Setter.Value>
  759. </Setter>
  760. </Style>
  761. </TextBox.Resources>
  762. <TextBox.Style>
  763. <StaticResource ResourceKey="RundeKanter"/>
  764. </TextBox.Style>
  765. </TextBox>
  766.  
  767. <TextBlock Text="Omkreds af mave"
  768. Foreground="White"
  769. FontSize="18"
  770. Margin="0,10,0,0"/>
  771.  
  772. <TextBox Background="White"
  773. Margin="0,5,0,0"
  774. Width="215"
  775. HorizontalAlignment="Left"
  776. PlaceholderText="Indtast omkreds"
  777. Height="35"
  778. >
  779. <TextBox.Resources>
  780. <Style x:Key="RundeKanter" TargetType="TextBox">
  781. <Setter Property="MinWidth" Value="{ThemeResource TextControlThemeMinWidth}"/>
  782. <Setter Property="MinHeight" Value="{ThemeResource TextControlThemeMinHeight}"/>
  783. <Setter Property="Foreground" Value="{ThemeResource TextControlForeground}"/>
  784. <Setter Property="Background" Value="{ThemeResource TextControlBackground}"/>
  785. <Setter Property="BorderBrush" Value="{ThemeResource TextControlBorderBrush}"/>
  786. <Setter Property="SelectionHighlightColor" Value="{ThemeResource TextControlSelectionHighlightColor}"/>
  787. <Setter Property="BorderThickness" Value="{ThemeResource TextControlBorderThemeThickness}"/>
  788. <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}"/>
  789. <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}"/>
  790. <Setter Property="ScrollViewer.HorizontalScrollMode" Value="Auto"/>
  791. <Setter Property="ScrollViewer.VerticalScrollMode" Value="Auto"/>
  792. <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden"/>
  793. <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden"/>
  794. <Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False"/>
  795. <Setter Property="Padding" Value="{ThemeResource TextControlThemePadding}"/>
  796. <Setter Property="Template">
  797. <Setter.Value>
  798. <ControlTemplate TargetType="TextBox">
  799. <Grid CornerRadius="17" BorderThickness="2" BorderBrush="#66fcf1">
  800. <Grid.Resources>
  801. <Style x:Name="DeleteButtonStyle" TargetType="Button">
  802. <Setter Property="Template">
  803. <Setter.Value>
  804. <ControlTemplate TargetType="Button">
  805. <Grid x:Name="ButtonLayoutGrid" BorderBrush="{ThemeResource TextControlButtonBorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{ThemeResource TextControlButtonBackground}">
  806. <VisualStateManager.VisualStateGroups>
  807. <VisualStateGroup x:Name="CommonStates">
  808. <VisualState x:Name="Normal"/>
  809. <VisualState x:Name="PointerOver">
  810. <Storyboard>
  811. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonLayoutGrid">
  812. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBackgroundPointerOver}"/>
  813. </ObjectAnimationUsingKeyFrames>
  814. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonLayoutGrid">
  815. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBorderBrushPointerOver}"/>
  816. </ObjectAnimationUsingKeyFrames>
  817. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="GlyphElement">
  818. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonForegroundPointerOver}"/>
  819. </ObjectAnimationUsingKeyFrames>
  820. </Storyboard>
  821. </VisualState>
  822. <VisualState x:Name="Pressed">
  823. <Storyboard>
  824. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonLayoutGrid">
  825. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBackgroundPressed}"/>
  826. </ObjectAnimationUsingKeyFrames>
  827. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonLayoutGrid">
  828. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBorderBrushPressed}"/>
  829. </ObjectAnimationUsingKeyFrames>
  830. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="GlyphElement">
  831. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonForegroundPressed}"/>
  832. </ObjectAnimationUsingKeyFrames>
  833. </Storyboard>
  834. </VisualState>
  835. <VisualState x:Name="Disabled">
  836. <Storyboard>
  837. <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ButtonLayoutGrid"/>
  838. </Storyboard>
  839. </VisualState>
  840. </VisualStateGroup>
  841. </VisualStateManager.VisualStateGroups>
  842. <TextBlock x:Name="GlyphElement" AutomationProperties.AccessibilityView="Raw" Foreground="{ThemeResource TextControlButtonForeground}" FontStyle="Normal" FontSize="12" FontFamily="{ThemeResource SymbolThemeFontFamily}" HorizontalAlignment="Center" Text="&#xE10A;" VerticalAlignment="Center"/>
  843. </Grid>
  844. </ControlTemplate>
  845. </Setter.Value>
  846. </Setter>
  847. </Style>
  848. </Grid.Resources>
  849. <Grid.ColumnDefinitions>
  850. <ColumnDefinition Width="*"/>
  851. <ColumnDefinition Width="Auto"/>
  852. </Grid.ColumnDefinitions>
  853. <Grid.RowDefinitions>
  854. <RowDefinition Height="Auto"/>
  855. <RowDefinition Height="*"/>
  856. </Grid.RowDefinitions>
  857. <VisualStateManager.VisualStateGroups>
  858. <VisualStateGroup x:Name="CommonStates">
  859. <VisualState x:Name="Disabled">
  860. <Storyboard>
  861. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="HeaderContentPresenter">
  862. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlHeaderForegroundDisabled}"/>
  863. </ObjectAnimationUsingKeyFrames>
  864. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BorderElement">
  865. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBackgroundDisabled}"/>
  866. </ObjectAnimationUsingKeyFrames>
  867. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BorderElement">
  868. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBorderBrushDisabled}"/>
  869. </ObjectAnimationUsingKeyFrames>
  870. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
  871. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlForegroundDisabled}"/>
  872. </ObjectAnimationUsingKeyFrames>
  873. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PlaceholderTextContentPresenter">
  874. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlPlaceholderForegroundDisabled}"/>
  875. </ObjectAnimationUsingKeyFrames>
  876. </Storyboard>
  877. </VisualState>
  878. <VisualState x:Name="Normal"/>
  879. <VisualState x:Name="PointerOver">
  880. <Storyboard>
  881. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BorderElement">
  882. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBorderBrushPointerOver}"/>
  883. </ObjectAnimationUsingKeyFrames>
  884. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BorderElement">
  885. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBackgroundPointerOver}"/>
  886. </ObjectAnimationUsingKeyFrames>
  887. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PlaceholderTextContentPresenter">
  888. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlPlaceholderForegroundPointerOver}"/>
  889. </ObjectAnimationUsingKeyFrames>
  890. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
  891. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlForegroundPointerOver}"/>
  892. </ObjectAnimationUsingKeyFrames>
  893. </Storyboard>
  894. </VisualState>
  895. <VisualState x:Name="Focused">
  896. <Storyboard>
  897. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PlaceholderTextContentPresenter">
  898. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlPlaceholderForegroundFocused}"/>
  899. </ObjectAnimationUsingKeyFrames>
  900. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BorderElement">
  901. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBackgroundFocused}"/>
  902. </ObjectAnimationUsingKeyFrames>
  903. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BorderElement">
  904. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBorderBrushFocused}"/>
  905. </ObjectAnimationUsingKeyFrames>
  906. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
  907. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlForegroundFocused}"/>
  908. </ObjectAnimationUsingKeyFrames>
  909. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="RequestedTheme" Storyboard.TargetName="ContentElement">
  910. <DiscreteObjectKeyFrame KeyTime="0" Value="Light"/>
  911. </ObjectAnimationUsingKeyFrames>
  912. </Storyboard>
  913. </VisualState>
  914. </VisualStateGroup>
  915. <VisualStateGroup x:Name="ButtonStates">
  916. <VisualState x:Name="ButtonVisible">
  917. <Storyboard>
  918. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DeleteButton">
  919. <DiscreteObjectKeyFrame KeyTime="0">
  920. <DiscreteObjectKeyFrame.Value>
  921. <Visibility>Visible</Visibility>
  922. </DiscreteObjectKeyFrame.Value>
  923. </DiscreteObjectKeyFrame>
  924. </ObjectAnimationUsingKeyFrames>
  925. </Storyboard>
  926. </VisualState>
  927. <VisualState x:Name="ButtonCollapsed"/>
  928. </VisualStateGroup>
  929. </VisualStateManager.VisualStateGroups>
  930. <Border x:Name="BorderElement" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="1" CornerRadius="15"/>
  931. <ContentPresenter x:Name="HeaderContentPresenter" Grid.ColumnSpan="2" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" Foreground="{ThemeResource TextControlHeaderForeground}" FontWeight="Normal" Margin="0,0,0,8" Grid.Row="0" Visibility="Collapsed" x:DeferLoadStrategy="Lazy"/>
  932. <ScrollViewer x:Name="ContentElement" AutomationProperties.AccessibilityView="Raw" HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}" HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" IsTabStop="False" IsHorizontalRailEnabled="{TemplateBinding ScrollViewer.IsHorizontalRailEnabled}" IsVerticalRailEnabled="{TemplateBinding ScrollViewer.IsVerticalRailEnabled}" IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}" Margin="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" Grid.Row="1" VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}" VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}" ZoomMode="Disabled" VerticalAlignment="Center"/>
  933. <ContentControl x:Name="PlaceholderTextContentPresenter" Grid.ColumnSpan="2" Content="{TemplateBinding PlaceholderText}" Foreground="{ThemeResource TextControlPlaceholderForeground}" IsHitTestVisible="False" IsTabStop="False" Margin="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" Grid.Row="1"/>
  934. <Button x:Name="DeleteButton" AutomationProperties.AccessibilityView="Raw" BorderThickness="{TemplateBinding BorderThickness}" Grid.Column="1" FontSize="{TemplateBinding FontSize}" IsTabStop="False" Margin="{ThemeResource HelperButtonThemePadding}" MinWidth="34" Grid.Row="1" Style="{StaticResource DeleteButtonStyle}" Visibility="Collapsed" VerticalAlignment="Stretch"/>
  935. </Grid>
  936. </ControlTemplate>
  937. </Setter.Value>
  938. </Setter>
  939. </Style>
  940. </TextBox.Resources>
  941. <TextBox.Style>
  942. <StaticResource ResourceKey="RundeKanter"/>
  943. </TextBox.Style>
  944. </TextBox>
  945.  
  946. <TextBlock Text="Omkreds af arme"
  947. Foreground="White"
  948. FontSize="18"
  949. Margin="0,10,0,0"/>
  950.  
  951. <TextBox Background="White"
  952. Margin="0,5,0,0"
  953. Width="215"
  954. HorizontalAlignment="Left"
  955. PlaceholderText="Indtast omkreds"
  956. Height="35"
  957. >
  958. <TextBox.Resources>
  959. <Style x:Key="RundeKanter" TargetType="TextBox">
  960. <Setter Property="MinWidth" Value="{ThemeResource TextControlThemeMinWidth}"/>
  961. <Setter Property="MinHeight" Value="{ThemeResource TextControlThemeMinHeight}"/>
  962. <Setter Property="Foreground" Value="{ThemeResource TextControlForeground}"/>
  963. <Setter Property="Background" Value="{ThemeResource TextControlBackground}"/>
  964. <Setter Property="BorderBrush" Value="{ThemeResource TextControlBorderBrush}"/>
  965. <Setter Property="SelectionHighlightColor" Value="{ThemeResource TextControlSelectionHighlightColor}"/>
  966. <Setter Property="BorderThickness" Value="{ThemeResource TextControlBorderThemeThickness}"/>
  967. <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}"/>
  968. <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}"/>
  969. <Setter Property="ScrollViewer.HorizontalScrollMode" Value="Auto"/>
  970. <Setter Property="ScrollViewer.VerticalScrollMode" Value="Auto"/>
  971. <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden"/>
  972. <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden"/>
  973. <Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False"/>
  974. <Setter Property="Padding" Value="{ThemeResource TextControlThemePadding}"/>
  975. <Setter Property="Template">
  976. <Setter.Value>
  977. <ControlTemplate TargetType="TextBox">
  978. <Grid CornerRadius="17" BorderThickness="2" BorderBrush="#66fcf1">
  979. <Grid.Resources>
  980. <Style x:Name="DeleteButtonStyle" TargetType="Button">
  981. <Setter Property="Template">
  982. <Setter.Value>
  983. <ControlTemplate TargetType="Button">
  984. <Grid x:Name="ButtonLayoutGrid" BorderBrush="{ThemeResource TextControlButtonBorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{ThemeResource TextControlButtonBackground}">
  985. <VisualStateManager.VisualStateGroups>
  986. <VisualStateGroup x:Name="CommonStates">
  987. <VisualState x:Name="Normal"/>
  988. <VisualState x:Name="PointerOver">
  989. <Storyboard>
  990. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonLayoutGrid">
  991. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBackgroundPointerOver}"/>
  992. </ObjectAnimationUsingKeyFrames>
  993. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonLayoutGrid">
  994. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBorderBrushPointerOver}"/>
  995. </ObjectAnimationUsingKeyFrames>
  996. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="GlyphElement">
  997. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonForegroundPointerOver}"/>
  998. </ObjectAnimationUsingKeyFrames>
  999. </Storyboard>
  1000. </VisualState>
  1001. <VisualState x:Name="Pressed">
  1002. <Storyboard>
  1003. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonLayoutGrid">
  1004. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBackgroundPressed}"/>
  1005. </ObjectAnimationUsingKeyFrames>
  1006. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonLayoutGrid">
  1007. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBorderBrushPressed}"/>
  1008. </ObjectAnimationUsingKeyFrames>
  1009. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="GlyphElement">
  1010. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonForegroundPressed}"/>
  1011. </ObjectAnimationUsingKeyFrames>
  1012. </Storyboard>
  1013. </VisualState>
  1014. <VisualState x:Name="Disabled">
  1015. <Storyboard>
  1016. <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ButtonLayoutGrid"/>
  1017. </Storyboard>
  1018. </VisualState>
  1019. </VisualStateGroup>
  1020. </VisualStateManager.VisualStateGroups>
  1021. <TextBlock x:Name="GlyphElement" AutomationProperties.AccessibilityView="Raw" Foreground="{ThemeResource TextControlButtonForeground}" FontStyle="Normal" FontSize="12" FontFamily="{ThemeResource SymbolThemeFontFamily}" HorizontalAlignment="Center" Text="&#xE10A;" VerticalAlignment="Center"/>
  1022. </Grid>
  1023. </ControlTemplate>
  1024. </Setter.Value>
  1025. </Setter>
  1026. </Style>
  1027. </Grid.Resources>
  1028. <Grid.ColumnDefinitions>
  1029. <ColumnDefinition Width="*"/>
  1030. <ColumnDefinition Width="Auto"/>
  1031. </Grid.ColumnDefinitions>
  1032. <Grid.RowDefinitions>
  1033. <RowDefinition Height="Auto"/>
  1034. <RowDefinition Height="*"/>
  1035. </Grid.RowDefinitions>
  1036. <VisualStateManager.VisualStateGroups>
  1037. <VisualStateGroup x:Name="CommonStates">
  1038. <VisualState x:Name="Disabled">
  1039. <Storyboard>
  1040. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="HeaderContentPresenter">
  1041. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlHeaderForegroundDisabled}"/>
  1042. </ObjectAnimationUsingKeyFrames>
  1043. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BorderElement">
  1044. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBackgroundDisabled}"/>
  1045. </ObjectAnimationUsingKeyFrames>
  1046. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BorderElement">
  1047. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBorderBrushDisabled}"/>
  1048. </ObjectAnimationUsingKeyFrames>
  1049. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
  1050. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlForegroundDisabled}"/>
  1051. </ObjectAnimationUsingKeyFrames>
  1052. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PlaceholderTextContentPresenter">
  1053. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlPlaceholderForegroundDisabled}"/>
  1054. </ObjectAnimationUsingKeyFrames>
  1055. </Storyboard>
  1056. </VisualState>
  1057. <VisualState x:Name="Normal"/>
  1058. <VisualState x:Name="PointerOver">
  1059. <Storyboard>
  1060. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BorderElement">
  1061. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBorderBrushPointerOver}"/>
  1062. </ObjectAnimationUsingKeyFrames>
  1063. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BorderElement">
  1064. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBackgroundPointerOver}"/>
  1065. </ObjectAnimationUsingKeyFrames>
  1066. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PlaceholderTextContentPresenter">
  1067. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlPlaceholderForegroundPointerOver}"/>
  1068. </ObjectAnimationUsingKeyFrames>
  1069. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
  1070. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlForegroundPointerOver}"/>
  1071. </ObjectAnimationUsingKeyFrames>
  1072. </Storyboard>
  1073. </VisualState>
  1074. <VisualState x:Name="Focused">
  1075. <Storyboard>
  1076. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PlaceholderTextContentPresenter">
  1077. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlPlaceholderForegroundFocused}"/>
  1078. </ObjectAnimationUsingKeyFrames>
  1079. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BorderElement">
  1080. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBackgroundFocused}"/>
  1081. </ObjectAnimationUsingKeyFrames>
  1082. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BorderElement">
  1083. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBorderBrushFocused}"/>
  1084. </ObjectAnimationUsingKeyFrames>
  1085. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
  1086. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlForegroundFocused}"/>
  1087. </ObjectAnimationUsingKeyFrames>
  1088. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="RequestedTheme" Storyboard.TargetName="ContentElement">
  1089. <DiscreteObjectKeyFrame KeyTime="0" Value="Light"/>
  1090. </ObjectAnimationUsingKeyFrames>
  1091. </Storyboard>
  1092. </VisualState>
  1093. </VisualStateGroup>
  1094. <VisualStateGroup x:Name="ButtonStates">
  1095. <VisualState x:Name="ButtonVisible">
  1096. <Storyboard>
  1097. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DeleteButton">
  1098. <DiscreteObjectKeyFrame KeyTime="0">
  1099. <DiscreteObjectKeyFrame.Value>
  1100. <Visibility>Visible</Visibility>
  1101. </DiscreteObjectKeyFrame.Value>
  1102. </DiscreteObjectKeyFrame>
  1103. </ObjectAnimationUsingKeyFrames>
  1104. </Storyboard>
  1105. </VisualState>
  1106. <VisualState x:Name="ButtonCollapsed"/>
  1107. </VisualStateGroup>
  1108. </VisualStateManager.VisualStateGroups>
  1109. <Border x:Name="BorderElement" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="1" CornerRadius="15"/>
  1110. <ContentPresenter x:Name="HeaderContentPresenter" Grid.ColumnSpan="2" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" Foreground="{ThemeResource TextControlHeaderForeground}" FontWeight="Normal" Margin="0,0,0,8" Grid.Row="0" Visibility="Collapsed" x:DeferLoadStrategy="Lazy"/>
  1111. <ScrollViewer x:Name="ContentElement" AutomationProperties.AccessibilityView="Raw" HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}" HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" IsTabStop="False" IsHorizontalRailEnabled="{TemplateBinding ScrollViewer.IsHorizontalRailEnabled}" IsVerticalRailEnabled="{TemplateBinding ScrollViewer.IsVerticalRailEnabled}" IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}" Margin="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" Grid.Row="1" VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}" VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}" ZoomMode="Disabled" VerticalAlignment="Center"/>
  1112. <ContentControl x:Name="PlaceholderTextContentPresenter" Grid.ColumnSpan="2" Content="{TemplateBinding PlaceholderText}" Foreground="{ThemeResource TextControlPlaceholderForeground}" IsHitTestVisible="False" IsTabStop="False" Margin="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" Grid.Row="1"/>
  1113. <Button x:Name="DeleteButton" AutomationProperties.AccessibilityView="Raw" BorderThickness="{TemplateBinding BorderThickness}" Grid.Column="1" FontSize="{TemplateBinding FontSize}" IsTabStop="False" Margin="{ThemeResource HelperButtonThemePadding}" MinWidth="34" Grid.Row="1" Style="{StaticResource DeleteButtonStyle}" Visibility="Collapsed" VerticalAlignment="Stretch"/>
  1114. </Grid>
  1115. </ControlTemplate>
  1116. </Setter.Value>
  1117. </Setter>
  1118. </Style>
  1119. </TextBox.Resources>
  1120. <TextBox.Style>
  1121. <StaticResource ResourceKey="RundeKanter"/>
  1122. </TextBox.Style>
  1123. </TextBox>
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129. <Line X1="0"
  1130. X2="250"
  1131. Stroke="#66fcf1"
  1132. Margin="0,25,0,0"/>
  1133.  
  1134. <TextBlock Text="Oprettelse af login"
  1135. Foreground="White"
  1136. FontSize="25"
  1137. HorizontalAlignment="Left"
  1138. Margin="0,10,0,0"/>
  1139.  
  1140. <TextBlock x:Name="Username"
  1141. Text="Brugernavn"
  1142. Foreground="White"
  1143. FontSize="18"
  1144. Margin="0,25,0,0"/>
  1145. <TextBox x:Name="UsernameBox"
  1146. Background="White"
  1147. Margin="0,5,0,0"
  1148. Width="215"
  1149. HorizontalAlignment="Left"
  1150. PlaceholderText="Indtast brugernavn"
  1151. Height="35">
  1152. <TextBox.Resources>
  1153. <Style x:Key="RundeKanter" TargetType="TextBox">
  1154. <Setter Property="MinWidth" Value="{ThemeResource TextControlThemeMinWidth}"/>
  1155. <Setter Property="MinHeight" Value="{ThemeResource TextControlThemeMinHeight}"/>
  1156. <Setter Property="Foreground" Value="{ThemeResource TextControlForeground}"/>
  1157. <Setter Property="Background" Value="{ThemeResource TextControlBackground}"/>
  1158. <Setter Property="BorderBrush" Value="{ThemeResource TextControlBorderBrush}"/>
  1159. <Setter Property="SelectionHighlightColor" Value="{ThemeResource TextControlSelectionHighlightColor}"/>
  1160. <Setter Property="BorderThickness" Value="{ThemeResource TextControlBorderThemeThickness}"/>
  1161. <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}"/>
  1162. <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}"/>
  1163. <Setter Property="ScrollViewer.HorizontalScrollMode" Value="Auto"/>
  1164. <Setter Property="ScrollViewer.VerticalScrollMode" Value="Auto"/>
  1165. <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden"/>
  1166. <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden"/>
  1167. <Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False"/>
  1168. <Setter Property="Padding" Value="{ThemeResource TextControlThemePadding}"/>
  1169. <Setter Property="Template">
  1170. <Setter.Value>
  1171. <ControlTemplate TargetType="TextBox">
  1172. <Grid CornerRadius="17" BorderThickness="2" BorderBrush="#66fcf1">
  1173. <Grid.Resources>
  1174. <Style x:Name="DeleteButtonStyle" TargetType="Button">
  1175. <Setter Property="Template">
  1176. <Setter.Value>
  1177. <ControlTemplate TargetType="Button">
  1178. <Grid x:Name="ButtonLayoutGrid" BorderBrush="{ThemeResource TextControlButtonBorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{ThemeResource TextControlButtonBackground}">
  1179. <VisualStateManager.VisualStateGroups>
  1180. <VisualStateGroup x:Name="CommonStates">
  1181. <VisualState x:Name="Normal"/>
  1182. <VisualState x:Name="PointerOver">
  1183. <Storyboard>
  1184. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonLayoutGrid">
  1185. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBackgroundPointerOver}"/>
  1186. </ObjectAnimationUsingKeyFrames>
  1187. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonLayoutGrid">
  1188. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBorderBrushPointerOver}"/>
  1189. </ObjectAnimationUsingKeyFrames>
  1190. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="GlyphElement">
  1191. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonForegroundPointerOver}"/>
  1192. </ObjectAnimationUsingKeyFrames>
  1193. </Storyboard>
  1194. </VisualState>
  1195. <VisualState x:Name="Pressed">
  1196. <Storyboard>
  1197. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonLayoutGrid">
  1198. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBackgroundPressed}"/>
  1199. </ObjectAnimationUsingKeyFrames>
  1200. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonLayoutGrid">
  1201. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBorderBrushPressed}"/>
  1202. </ObjectAnimationUsingKeyFrames>
  1203. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="GlyphElement">
  1204. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonForegroundPressed}"/>
  1205. </ObjectAnimationUsingKeyFrames>
  1206. </Storyboard>
  1207. </VisualState>
  1208. <VisualState x:Name="Disabled">
  1209. <Storyboard>
  1210. <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ButtonLayoutGrid"/>
  1211. </Storyboard>
  1212. </VisualState>
  1213. </VisualStateGroup>
  1214. </VisualStateManager.VisualStateGroups>
  1215. <TextBlock x:Name="GlyphElement" AutomationProperties.AccessibilityView="Raw" Foreground="{ThemeResource TextControlButtonForeground}" FontStyle="Normal" FontSize="12" FontFamily="{ThemeResource SymbolThemeFontFamily}" HorizontalAlignment="Center" Text="&#xE10A;" VerticalAlignment="Center"/>
  1216. </Grid>
  1217. </ControlTemplate>
  1218. </Setter.Value>
  1219. </Setter>
  1220. </Style>
  1221. </Grid.Resources>
  1222. <Grid.ColumnDefinitions>
  1223. <ColumnDefinition Width="*"/>
  1224. <ColumnDefinition Width="Auto"/>
  1225. </Grid.ColumnDefinitions>
  1226. <Grid.RowDefinitions>
  1227. <RowDefinition Height="Auto"/>
  1228. <RowDefinition Height="*"/>
  1229. </Grid.RowDefinitions>
  1230. <VisualStateManager.VisualStateGroups>
  1231. <VisualStateGroup x:Name="CommonStates">
  1232. <VisualState x:Name="Disabled">
  1233. <Storyboard>
  1234. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="HeaderContentPresenter">
  1235. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlHeaderForegroundDisabled}"/>
  1236. </ObjectAnimationUsingKeyFrames>
  1237. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BorderElement">
  1238. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBackgroundDisabled}"/>
  1239. </ObjectAnimationUsingKeyFrames>
  1240. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BorderElement">
  1241. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBorderBrushDisabled}"/>
  1242. </ObjectAnimationUsingKeyFrames>
  1243. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
  1244. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlForegroundDisabled}"/>
  1245. </ObjectAnimationUsingKeyFrames>
  1246. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PlaceholderTextContentPresenter">
  1247. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlPlaceholderForegroundDisabled}"/>
  1248. </ObjectAnimationUsingKeyFrames>
  1249. </Storyboard>
  1250. </VisualState>
  1251. <VisualState x:Name="Normal"/>
  1252. <VisualState x:Name="PointerOver">
  1253. <Storyboard>
  1254. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BorderElement">
  1255. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBorderBrushPointerOver}"/>
  1256. </ObjectAnimationUsingKeyFrames>
  1257. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BorderElement">
  1258. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBackgroundPointerOver}"/>
  1259. </ObjectAnimationUsingKeyFrames>
  1260. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PlaceholderTextContentPresenter">
  1261. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlPlaceholderForegroundPointerOver}"/>
  1262. </ObjectAnimationUsingKeyFrames>
  1263. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
  1264. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlForegroundPointerOver}"/>
  1265. </ObjectAnimationUsingKeyFrames>
  1266. </Storyboard>
  1267. </VisualState>
  1268. <VisualState x:Name="Focused">
  1269. <Storyboard>
  1270. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PlaceholderTextContentPresenter">
  1271. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlPlaceholderForegroundFocused}"/>
  1272. </ObjectAnimationUsingKeyFrames>
  1273. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BorderElement">
  1274. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBackgroundFocused}"/>
  1275. </ObjectAnimationUsingKeyFrames>
  1276. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BorderElement">
  1277. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBorderBrushFocused}"/>
  1278. </ObjectAnimationUsingKeyFrames>
  1279. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
  1280. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlForegroundFocused}"/>
  1281. </ObjectAnimationUsingKeyFrames>
  1282. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="RequestedTheme" Storyboard.TargetName="ContentElement">
  1283. <DiscreteObjectKeyFrame KeyTime="0" Value="Light"/>
  1284. </ObjectAnimationUsingKeyFrames>
  1285. </Storyboard>
  1286. </VisualState>
  1287. </VisualStateGroup>
  1288. <VisualStateGroup x:Name="ButtonStates">
  1289. <VisualState x:Name="ButtonVisible">
  1290. <Storyboard>
  1291. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DeleteButton">
  1292. <DiscreteObjectKeyFrame KeyTime="0">
  1293. <DiscreteObjectKeyFrame.Value>
  1294. <Visibility>Visible</Visibility>
  1295. </DiscreteObjectKeyFrame.Value>
  1296. </DiscreteObjectKeyFrame>
  1297. </ObjectAnimationUsingKeyFrames>
  1298. </Storyboard>
  1299. </VisualState>
  1300. <VisualState x:Name="ButtonCollapsed"/>
  1301. </VisualStateGroup>
  1302. </VisualStateManager.VisualStateGroups>
  1303. <Border x:Name="BorderElement" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="1" CornerRadius="15"/>
  1304. <ContentPresenter x:Name="HeaderContentPresenter" Grid.ColumnSpan="2" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" Foreground="{ThemeResource TextControlHeaderForeground}" FontWeight="Normal" Margin="0,0,0,8" Grid.Row="0" Visibility="Collapsed" x:DeferLoadStrategy="Lazy"/>
  1305. <ScrollViewer x:Name="ContentElement" AutomationProperties.AccessibilityView="Raw" HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}" HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" IsTabStop="False" IsHorizontalRailEnabled="{TemplateBinding ScrollViewer.IsHorizontalRailEnabled}" IsVerticalRailEnabled="{TemplateBinding ScrollViewer.IsVerticalRailEnabled}" IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}" Margin="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" Grid.Row="1" VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}" VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}" ZoomMode="Disabled" VerticalAlignment="Center" />
  1306. <ContentControl x:Name="PlaceholderTextContentPresenter" Grid.ColumnSpan="2" Content="{TemplateBinding PlaceholderText}" Foreground="{ThemeResource TextControlPlaceholderForeground}" IsHitTestVisible="False" IsTabStop="False" Margin="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" Grid.Row="1"/>
  1307. <Button x:Name="DeleteButton" AutomationProperties.AccessibilityView="Raw" BorderThickness="{TemplateBinding BorderThickness}" Grid.Column="1" FontSize="{TemplateBinding FontSize}" IsTabStop="False" Margin="{ThemeResource HelperButtonThemePadding}" MinWidth="34" Grid.Row="1" Style="{StaticResource DeleteButtonStyle}" Visibility="Collapsed" VerticalAlignment="Stretch"/>
  1308. </Grid>
  1309. </ControlTemplate>
  1310. </Setter.Value>
  1311. </Setter>
  1312. </Style>
  1313. </TextBox.Resources>
  1314. <TextBox.Style>
  1315. <StaticResource ResourceKey="RundeKanter"/>
  1316. </TextBox.Style>
  1317.  
  1318. </TextBox>
  1319.  
  1320. <TextBlock Text="Adgangskode"
  1321. Foreground="White"
  1322. FontSize="18"
  1323. Margin="0,10,0,0"/>
  1324. <TextBox x:Name="PasswordBox"
  1325. Background="White"
  1326. Margin="0,5,0,0"
  1327. Width="215"
  1328. HorizontalAlignment="Left"
  1329. PlaceholderText="Indtast adgangskode"
  1330. Height="35">
  1331. <TextBox.Resources>
  1332. <Style x:Key="RundeKanter" TargetType="TextBox">
  1333. <Setter Property="MinWidth" Value="{ThemeResource TextControlThemeMinWidth}"/>
  1334. <Setter Property="MinHeight" Value="{ThemeResource TextControlThemeMinHeight}"/>
  1335. <Setter Property="Foreground" Value="{ThemeResource TextControlForeground}"/>
  1336. <Setter Property="Background" Value="{ThemeResource TextControlBackground}"/>
  1337. <Setter Property="BorderBrush" Value="{ThemeResource TextControlBorderBrush}"/>
  1338. <Setter Property="SelectionHighlightColor" Value="{ThemeResource TextControlSelectionHighlightColor}"/>
  1339. <Setter Property="BorderThickness" Value="{ThemeResource TextControlBorderThemeThickness}"/>
  1340. <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}"/>
  1341. <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}"/>
  1342. <Setter Property="ScrollViewer.HorizontalScrollMode" Value="Auto"/>
  1343. <Setter Property="ScrollViewer.VerticalScrollMode" Value="Auto"/>
  1344. <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden"/>
  1345. <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden"/>
  1346. <Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False"/>
  1347. <Setter Property="Padding" Value="{ThemeResource TextControlThemePadding}"/>
  1348. <Setter Property="Template">
  1349. <Setter.Value>
  1350. <ControlTemplate TargetType="TextBox">
  1351. <Grid CornerRadius="17" BorderThickness="2" BorderBrush="#66fcf1">
  1352. <Grid.Resources>
  1353. <Style x:Name="DeleteButtonStyle" TargetType="Button">
  1354. <Setter Property="Template">
  1355. <Setter.Value>
  1356. <ControlTemplate TargetType="Button">
  1357. <Grid x:Name="ButtonLayoutGrid" BorderBrush="{ThemeResource TextControlButtonBorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{ThemeResource TextControlButtonBackground}">
  1358. <VisualStateManager.VisualStateGroups>
  1359. <VisualStateGroup x:Name="CommonStates">
  1360. <VisualState x:Name="Normal"/>
  1361. <VisualState x:Name="PointerOver">
  1362. <Storyboard>
  1363. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonLayoutGrid">
  1364. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBackgroundPointerOver}"/>
  1365. </ObjectAnimationUsingKeyFrames>
  1366. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonLayoutGrid">
  1367. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBorderBrushPointerOver}"/>
  1368. </ObjectAnimationUsingKeyFrames>
  1369. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="GlyphElement">
  1370. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonForegroundPointerOver}"/>
  1371. </ObjectAnimationUsingKeyFrames>
  1372. </Storyboard>
  1373. </VisualState>
  1374. <VisualState x:Name="Pressed">
  1375. <Storyboard>
  1376. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonLayoutGrid">
  1377. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBackgroundPressed}"/>
  1378. </ObjectAnimationUsingKeyFrames>
  1379. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonLayoutGrid">
  1380. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonBorderBrushPressed}"/>
  1381. </ObjectAnimationUsingKeyFrames>
  1382. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="GlyphElement">
  1383. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlButtonForegroundPressed}"/>
  1384. </ObjectAnimationUsingKeyFrames>
  1385. </Storyboard>
  1386. </VisualState>
  1387. <VisualState x:Name="Disabled">
  1388. <Storyboard>
  1389. <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ButtonLayoutGrid"/>
  1390. </Storyboard>
  1391. </VisualState>
  1392. </VisualStateGroup>
  1393. </VisualStateManager.VisualStateGroups>
  1394. <TextBlock x:Name="GlyphElement" AutomationProperties.AccessibilityView="Raw" Foreground="{ThemeResource TextControlButtonForeground}" FontStyle="Normal" FontSize="12" FontFamily="{ThemeResource SymbolThemeFontFamily}" HorizontalAlignment="Center" Text="&#xE10A;" VerticalAlignment="Center"/>
  1395. </Grid>
  1396. </ControlTemplate>
  1397. </Setter.Value>
  1398. </Setter>
  1399. </Style>
  1400. </Grid.Resources>
  1401. <Grid.ColumnDefinitions>
  1402. <ColumnDefinition Width="*"/>
  1403. <ColumnDefinition Width="Auto"/>
  1404. </Grid.ColumnDefinitions>
  1405. <Grid.RowDefinitions>
  1406. <RowDefinition Height="Auto"/>
  1407. <RowDefinition Height="*"/>
  1408. </Grid.RowDefinitions>
  1409. <VisualStateManager.VisualStateGroups>
  1410. <VisualStateGroup x:Name="CommonStates">
  1411. <VisualState x:Name="Disabled">
  1412. <Storyboard>
  1413. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="HeaderContentPresenter">
  1414. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlHeaderForegroundDisabled}"/>
  1415. </ObjectAnimationUsingKeyFrames>
  1416. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BorderElement">
  1417. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBackgroundDisabled}"/>
  1418. </ObjectAnimationUsingKeyFrames>
  1419. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BorderElement">
  1420. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBorderBrushDisabled}"/>
  1421. </ObjectAnimationUsingKeyFrames>
  1422. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
  1423. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlForegroundDisabled}"/>
  1424. </ObjectAnimationUsingKeyFrames>
  1425. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PlaceholderTextContentPresenter">
  1426. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlPlaceholderForegroundDisabled}"/>
  1427. </ObjectAnimationUsingKeyFrames>
  1428. </Storyboard>
  1429. </VisualState>
  1430. <VisualState x:Name="Normal"/>
  1431. <VisualState x:Name="PointerOver">
  1432. <Storyboard>
  1433. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BorderElement">
  1434. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBorderBrushPointerOver}"/>
  1435. </ObjectAnimationUsingKeyFrames>
  1436. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BorderElement">
  1437. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBackgroundPointerOver}"/>
  1438. </ObjectAnimationUsingKeyFrames>
  1439. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PlaceholderTextContentPresenter">
  1440. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlPlaceholderForegroundPointerOver}"/>
  1441. </ObjectAnimationUsingKeyFrames>
  1442. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
  1443. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlForegroundPointerOver}"/>
  1444. </ObjectAnimationUsingKeyFrames>
  1445. </Storyboard>
  1446. </VisualState>
  1447. <VisualState x:Name="Focused">
  1448. <Storyboard>
  1449. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PlaceholderTextContentPresenter">
  1450. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlPlaceholderForegroundFocused}"/>
  1451. </ObjectAnimationUsingKeyFrames>
  1452. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BorderElement">
  1453. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBackgroundFocused}"/>
  1454. </ObjectAnimationUsingKeyFrames>
  1455. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BorderElement">
  1456. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBorderBrushFocused}"/>
  1457. </ObjectAnimationUsingKeyFrames>
  1458. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
  1459. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlForegroundFocused}"/>
  1460. </ObjectAnimationUsingKeyFrames>
  1461. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="RequestedTheme" Storyboard.TargetName="ContentElement">
  1462. <DiscreteObjectKeyFrame KeyTime="0" Value="Light"/>
  1463. </ObjectAnimationUsingKeyFrames>
  1464. </Storyboard>
  1465. </VisualState>
  1466. </VisualStateGroup>
  1467. <VisualStateGroup x:Name="ButtonStates">
  1468. <VisualState x:Name="ButtonVisible">
  1469. <Storyboard>
  1470. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DeleteButton">
  1471. <DiscreteObjectKeyFrame KeyTime="0">
  1472. <DiscreteObjectKeyFrame.Value>
  1473. <Visibility>Visible</Visibility>
  1474. </DiscreteObjectKeyFrame.Value>
  1475. </DiscreteObjectKeyFrame>
  1476. </ObjectAnimationUsingKeyFrames>
  1477. </Storyboard>
  1478. </VisualState>
  1479. <VisualState x:Name="ButtonCollapsed"/>
  1480. </VisualStateGroup>
  1481. </VisualStateManager.VisualStateGroups>
  1482. <Border x:Name="BorderElement" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="1" CornerRadius="15"/>
  1483. <ContentPresenter x:Name="HeaderContentPresenter" Grid.ColumnSpan="2" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" Foreground="{ThemeResource TextControlHeaderForeground}" FontWeight="Normal" Margin="0,0,0,8" Grid.Row="0" Visibility="Collapsed" x:DeferLoadStrategy="Lazy"/>
  1484. <ScrollViewer x:Name="ContentElement" AutomationProperties.AccessibilityView="Raw" HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}" HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" IsTabStop="False" IsHorizontalRailEnabled="{TemplateBinding ScrollViewer.IsHorizontalRailEnabled}" IsVerticalRailEnabled="{TemplateBinding ScrollViewer.IsVerticalRailEnabled}" IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}" Margin="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" Grid.Row="1" VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}" VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}" ZoomMode="Disabled" VerticalAlignment="Center" />
  1485. <ContentControl x:Name="PlaceholderTextContentPresenter" Grid.ColumnSpan="2" Content="{TemplateBinding PlaceholderText}" Foreground="{ThemeResource TextControlPlaceholderForeground}" IsHitTestVisible="False" IsTabStop="False" Margin="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" Grid.Row="1"/>
  1486. <Button x:Name="DeleteButton" AutomationProperties.AccessibilityView="Raw" BorderThickness="{TemplateBinding BorderThickness}" Grid.Column="1" FontSize="{TemplateBinding FontSize}" IsTabStop="False" Margin="{ThemeResource HelperButtonThemePadding}" MinWidth="34" Grid.Row="1" Style="{StaticResource DeleteButtonStyle}" Visibility="Collapsed" VerticalAlignment="Stretch"/>
  1487. </Grid>
  1488. </ControlTemplate>
  1489. </Setter.Value>
  1490. </Setter>
  1491. </Style>
  1492. </TextBox.Resources>
  1493. <TextBox.Style>
  1494. <StaticResource ResourceKey="RundeKanter"/>
  1495. </TextBox.Style>
  1496. </TextBox>
  1497. </StackPanel>
  1498. </StackPanel>
  1499.  
  1500.  
  1501.  
  1502. </Grid>
  1503. </ScrollViewer>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement