|
9 | 9 | <UserControl.Resources>
|
10 | 10 | <ResourceDictionary>
|
11 | 11 | <ResourceDictionary.MergedDictionaries>
|
| 12 | + <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Button.xaml" /> |
12 | 13 | <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.PopupBox.xaml" />
|
13 |
| - <!-- throw in some extra colour for out floating action button --> |
| 14 | + <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.TextBlock.xaml" /> |
| 15 | + <!-- throw in some extra colour for our floating action button --> |
14 | 16 | <ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/MaterialDesignColor.Green.Named.Primary.xaml" />
|
15 | 17 | </ResourceDictionary.MergedDictionaries>
|
16 | 18 | </ResourceDictionary>
|
|
26 | 28 | <ColumnDefinition Width="*" />
|
27 | 29 | </Grid.ColumnDefinitions>
|
28 | 30 | <Image Source="Resources/ms-icon-310x310.png" Stretch="Uniform" Width="100" Height="100" />
|
29 |
| - <StackPanel Grid.Column="1" Margin="24 0 0 0"> |
30 |
| - <TextBlock FontSize="32" TextWrapping="Wrap">Welcome to Material Design In XAML Toolkit</TextBlock> |
31 |
| - <TextBlock Margin="0 8 0 10" TextWrapping="Wrap" Foreground="{DynamicResource MaterialDesignBodyLight}">Click EXPLORE to checkout the various controls & themes.</TextBlock> |
32 |
| - <Button Command="{x:Static materialDesign:DrawerHost.OpenDrawerCommand}">EXPLORE</Button> |
| 31 | + <StackPanel Grid.Column="1" Margin="24 0 0 0" VerticalAlignment="Center"> |
| 32 | + <TextBlock Style="{StaticResource MaterialDesignDisplay1TextBlock}" TextWrapping="Wrap">Welcome to Material Design In XAML Toolkit</TextBlock> |
| 33 | + <Button Style="{StaticResource MaterialDesignFlatButton}" |
| 34 | + Command="{x:Static materialDesign:DrawerHost.OpenDrawerCommand}"> |
| 35 | + <StackPanel Orientation="Horizontal"> |
| 36 | + <materialDesign:PackIcon Kind="Binoculars" /> |
| 37 | + <TextBlock Margin="8 0 0 0">EXPLORE</TextBlock> |
| 38 | + </StackPanel> |
| 39 | + </Button> |
33 | 40 | </StackPanel>
|
34 | 41 | </Grid>
|
35 | 42 | <ScrollViewer Grid.Row="1" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Disabled"
|
|
38 | 45 | Margin="0 0 0 32">
|
39 | 46 | <Grid>
|
40 | 47 | <StackPanel Orientation="Horizontal">
|
41 |
| - <materialDesign:Card Width="420" Margin="4 2 8 16" Height="280"> |
| 48 | + <materialDesign:Card Width="420" Margin="4 2 8 16" Height="270"> |
42 | 49 | <Grid VerticalAlignment="Stretch" >
|
43 | 50 | <Grid.RowDefinitions>
|
44 | 51 | <RowDefinition Height="Auto" />
|
| 52 | + <RowDefinition Height="*" /> |
45 | 53 | <RowDefinition Height="Auto" />
|
46 |
| - <RowDefinition Height="Auto" /> |
47 |
| - <RowDefinition Height="Auto" /> |
| 54 | + <RowDefinition Height="Auto" /> |
48 | 55 | </Grid.RowDefinitions>
|
49 | 56 | <Grid.ColumnDefinitions>
|
50 | 57 | <ColumnDefinition Width="200" />
|
51 | 58 | <ColumnDefinition Width="*" />
|
52 | 59 | </Grid.ColumnDefinitions>
|
53 |
| - <Image Source="Resources/Contact.png" Grid.RowSpan="4" StretchDirection="Both" VerticalAlignment="Stretch" Stretch="UniformToFill" /> |
54 |
| - <TextBlock Grid.Column="1" FontSize="28" Margin="16 16 16 8" FontWeight="Light">Get In Touch</TextBlock> |
| 60 | + <Image Source="Resources/Contact.png" Grid.RowSpan="5" StretchDirection="Both" VerticalAlignment="Stretch" Stretch="UniformToFill" /> |
| 61 | + <TextBlock Grid.Column="1" Style="{StaticResource MaterialDesignHeadlineTextBlock}" Margin="16 16 16 2">Get In Touch</TextBlock> |
55 | 62 | <TextBlock Grid.Column="1" Grid.Row="1" TextWrapping="Wrap" Margin="16 0 16 8" Foreground="{DynamicResource MaterialDesignBodyLight}"
|
56 |
| - VerticalAlignment="Top">Say hello, make a feature request, or raise a bug through one of these channels:</TextBlock> |
| 63 | + VerticalAlignment="Center">Say hello, make a feature request, or raise a bug through one of these channels:</TextBlock> |
57 | 64 | <Border Grid.Column="1" Grid.Row="2" BorderThickness="0 1 0 0" BorderBrush="{DynamicResource MaterialDesignDivider}" Margin="0 8 0 0">
|
58 | 65 | <Grid Margin="8">
|
59 | 66 | <Button Style="{DynamicResource MaterialDesignFlatButton}" HorizontalAlignment="Left"
|
|
92 | 99 | </Border>
|
93 | 100 | </Grid>
|
94 | 101 | </materialDesign:Card>
|
95 |
| - <materialDesign:Card Width="420" Margin="8 2 4 16" Height="280"> |
| 102 | + <materialDesign:Card Width="420" Margin="8 2 4 16" Height="270"> |
96 | 103 | <Grid VerticalAlignment="Stretch">
|
97 | 104 | <Grid.RowDefinitions>
|
98 | 105 | <RowDefinition Height="Auto" />
|
| 106 | + <RowDefinition Height="Auto" /> |
99 | 107 | </Grid.RowDefinitions>
|
100 | 108 | <Grid.ColumnDefinitions>
|
101 | 109 | <ColumnDefinition Width="200" />
|
102 | 110 | <ColumnDefinition Width="*" />
|
103 | 111 | </Grid.ColumnDefinitions>
|
104 | 112 | <materialDesign:PackIcon Kind="GithubCircle" Width="160" Height="160" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
105 | 113 | <StackPanel Grid.Column="1">
|
106 |
| - <TextBlock FontSize="28" Margin="16 16 16 8" FontWeight="Light">Open Source</TextBlock> |
| 114 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" Margin="16 16 16 8">Open Source</TextBlock> |
107 | 115 | <TextBlock TextWrapping="Wrap" Margin="16 0 16 8" Foreground="{DynamicResource MaterialDesignBodyLight}"
|
108 | 116 | VerticalAlignment="Top">This project is completely open source. If you like it and want to say thanks you could hit the GitHub Star button, tweet or post about it, or tell your mum about it!</TextBlock>
|
109 | 117 | </StackPanel>
|
| 118 | + <Border Grid.Row="1" Grid.ColumnSpan="2" BorderThickness="0 1 0 0" BorderBrush="{DynamicResource MaterialDesignDivider}" Padding="8"> |
| 119 | + <DockPanel> |
| 120 | + <Button Style="{DynamicResource MaterialDesignFlatButton}" |
| 121 | + DockPanel.Dock="Right" |
| 122 | + x:Name="DonateButton" Click="DonateButton_OnClick"> |
| 123 | + <StackPanel Orientation="Horizontal"> |
| 124 | + <materialDesign:PackIcon Kind="Gift" /> |
| 125 | + <TextBlock Margin="8 0 0 0" VerticalAlignment="Center">Donate</TextBlock> |
| 126 | + </StackPanel> |
| 127 | + </Button> |
| 128 | + <TextBlock Foreground="{DynamicResource MaterialDesignBodyLight}" TextWrapping="Wrap" Margin="16" VerticalAlignment="Center"> |
| 129 | + Feel like you want to make a donation? It would be gratefully received. Click the button to donate via Pledgie. |
| 130 | + </TextBlock> |
| 131 | + </DockPanel> |
| 132 | + </Border> |
110 | 133 | </Grid>
|
111 | 134 | </materialDesign:Card>
|
112 | 135 | </StackPanel>
|
|
127 | 150 | <Button ToolTip="Chat" Click="ChatButton_OnClick">
|
128 | 151 | <!-- mix up the colours by brinking in a named palette (see merged dictionaries at top) -->
|
129 | 152 | <Button.Background>
|
130 |
| - <SolidColorBrush Color="{StaticResource GreenPrimary500}"></SolidColorBrush> |
| 153 | + <SolidColorBrush Color="{StaticResource GreenPrimary500}" /> |
131 | 154 | </Button.Background>
|
132 | 155 | <Button.Foreground>
|
133 |
| - <SolidColorBrush Color="{StaticResource GreenPrimary500Foreground}"></SolidColorBrush> |
| 156 | + <SolidColorBrush Color="{StaticResource GreenPrimary500Foreground}" /> |
134 | 157 | </Button.Foreground>
|
135 | 158 | <materialDesign:PackIcon Kind="Message" />
|
136 | 159 | </Button>
|
|
140 | 163 | >
|
141 | 164 | <materialDesign:PackIcon Kind="Email" />
|
142 | 165 | </Button>
|
| 166 | + <Button ToolTip="Feel like you want to make a donation? It would be gratefully received. Click the button to donate via Pledgie." |
| 167 | + Click="DonateButton_OnClick"> |
| 168 | + <Button.Background> |
| 169 | + <SolidColorBrush Color="{StaticResource GreenPrimary200}" /> |
| 170 | + </Button.Background> |
| 171 | + <Button.Foreground> |
| 172 | + <SolidColorBrush Color="{StaticResource GreenPrimary200Foreground}" /> |
| 173 | + </Button.Foreground> |
| 174 | + <materialDesign:PackIcon Kind="Gift" /> |
| 175 | + </Button> |
143 | 176 | </StackPanel>
|
144 | 177 | </materialDesign:PopupBox>
|
145 | 178 | </Grid>
|
|
0 commit comments