Nelze vybrat více než 25 témat
Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
|
- <UserControl
- x:Class="BPASmartClient.CustomResource.UserControls.Toast"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
- xmlns:local="clr-namespace:BPASmartClient.CustomResource.UserControls"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:con="clr-namespace:BPASmartClient.CustomResource.Converters"
- Width="Auto"
- Height="Auto"
- MinWidth="100"
- MinHeight="50"
- MaxWidth="1500"
- MaxHeight="500"
- d:DesignHeight="48"
- d:DesignWidth="200"
- Focusable="False"
- MouseLeftButtonDown="UserControl_MouseLeftButtonDown"
- mc:Ignorable="d">
-
- <UserControl.Resources>
- <con:ToastIconConverter x:Key="IconConverter"></con:ToastIconConverter>
- </UserControl.Resources>
-
- <Border CornerRadius="{Binding CornerRadius}"
- BorderThickness="{Binding BorderThickness}"
- Background="{Binding Background}"
- BorderBrush="{Binding BorderBrush}"
- HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="1">
- <Border.Effect>
- <DropShadowEffect Color="#D1D1D1" BlurRadius="10" ShadowDepth="0" Opacity="0.5" />
- </Border.Effect>
-
- <Grid x:Name="grid" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto"/>
- <ColumnDefinition Width="10"/>
- <ColumnDefinition Width="Auto"/>
- </Grid.ColumnDefinitions>
-
- <iconPacks:PackIconFontAwesome x:Name="icon_toast" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="10 0 0 0"
- Foreground="{Binding IconForeground}"
- Width="{Binding IconSize}"
- Height="{Binding IconSize}">
- <iconPacks:PackIconFontAwesome.Kind>
- <MultiBinding Converter="{StaticResource IconConverter}">
- <Binding Path="Icon"/>
- <Binding ElementName="grid"/>
- <Binding ElementName="txt_toast"/>
- </MultiBinding>
- </iconPacks:PackIconFontAwesome.Kind>
- </iconPacks:PackIconFontAwesome>
-
- <TextBlock x:Name="txt_toast" Grid.Column="2" Text="{Binding Message}"
- MaxWidth="{Binding TextWidth}" Height="Auto" TextWrapping="Wrap"
- Foreground="{Binding Foreground}"
- FontStyle="{Binding FontStyle}"
- FontStretch="{Binding FontStretch}"
- FontSize="{Binding FontSize}"
- FontFamily="{Binding FontFamily}"
- FontWeight="{Binding FontWeight}"
- VerticalAlignment="{Binding VerticalContentAlignment}"
- HorizontalAlignment="{Binding HorizontalContentAlignment}" Padding="0 5 10 5">
- </TextBlock>
- </Grid>
- </Border>
- </UserControl>
|