summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.UAP/Resources.xaml
blob: 732283e89339669800e53b81fecab37db10cc99a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:uwp="using:Xamarin.Forms.Platform.UWP"
	x:Class="Xamarin.Forms.Platform.UWP.Resources">

	<ResourceDictionary.MergedDictionaries>
		<ResourceDictionary Source="PageControlStyle.xaml" />
		<ResourceDictionary Source="FormsTextBoxStyle.xaml" />
		<ResourceDictionary Source="AutoSuggestStyle.xaml" />
		<ResourceDictionary Source="MasterDetailControlStyle.xaml" />
		<ResourceDictionary Source="TabbedPageStyle.xaml" />
	</ResourceDictionary.MergedDictionaries>
	
	<uwp:CaseConverter x:Key="LowerConverter" ConvertToUpper="False" />
	<uwp:CaseConverter x:Key="UpperConverter" ConvertToUpper="True" />
	<uwp:HeightConverter x:Key="HeightConverter" />
	<uwp:CollapseWhenEmptyConverter x:Key="CollapseWhenEmpty" />
	<uwp:BoolToVisibilityConverter x:Key="BoolVisibilityConverter" />
	<uwp:BoolToVisibilityConverter x:Key="InvertedBoolVisibilityConverter" FalseIsVisible="True" />
	<uwp:PageToRenderedElementConverter x:Key="PageToRenderer" />
	<uwp:ImageConverter x:Key="ImageConverter" />
	<uwp:ViewToRendererConverter x:Key="ViewToRenderer" />
	<uwp:ColorConverter x:Key="ColorConverter" />
    <uwp:HorizontalTextAlignmentConverter x:Key="HorizontalTextAlignmentConverter" />
	<uwp:TextAlignmentToHorizontalAlignmentConverter x:Key="AlignmentConverter" />
	<uwp:KeyboardConverter x:Key="KeyboardConverter" />
	<uwp:MasterBackgroundConverter x:Key="MasterBackgroundConverter" />
	<x:Double x:Key="TitleBarHeight">48</x:Double>

	<DataTemplate x:Key="PushPinTemplate">
        <Path Data="M 50.7361,983.661 C 44.1895,983.661 38.8369,988.97 38.8369,995.517 39.8649,1003.3 45.246,1008.1 49.8547,1014.12 50.2838,1014.66 51.2336,1014.66 51.6619,1014.12 52.1384,1013.48 52.7575,1012.73 53.4248,1011.91 55.0322,1012.07 56.4727,1012.32 57.5676,1012.71 58.407,1013 59.06,1013.33 59.4192,1013.63 59.7784,1013.93 59.7716,1014.11 59.7716,1014.16 59.7716,1014.21 59.7716,1014.39 59.4192,1014.69 59.06,1014.99 58.407,1015.32 57.5676,1015.61 55.8888,1016.2 53.4519,1016.63 50.7361,1016.63 48.0204,1016.63 45.5399,1016.2 43.8611,1015.61 43.0218,1015.32 42.3695,1014.99 42.0103,1014.69 41.6504,1014.39 41.6135,1014.21 41.6135,1014.16 41.6135,1014.11 41.6511,1013.93 42.0103,1013.63 42.3695,1013.33 43.0218,1013 43.8611,1012.71 44.3158,1012.55 44.8455,1012.35 45.4039,1012.22 L 43.8611,1010.33 C 43.6124,1010.4 43.3441,1010.46 43.1119,1010.55 42.1005,1010.9 41.2318,1011.31 40.5555,1011.87 39.8799,1012.43 39.3216,1013.22 39.3216,1014.16 39.3216,1015.1 39.8799,1015.85 40.5555,1016.41 41.2318,1016.97 42.1005,1017.42 43.1119,1017.77 45.1356,1018.48 47.8025,1018.92 50.7362,1018.92 54.437,1018.81 57.9892,1018.36 60.8733,1016.41 62.5084,1014.79 62.0756,1013.4 60.8733,1011.87 60.1969,1011.31 59.3726,1010.9 58.3612,1010.55 57.4331,1010.22 56.3503,1009.94 55.1878,1009.75 56.1992,1008.51 57.2362,1007.18 58.2289,1005.79 60.5599,1002.51 62.5918,998.968 62.5918,995.517 62.5918,988.97 57.2836,983.661 50.7362,983.661 Z M 50.7361,989.655 C 47.571,989.655 44.9627,992.219 44.9627,995.385 44.9627,998.55 47.571,1001.16 50.7361,1001.16 53.902,1001.16 56.4659,998.55 56.4659,995.385 56.4659,992.219 53.902,989.655 50.7361,989.655 Z M 50.7361,991.947 C 52.6591,991.947 54.174,993.462 54.174,995.385 54.174,997.307 52.6591,998.866 50.7361,998.866 48.8139,998.866 47.2546,997.307 47.2546,995.385 47.2546,993.462 48.8139,991.947 50.7361,991.947 Z" Fill="#000000"  Height="74" Stretch="Fill" Margin="0" Width="50"/>
    </DataTemplate>

    <Style x:Key="PageTitleStyle" TargetType="TextBlock">
		<Setter Property="FontWeight" Value="Bold" />
	</Style>

	<Style x:Key="RootContainerStyle" TargetType="Canvas">
		<Setter Property="Background" Value="{ThemeResource ApplicationPageBackgroundThemeBrush}" />
	</Style>

    <Style x:Key="ActionSheetStyle" TargetType="ContentDialog" />
    <Style x:Key="ActionSheetList" TargetType="ListView">
        <Setter Property="SelectionMode" Value="None" />
        <Setter Property="ItemContainerStyle">
            <Setter.Value>
                <Style TargetType="ListViewItem">
                    <Setter Property="Margin" Value="0" />
                    <Setter Property="HorizontalContentAlignment" Value="Stretch" />
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock Text="{Binding}" HorizontalAlignment="Stretch" VerticalAlignment="Center" Style="{ThemeResource SubtitleTextBlockStyle}" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <ControlTemplate TargetType="ContentDialog" x:Key="MyContentDialogControlTemplate">
		<Border x:Name="Container">
			<Grid x:Name="LayoutRoot">
				<Grid.RowDefinitions>
					<RowDefinition Height="Auto" />
				</Grid.RowDefinitions>
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="Auto" />
				</Grid.ColumnDefinitions>
				<Border x:Name="BackgroundElement"
                                    Background="{TemplateBinding Background}"
                                    FlowDirection="{TemplateBinding FlowDirection}"
                                    BorderThickness="{ThemeResource ContentDialogBorderWidth}"
                                    BorderBrush="{ThemeResource SystemControlForegroundAccentBrush}"
                                    MaxWidth="{TemplateBinding MaxWidth}"
                                    MaxHeight="{TemplateBinding MaxHeight}"
                                    MinWidth="{TemplateBinding MinWidth}"
                                    MinHeight="{TemplateBinding MinHeight}" >
					<Grid x:Name="DialogSpace" VerticalAlignment="Stretch">
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto" />
							<RowDefinition Height="*" />
							<RowDefinition Height="Auto" />
						</Grid.RowDefinitions>
						<ScrollViewer x:Name="ContentScrollViewer"
                                            HorizontalScrollBarVisibility="Disabled"
                                            VerticalScrollBarVisibility="Disabled"
                                            ZoomMode="Disabled"
                                            Margin="{ThemeResource ContentDialogContentScrollViewerMargin}"
                                            IsTabStop="False">
							<Grid>
								<Grid.RowDefinitions>
									<RowDefinition Height="Auto" />
									<!--CHANGED HERE. Used to be Auto as well-->
									<RowDefinition />
								</Grid.RowDefinitions>
								<ContentControl x:Name="Title"
                                                Margin="{ThemeResource ContentDialogTitleMargin}"
                                                Content="{TemplateBinding Title}"
                                                ContentTemplate="{TemplateBinding TitleTemplate}"
                                                FontSize="20"
                                                FontFamily="Segoe UI"
                                                FontWeight="Normal"
                                                Foreground="{TemplateBinding Foreground}"
                                                HorizontalAlignment="Left"
                                                VerticalAlignment="Top"
                                                IsTabStop="False"
                                                MaxHeight="{ThemeResource ContentDialogTitleMaxHeight}" >
									<ContentControl.Template>
										<ControlTemplate TargetType="ContentControl">
											<ContentPresenter 
                                                            Content="{TemplateBinding Content}"
                                                            MaxLines="2"
                                                            TextWrapping="Wrap"
                                                            ContentTemplate="{TemplateBinding ContentTemplate}"
                                                            Margin="{TemplateBinding Padding}"
                                                            ContentTransitions="{TemplateBinding ContentTransitions}"
                                                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
										</ControlTemplate>
									</ContentControl.Template>
								</ContentControl>
								<ContentPresenter x:Name="Content"
                                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                                Content="{TemplateBinding Content}"
                                                FontSize="{ThemeResource ControlContentThemeFontSize}"
                                                FontFamily="{ThemeResource ContentControlThemeFontFamily}"
                                                Margin="{ThemeResource ContentDialogContentMargin}"
                                                Foreground="{TemplateBinding Foreground}"
                                                Grid.Row="1"
                                                TextWrapping="Wrap" />
							</Grid>
						</ScrollViewer>
						<Grid x:Name="CommandSpace" Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Bottom">
							<Grid.ColumnDefinitions>
								<ColumnDefinition/>
								<ColumnDefinition/>
							</Grid.ColumnDefinitions>
							<Border x:Name="Button1Host"
                                            Margin="{ThemeResource ContentDialogButton1HostMargin}"
                                            MinWidth="{ThemeResource ContentDialogButtonMinWidth}"
                                            MaxWidth="{ThemeResource ContentDialogButtonMaxWidth}"
                                            Height="{ThemeResource ContentDialogButtonHeight}"
                                            HorizontalAlignment="Stretch" />
							<Border x:Name="Button2Host"
                                            Margin="{ThemeResource ContentDialogButton2HostMargin}"
                                            MinWidth="{ThemeResource ContentDialogButtonMinWidth}"
                                            MaxWidth="{ThemeResource ContentDialogButtonMaxWidth}"
                                            Height="{ThemeResource ContentDialogButtonHeight}"
                                            Grid.Column="1"
                                            HorizontalAlignment="Stretch" />
						</Grid>
					</Grid>
				</Border>
			</Grid>
		</Border>
	</ControlTemplate>

	<Style x:Key="JumpListGrid" TargetType="GridView">
		<Setter Property="ItemTemplate">
			<Setter.Value>
				<DataTemplate>
					<Border Background="{ThemeResource SystemColorControlAccentBrush}" Padding="5" Margin="3" MinHeight="80" MinWidth="80">
						<TextBlock Text="{Binding}" Style="{ThemeResource SubheaderTextBlockStyle}" VerticalAlignment="Bottom" />
					</Border>
				</DataTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="Button" x:Key="PaneButton">
		<Setter Property="FontFamily" Value="{ThemeResource SymbolThemeFontFamily}" />
		<Setter Property="FontSize" Value="20" />
		<Setter Property="Height" Value="48" />
		<Setter Property="Width" Value="48" />
		<Setter Property="Content" Value="" />
	</Style>

    <DataTemplate x:Key="CellTemplate">
		<uwp:CellControl HorizontalContentAlignment="Stretch" Height="{Binding Cell.RenderHeight,RelativeSource={RelativeSource Mode=Self},Converter={StaticResource HeightConverter}}" />
	</DataTemplate>

	<DataTemplate x:Key="TableRoot">
		<TextBlock Margin="0,20,0,0" Text="{Binding Title,Converter={StaticResource LowerConverter}}" Style="{ThemeResource TitleTextBlockStyle}" Visibility="{Binding Text,RelativeSource={RelativeSource Mode=Self},Converter={StaticResource CollapseWhenEmpty}}" />
	</DataTemplate>

	<DataTemplate x:Key="TableSection">
		<TextBlock Margin="0,20,0,0" Text="{Binding Title,Converter={StaticResource LowerConverter}}" Style="{ThemeResource SubtitleTextBlockStyle}" Visibility="{Binding Text,RelativeSource={RelativeSource Mode=Self},Converter={StaticResource CollapseWhenEmpty}}" />
	</DataTemplate>
	
	<uwp:ListViewGroupStyleSelector x:Key="ListViewGroupSelector" />

	<DataTemplate x:Key="ListViewGroupTemplate">
		<TextBlock Text="{Binding}" Style="{ThemeResource BaseTextBlockStyle}" />
	</DataTemplate>
	
	<GroupStyle x:Key="ListViewGroup" HidesIfEmpty="False">
		<GroupStyle.HeaderContainerStyle>
			<Style TargetType="ListViewHeaderItem">
				<Setter Property="Template">
					<Setter.Value>
						<ControlTemplate>
							<uwp:ListGroupHeaderPresenter />
						</ControlTemplate>
					</Setter.Value>
				</Setter>
			</Style>
		</GroupStyle.HeaderContainerStyle>
		<GroupStyle.HeaderTemplate>
			<DataTemplate>
                <uwp:CellControl IsGroupHeader="true" HorizontalContentAlignment="Stretch" />
			</DataTemplate>
		</GroupStyle.HeaderTemplate>
	</GroupStyle>
	
	<DataTemplate x:Key="ViewCell">
        <ContentControl DataContext="{Binding Cell}">
            <ContentPresenter Height="{Binding RenderHeight, Converter={StaticResource HeightConverter}}" Content="{Binding View, Converter={StaticResource ViewToRenderer}}" />
        </ContentControl>
    </DataTemplate>

	<DataTemplate x:Key="ContainedPageTemplate">
		<ContentPresenter Content="{Binding Converter={StaticResource PageToRenderer}}">
			<ContentPresenter.Resources>
				<Style TargetType="uwp:PageControl">
					<Setter Property="Background" Value="Transparent" />
				</Style>
			</ContentPresenter.Resources>
		</ContentPresenter>
	</DataTemplate>

	<DataTemplate x:Key="View">
		<ContentPresenter Content="{Binding Converter={StaticResource ViewToRenderer}}" />
	</DataTemplate>

	<SolidColorBrush x:Key="TabButtonPointerOverBackgroundBrush" Color="#44888888" />
	<SolidColorBrush x:Key="TabButtonBackgroundBrush" Color="#29888888" />

	<Style x:Key="TitleToolbar" TargetType="uwp:FormsCommandBar">
		<Setter Property="ContentTemplate">
			<Setter.Value>
				<DataTemplate>
					<Grid Background="{Binding ToolbarBackground}">
						<TextBlock Text="{Binding}" Margin="10,0,0,0" VerticalAlignment="Center" Style="{ThemeResource TitleTextBlockStyle}" Foreground="{Binding ToolbarForeground}" />
					</Grid>
				</DataTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	

	<Style x:Key="FormsListViewItem" TargetType="ListViewItem">
		<Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
		<Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="Foreground" Value="{ThemeResource SystemControlForegroundBaseHighBrush}" />
		<Setter Property="TabNavigation" Value="Local" />
		<Setter Property="IsHoldingEnabled" Value="True" />
		<Setter Property="Padding" Value="0" />
		<Setter Property="HorizontalContentAlignment" Value="Stretch" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="MinWidth" Value="{ThemeResource ListViewItemMinWidth}" />
		<Setter Property="MinHeight" Value="0" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="ListViewItem">
					<ListViewItemPresenter
						CheckBrush="{ThemeResource SystemControlForegroundBaseMediumHighBrush}"
						ContentMargin="{TemplateBinding Padding}"
						CheckMode="Inline"
						ContentTransitions="{TemplateBinding ContentTransitions}"
						CheckBoxBrush="{ThemeResource SystemControlForegroundBaseMediumHighBrush}"
						DragForeground="{ThemeResource ListViewItemDragForegroundThemeBrush}"
						DragOpacity="{ThemeResource ListViewItemDragThemeOpacity}"
						DragBackground="{ThemeResource ListViewItemDragBackgroundThemeBrush}"
						DisabledOpacity="{ThemeResource ListViewItemDisabledThemeOpacity}"
						FocusBorderBrush="{ThemeResource SystemControlForegroundAltHighBrush}"
						FocusSecondaryBorderBrush="{ThemeResource SystemControlForegroundBaseHighBrush}"
						HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
						PointerOverForeground="{ThemeResource SystemControlHighlightAltBaseHighBrush}"
						PressedBackground="{ThemeResource SystemControlHighlightListMediumBrush}"
						PlaceholderBackground="{ThemeResource ListViewItemPlaceholderBackgroundThemeBrush}"
						PointerOverBackground="{ThemeResource SystemControlHighlightListLowBrush}"
						ReorderHintOffset="{ThemeResource ListViewItemReorderHintThemeOffset}"
						SelectedPressedBackground="{ThemeResource SystemControlHighlightListAccentHighBrush}"
						SelectionCheckMarkVisualEnabled="True"
						SelectedForeground="{ThemeResource SystemControlHighlightAltBaseHighBrush}"
						SelectedPointerOverBackground="{ThemeResource SystemControlHighlightListAccentMediumBrush}"
						SelectedBackground="{ThemeResource SystemControlHighlightListAccentLowBrush}"
						VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" />
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
    <Style x:Key="FormsCarouselViewItem" TargetType="FlipViewItem">
        <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
        <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
        <Setter Property="Background" Value="Transparent" />
        <Setter Property="Foreground" Value="{ThemeResource SystemControlForegroundBaseHighBrush}" />
        <Setter Property="TabNavigation" Value="Local" />
        <Setter Property="IsHoldingEnabled" Value="True" />
        <Setter Property="Padding" Value="0" />
        <Setter Property="HorizontalContentAlignment" Value="Stretch" />
        <Setter Property="VerticalContentAlignment" Value="Center" />
        <Setter Property="MinWidth" Value="{ThemeResource ListViewItemMinWidth}" />
        <Setter Property="MinHeight" Value="0" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ListViewItem">
                    <ListViewItemPresenter
						CheckBrush="{ThemeResource SystemControlForegroundBaseMediumHighBrush}"
						ContentMargin="{TemplateBinding Padding}"
						CheckMode="Inline"
						ContentTransitions="{TemplateBinding ContentTransitions}"
						CheckBoxBrush="{ThemeResource SystemControlForegroundBaseMediumHighBrush}"
						DragForeground="{ThemeResource ListViewItemDragForegroundThemeBrush}"
						DragOpacity="{ThemeResource ListViewItemDragThemeOpacity}"
						DragBackground="{ThemeResource ListViewItemDragBackgroundThemeBrush}"
						DisabledOpacity="{ThemeResource ListViewItemDisabledThemeOpacity}"
						FocusBorderBrush="{ThemeResource SystemControlForegroundAltHighBrush}"
						FocusSecondaryBorderBrush="{ThemeResource SystemControlForegroundBaseHighBrush}"
						HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
						PointerOverForeground="{ThemeResource SystemControlHighlightAltBaseHighBrush}"
						PressedBackground="{ThemeResource SystemControlHighlightListMediumBrush}"
						PlaceholderBackground="{ThemeResource ListViewItemPlaceholderBackgroundThemeBrush}"
						PointerOverBackground="{ThemeResource SystemControlHighlightListLowBrush}"
						ReorderHintOffset="{ThemeResource ListViewItemReorderHintThemeOffset}"
						SelectedPressedBackground="{ThemeResource SystemControlHighlightListAccentHighBrush}"
						SelectionCheckMarkVisualEnabled="True"
						SelectedForeground="{ThemeResource SystemControlHighlightAltBaseHighBrush}"
						SelectedPointerOverBackground="{ThemeResource SystemControlHighlightListAccentMediumBrush}"
						SelectedBackground="{ThemeResource SystemControlHighlightListAccentLowBrush}"
						VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <DataTemplate x:Key="TextCell">
		<StackPanel>
			<TextBlock
				Text="{Binding Text}"
				Style="{ThemeResource BaseTextBlockStyle}"
				Visibility="{Binding Text,RelativeSource={RelativeSource Self}, Converter={StaticResource CollapseWhenEmpty}}"
				Foreground="{Binding TextColor, Converter={StaticResource ColorConverter}, ConverterParameter=DefaultTextForegroundThemeBrush}" />

			<TextBlock
				Text="{Binding Detail}"
				Style="{ThemeResource BodyTextBlockStyle}"
				Visibility="{Binding Text,RelativeSource={RelativeSource Self}, Converter={StaticResource CollapseWhenEmpty}}"
				Foreground="{Binding DetailColor, Converter={StaticResource ColorConverter}, ConverterParameter=DefaultTextForegroundThemeBrush}"
				x:Name="detail"/>
		</StackPanel>
	</DataTemplate>
	
	<DataTemplate x:Key="ListViewHeaderTextCell">
		<StackPanel>
			<TextBlock
				Text="{Binding Text}"
				Style="{ThemeResource SubheaderTextBlockStyle}"
				Visibility="{Binding Text,RelativeSource={RelativeSource Self}, Converter={StaticResource CollapseWhenEmpty}}"
				Foreground="{Binding TextColor, Converter={StaticResource ColorConverter}, ConverterParameter=DefaultTextForegroundThemeBrush}" />

			<TextBlock
				Text="{Binding Detail}"
				Style="{ThemeResource BodyTextBlockStyle}"
				Visibility="{Binding Text,RelativeSource={RelativeSource Self}, Converter={StaticResource CollapseWhenEmpty}}"
				Foreground="{Binding DetailColor, Converter={StaticResource ColorConverter}, ConverterParameter=DefaultTextForegroundThemeBrush}"
				x:Name="detail" />
		</StackPanel>
	</DataTemplate>

	<DataTemplate x:Key="ImageCell">
		<Grid>
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="Auto" />
				<ColumnDefinition />
			</Grid.ColumnDefinitions>

			<Grid.RowDefinitions>
				<RowDefinition Height="Auto" />
				<RowDefinition Height="Auto" />
			</Grid.RowDefinitions>

			<Image Grid.Column="0" Grid.RowSpan="2"
				DataContext="{Binding ImageSource, Converter={StaticResource ImageConverter}}"
				Source="{Binding Value}"
				VerticalAlignment="Center" />

			<TextBlock Grid.Column="1" Grid.Row="0"
				Text="{Binding Text}"
				Style="{ThemeResource BaseTextBlockStyle}"
				Visibility="{Binding Text,RelativeSource={RelativeSource Self}, Converter={StaticResource CollapseWhenEmpty}}"
				Foreground="{Binding TextColor, Converter={StaticResource ColorConverter}, ConverterParameter=DefaultTextForegroundThemeBrush}" />

			<TextBlock Grid.Column="1" Grid.Row="1"
				Text="{Binding Detail}"
				Style="{ThemeResource BodyTextBlockStyle}"
				Visibility="{Binding Text,RelativeSource={RelativeSource Self}, Converter={StaticResource CollapseWhenEmpty}}"
				Foreground="{Binding DetailColor, Converter={StaticResource ColorConverter}, ConverterParameter=DefaultTextForegroundThemeBrush}"
				x:Name="detail" />
		</Grid>
	</DataTemplate>
	
	<DataTemplate x:Key="SwitchCell">
		<Grid HorizontalAlignment="Stretch">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="*" />
				<ColumnDefinition Width="Auto" />
			</Grid.ColumnDefinitions>

			<TextBlock Grid.Column="0" Text="{Binding Text}" VerticalAlignment="Center" Style="{ThemeResource BaseTextBlockStyle}" />

			<ToggleSwitch Grid.Column="1" IsOn="{Binding On, Mode=TwoWay}" OnContent="" OffContent="" VerticalAlignment="Center" />
		</Grid>
	</DataTemplate>

	<DataTemplate x:Key="EntryCell">
        <uwp:EntryCellTextBox IsEnabled="{Binding IsEnabled}" Header="{Binding}" Text="{Binding Text, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" TextAlignment="{Binding HorizontalTextAlignment,Converter={StaticResource HorizontalTextAlignmentConverter}}" PlaceholderText="{Binding Placeholder}"  InputScope="{Binding Keyboard,Converter={StaticResource KeyboardConverter}}" HorizontalAlignment="Stretch">
			<uwp:EntryCellTextBox.HeaderTemplate>
				<DataTemplate>
					<TextBlock Text="{Binding Label}" Style="{ThemeResource BaseTextBlockStyle}" Foreground="{Binding LabelColor, Converter={StaticResource ColorConverter}, ConverterParameter=SystemControlBackgroundChromeMediumLowBrush}" />
				</DataTemplate>
			</uwp:EntryCellTextBox.HeaderTemplate>
		</uwp:EntryCellTextBox>
	</DataTemplate>

	<Style TargetType="uwp:StepperControl">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate>
					<Grid HorizontalAlignment="Left">
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="*" />
							<ColumnDefinition Width="*" />
						</Grid.ColumnDefinitions>
					
						<Button Name="Minus" Grid.Column="0" Content="-" />
						<Button Name="Plus" Grid.Column="1" Content="+" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="TextBox">
		<Setter Property="Margin" Value="0" />
	</Style>

	<Style TargetType="ToggleSwitch">
		<Setter Property="MinWidth" Value="0"/>
	</Style>
	
	<SolidColorBrush x:Key="FormsCancelForegroundBrush" />
    <SolidColorBrush x:Key="FormsCancelBackgroundBrush" />
    
</ResourceDictionary>