-
Notifications
You must be signed in to change notification settings - Fork 496
Expand file tree
/
Copy pathApp.xaml
More file actions
49 lines (44 loc) · 2.71 KB
/
Copy pathApp.xaml
File metadata and controls
49 lines (44 loc) · 2.71 KB
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
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:popups="clr-namespace:CommunityToolkit.Maui.Sample.Views.Popups"
x:Class="CommunityToolkit.Maui.Sample.App">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Resources/Styles/Colors.xaml" />
<ResourceDictionary Source="Resources/Styles/Styles.xaml" />
</ResourceDictionary.MergedDictionaries>
<Style TargetType="{x:Type popups:ImplicitStylePopup}">
<Setter Property="WidthRequest" Value="100" />
<Setter Property="HeightRequest" Value="100" />
<Setter Property="BackgroundColor" Value="Red" />
</Style>
<Style x:Key="ExplicitPopupStyle" TargetType="{x:Type popups:ExplicitStylePopup}">
<Setter Property="WidthRequest" Value="200" />
<Setter Property="HeightRequest" Value="100" />
<Setter Property="BackgroundColor" Value="Yellow" />
</Style>
<Style x:Key="BasePopupStyle" TargetType="{x:Type popups:StyleInheritancePopup}">
<Setter Property="WidthRequest" Value="200" />
<Setter Property="HeightRequest" Value="200" />
</Style>
<Style x:Key="InheritancePopupStyle" TargetType="{x:Type popups:StyleInheritancePopup}" BasedOn="{StaticResource BasePopupStyle}">
<Setter Property="BackgroundColor" Value="SkyBlue" />
<Setter Property="Margin" Value="1" />
<Setter Property="Padding" Value="1" />
<Setter Property="HorizontalOptions" Value="Center" />
<Setter Property="VerticalOptions" Value="Center" />
</Style>
<Style x:Key="DynamicBasePopupStyle" TargetType="{x:Type popups:DynamicStyleInheritancePopup}">
<Setter Property="WidthRequest" Value="150" />
<Setter Property="HeightRequest" Value="150" />
</Style>
<Style x:Key="DynamicInheritancePopupStyle1" TargetType="{x:Type popups:DynamicStyleInheritancePopup}" BasedOn="{StaticResource DynamicBasePopupStyle}">
<Setter Property="BackgroundColor" Value="Purple" />
</Style>
<Style x:Key="DynamicInheritancePopupStyle2" TargetType="{x:Type popups:DynamicStyleInheritancePopup}" BaseResourceKey="DynamicInheritancePopupStyle1">
<Setter Property="BackgroundColor" Value="Orange" />
</Style>
</ResourceDictionary>
</Application.Resources>
</Application>