|
5 | 5 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
6 | 6 | xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
7 | 7 | mc:Ignorable="d"
|
8 |
| - d:DesignHeight="300" d:DesignWidth="300"> |
| 8 | + d:DesignHeight="400" d:DesignWidth="1200"> |
9 | 9 | <UserControl.Resources>
|
10 | 10 | <ResourceDictionary>
|
11 | 11 | <ResourceDictionary.MergedDictionaries>
|
12 | 12 | <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Button.xaml" />
|
| 13 | + <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Card.xaml" /> |
| 14 | + <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Popupbox.xaml" /> |
13 | 15 | <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.CheckBox.xaml" />
|
14 | 16 | </ResourceDictionary.MergedDictionaries>
|
15 | 17 | </ResourceDictionary>
|
16 | 18 | </UserControl.Resources>
|
17 |
| - <WrapPanel Margin="0 0 8 8" ItemWidth="200"> |
18 |
| - <materialDesign:Card Margin="4 4 0 0"> |
| 19 | + <WrapPanel Margin="0 0 8 8"> |
| 20 | + <materialDesign:Card Margin="4 4 0 0" Width="200"> |
19 | 21 | <Grid>
|
20 | 22 | <Grid.RowDefinitions>
|
21 | 23 | <RowDefinition Height="140" />
|
|
41 | 43 | materialDesign:RippleAssist.IsCentered="True">
|
42 | 44 | <materialDesign:PackIcon Kind="Heart" />
|
43 | 45 | </Button>
|
| 46 | + <materialDesign:PopupBox Style="{StaticResource MaterialDesignToolPopupBox}" Padding="2 0 2 0"> |
| 47 | + <StackPanel> |
| 48 | + <Button Content="More"/> |
| 49 | + <Button Content="Options"/> |
| 50 | + </StackPanel> |
| 51 | + </materialDesign:PopupBox> |
| 52 | + </StackPanel> |
| 53 | + </Grid> |
| 54 | + </materialDesign:Card> |
| 55 | + |
| 56 | + <materialDesign:Card Margin="4 4 0 0" Width="220"> |
| 57 | + <Grid> |
| 58 | + <Grid.RowDefinitions> |
| 59 | + <RowDefinition Height="140" /> |
| 60 | + <RowDefinition Height="*" /> |
| 61 | + <RowDefinition Height="Auto" /> |
| 62 | + <RowDefinition Height="Auto" /> |
| 63 | + <RowDefinition Height="Auto" /> |
| 64 | + <RowDefinition Height="Auto" /> |
| 65 | + </Grid.RowDefinitions> |
| 66 | + <Image Source="Resources/Contact.png" Height="140" Stretch="UniformToFill"/> |
| 67 | + <Button Grid.Row="0" Style="{StaticResource MaterialDesignFloatingActionMiniAccentButton}" |
| 68 | + HorizontalAlignment="Right" VerticalAlignment="Bottom" |
| 69 | + Margin="0 0 16 -20"> |
| 70 | + <materialDesign:PackIcon Kind="ShareVariant" /> |
| 71 | + </Button> |
| 72 | + <StackPanel Grid.Row="1" Margin="8 24 8 4" > |
| 73 | + <TextBlock Style="{StaticResource MaterialDesignSubheadingTextBlock}" Margin="0">E.T. the Extra-Terrestrial</TextBlock> |
| 74 | + <Viewbox Margin="0 4 0 8" Height="16" HorizontalAlignment="Left"> |
| 75 | + <materialDesign:RatingBar Value="3" Orientation="Horizontal" Foreground="Gold" Margin="0" /> |
| 76 | + </Viewbox> |
| 77 | + <TextBlock Style="{StaticResource MaterialDesignBody1TextBlock}" TextWrapping="Wrap" VerticalAlignment="Center">After a gentle alien becomes stranded on Earth, the being is discovered and befriended by a young boy named Elliott.</TextBlock> |
| 78 | + </StackPanel> |
| 79 | + <Separator Grid.Row="2" Style="{StaticResource MaterialDesignDarkSeparator}" Margin="8 0 8 0"/> |
| 80 | + <TextBlock Grid.Row="3" Margin="8 4 8 4" Style="{StaticResource MaterialDesignBody2TextBlock}">Tonight's availability</TextBlock> |
| 81 | + <Grid Grid.Row="4"> |
| 82 | + <Grid.ColumnDefinitions> |
| 83 | + <ColumnDefinition Width="Auto"/> |
| 84 | + <ColumnDefinition/> |
| 85 | + </Grid.ColumnDefinitions> |
| 86 | + <materialDesign:PackIcon Grid.Column="0" Kind="Clock" VerticalAlignment="Center" Margin="8 4 4 4"/> |
| 87 | + <ListBox Grid.Column="1" Style="{StaticResource MaterialDesignToolToggleFlatListBox}" SelectedIndex="0" Margin="4 8 8 4"> |
| 88 | + <ListBox.Resources> |
| 89 | + <Style TargetType="{x:Type ListBoxItem}" BasedOn="{StaticResource MaterialDesignToolToggleListBoxItem}"> |
| 90 | + <Setter Property="Padding" Value="4 6 4 6" /> |
| 91 | + </Style> |
| 92 | + </ListBox.Resources> |
| 93 | + <ListBox.ToolTip> |
| 94 | + <StackPanel> |
| 95 | + <TextBlock Text="MaterialDesignFlatToggleListBox" /> |
| 96 | + <TextBlock Text="Exclusive selection" /> |
| 97 | + <TextBlock Text="ListBoxAssist.IsToggle allows more natural toggle behaviour" /> |
| 98 | + </StackPanel> |
| 99 | + </ListBox.ToolTip> |
| 100 | + <ListBoxItem> |
| 101 | + <TextBlock Text="18:00"/> |
| 102 | + </ListBoxItem> |
| 103 | + <ListBoxItem> |
| 104 | + <TextBlock Text="19:00"/> |
| 105 | + </ListBoxItem> |
| 106 | + <ListBoxItem> |
| 107 | + <TextBlock Text="22:00"/> |
| 108 | + </ListBoxItem> |
| 109 | + </ListBox> |
| 110 | + </Grid> |
| 111 | + |
| 112 | + <StackPanel Grid.Row="5"> |
| 113 | + <Button Style="{StaticResource MaterialDesignFlatButton}" HorizontalAlignment="Left" Margin="8 4 8 8">RESERVE</Button> |
44 | 114 | </StackPanel>
|
45 | 115 | </Grid>
|
46 | 116 | </materialDesign:Card>
|
|
55 | 125 | <RowDefinition Height="Auto" />
|
56 | 126 | </Grid.RowDefinitions>
|
57 | 127 | <TextBlock Grid.Row="0" Margin="16 16 16 4" Style="{StaticResource MaterialDesignHeadlineTextBlock}">Call Jennifer</TextBlock>
|
58 |
| - <Separator Grid.Row="1" Style="{StaticResource MaterialDesignDarkSeparator}"/> |
59 |
| - <TextBlock Grid.Row="2" Margin="16 0 16 8" VerticalAlignment="Center" HorizontalAlignment="Left" Style="{StaticResource MaterialDesignBody1TextBlock}">March 19, 2016</TextBlock> |
| 128 | + <Separator Grid.Row="1" Style="{StaticResource MaterialDesignLightSeparator}"/> |
| 129 | + <TextBlock Grid.Row="2" Margin="16 0 16 8" VerticalAlignment="Center" HorizontalAlignment="Left" Style="{StaticResource MaterialDesignBody2TextBlock}">March 19, 2016</TextBlock> |
60 | 130 | <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="16 0 16 8" HorizontalAlignment="Right">
|
61 | 131 | <Button HorizontalAlignment="Right" Style="{StaticResource MaterialDesignToolForegroundButton}" Width="30" Padding="2 0 2 0"
|
62 | 132 | materialDesign:RippleAssist.IsCentered="True">
|
63 | 133 | <materialDesign:PackIcon Kind="Phone" />
|
64 | 134 | </Button>
|
| 135 | + <materialDesign:PopupBox HorizontalAlignment="Right" Style="{StaticResource MaterialDesignToolForegroundPopupBox}" Padding="2 0 2 0"> |
| 136 | + <StackPanel> |
| 137 | + <Button Content="More"/> |
| 138 | + <Button Content="Options"/> |
| 139 | + </StackPanel> |
| 140 | + </materialDesign:PopupBox> |
65 | 141 | </StackPanel>
|
66 | 142 | </Grid>
|
67 | 143 | </materialDesign:Card>
|
68 | 144 | <materialDesign:Card Margin="4 4 0 0" Background="{DynamicResource PrimaryHueLightBrush}"
|
69 | 145 | Foreground="{DynamicResource PrimaryHueLightForegroundBrush}"
|
| 146 | + Width="200" |
70 | 147 | Padding="8">
|
71 | 148 | <TextBlock FontSize="16">Boring Text</TextBlock>
|
72 | 149 | </materialDesign:Card>
|
73 | 150 | <materialDesign:Card Margin="4 4 0 0" Background="{DynamicResource PrimaryHueDarkBrush}"
|
74 | 151 | Foreground="{DynamicResource PrimaryHueDarkForegroundBrush}"
|
75 |
| - > |
| 152 | + Width="200" |
| 153 | + Padding="8"> |
76 | 154 | <StackPanel>
|
77 | 155 | <TextBlock Margin="16 16 12 8" FontSize="16">Notes</TextBlock>
|
78 | 156 | <CheckBox Margin="16 4 16 0" Style="{StaticResource MaterialDesignUserForegroundCheckBox}">Do something good</CheckBox>
|
|
89 | 167 | </materialDesign:Card>
|
90 | 168 | <materialDesign:Card Margin="4 4 0 0" Background="{DynamicResource PrimaryHueDarkBrush}"
|
91 | 169 | Foreground="{DynamicResource PrimaryHueDarkForegroundBrush}"
|
| 170 | + Width="200" |
92 | 171 | Padding="8" UniformCornerRadius="6">
|
93 | 172 | <TextBlock TextWrapping="Wrap">You can adjust the corner radius</TextBlock>
|
94 | 173 | </materialDesign:Card>
|
|
0 commit comments