|
| 1 | +<Page |
| 2 | + x:Class="Wpf.Ui.Gallery.Views.Pages.Layout.CardActionPage" |
| 3 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 4 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 5 | + xmlns:controls="clr-namespace:Wpf.Ui.Gallery.Controls" |
| 6 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 7 | + xmlns:local="clr-namespace:Wpf.Ui.Gallery.Views.Pages.Layout" |
| 8 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 9 | + xmlns:system="clr-namespace:System;assembly=System.Runtime" |
| 10 | + xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml" |
| 11 | + Title="CardActionPage" |
| 12 | + d:DesignHeight="450" |
| 13 | + d:DesignWidth="800" |
| 14 | + ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}" |
| 15 | + ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}" |
| 16 | + Foreground="{DynamicResource TextFillColorPrimaryBrush}" |
| 17 | + mc:Ignorable="d"> |
| 18 | + <StackPanel Margin="0,0,0,24"> |
| 19 | + <controls:ControlExample |
| 20 | + Margin="0" |
| 21 | + HeaderText="A CardAction with an ImageIcon and a header." |
| 22 | + XamlCode="<ui:CardAction Icon="{ui:ImageIcon 'pack://application:,,,/Assets/wpfui.png'}" />"> |
| 23 | + <Grid> |
| 24 | + <Grid.ColumnDefinitions> |
| 25 | + <ColumnDefinition Width="*" /> |
| 26 | + <ColumnDefinition Width="Auto" /> |
| 27 | + </Grid.ColumnDefinitions> |
| 28 | + <ui:CardAction Grid.Column="0" Icon="{ui:ImageIcon 'pack://application:,,,/Assets/wpfui.png'}"> |
| 29 | + <StackPanel> |
| 30 | + <ui:TextBlock |
| 31 | + Margin="0" |
| 32 | + FontTypography="Body" |
| 33 | + Foreground="{DynamicResource TextFillColorPrimaryBrush}" |
| 34 | + Text="This is the header text" |
| 35 | + TextWrapping="WrapWithOverflow" /> |
| 36 | + </StackPanel> |
| 37 | + </ui:CardAction> |
| 38 | + </Grid> |
| 39 | + </controls:ControlExample> |
| 40 | + <controls:ControlExample |
| 41 | + Margin="0,32,0,0" |
| 42 | + HeaderText="A CardAction with an icon, a header and a description." |
| 43 | + XamlCode="<ui:CardAction Icon="{ui:SymbolIcon Fluent24}" />"> |
| 44 | + <Grid> |
| 45 | + <Grid.ColumnDefinitions> |
| 46 | + <ColumnDefinition Width="*" /> |
| 47 | + <ColumnDefinition Width="Auto" /> |
| 48 | + </Grid.ColumnDefinitions> |
| 49 | + <ui:CardAction Grid.Column="0" Icon="{ui:SymbolIcon DocumentEdit20, FontSize=43, Filled=False}"> |
| 50 | + <StackPanel> |
| 51 | + <ui:TextBlock |
| 52 | + Margin="0" |
| 53 | + FontTypography="BodyStrong" |
| 54 | + Foreground="{DynamicResource TextFillColorPrimaryBrush}" |
| 55 | + Text="This is the header text" |
| 56 | + TextWrapping="WrapWithOverflow" /> |
| 57 | + <ui:TextBlock |
| 58 | + Appearance="Secondary" |
| 59 | + Foreground="{DynamicResource TextFillColorSecondaryBrush}" |
| 60 | + Text="This is a description text." |
| 61 | + TextWrapping="WrapWithOverflow" /> |
| 62 | + </StackPanel> |
| 63 | + </ui:CardAction> |
| 64 | + </Grid> |
| 65 | + </controls:ControlExample> |
| 66 | + |
| 67 | + </StackPanel> |
| 68 | +</Page> |
0 commit comments