30 lines
1.7 KiB
XML
30 lines
1.7 KiB
XML
<UserControl x:Class="Livia.Views.Controls.LicenseInfoControl"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:Livia.Views.Controls"
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
xmlns:attachedProperties="clr-namespace:Livia.Views.AttachedProperties"
|
|
mc:Ignorable="d"
|
|
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
|
|
TextElement.FontWeight="Regular"
|
|
TextElement.FontSize="13"
|
|
TextOptions.TextFormattingMode="Ideal"
|
|
TextOptions.TextRenderingMode="Auto"
|
|
Background="{DynamicResource MaterialDesignPaper}"
|
|
d:DataContext="{d:DesignInstance Type=local:LicenseInfoControl}"
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
|
|
<materialDesign:Card Style="{StaticResource LiviaCard}"
|
|
Margin="10"
|
|
attachedProperties:StringItemProperties.ItemName="{Binding LicenseTitle, FallbackValue=LicenseTitle}"
|
|
Cursor="Hand"
|
|
MouseDown="LinkButtonClick">
|
|
<TextBlock Style="{DynamicResource MaterialDesignBody1TextBlock}"
|
|
Text="{Binding LicenseContent, FallbackValue=LicenseContent}"
|
|
TextWrapping="Wrap"
|
|
TextAlignment="Justify" />
|
|
</materialDesign:Card>
|
|
</UserControl>
|