| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <UserControl x:Class="OHV.Module.Interactivity.NotificatioinView"
- 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:OHV.Module.Interactivity"
- xmlns:prism="http://prismlibrary.com/"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d"
- d:DesignHeight="250" d:DesignWidth="450" Height="250" Width="450"
- >
- <prism:Dialog.WindowStyle>
- <Style TargetType="Window">
- <Setter Property="prism:Dialog.WindowStartupLocation" Value="CenterScreen" />
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="AllowsTransparency" Value="True"/>
- <Setter Property="ResizeMode" Value="NoResize"/>
- <Setter Property="WindowStyle" Value="None"/>
- <Setter Property="BorderThickness" Value="1"/>
- <Setter Property="BorderBrush" Value="{DynamicResource BorderSolidNormal}"/>
- <Setter Property="Template" Value="{DynamicResource WindowTemplateKey}"/>
- <!--<Style.Triggers>
- <Trigger Property="ResizeMode" Value="CanResizeWithGrip">
- <Setter Property="Template" Value="{StaticResource WindowTemplateKey}"/>
- </Trigger>
- </Style.Triggers>-->
- </Style>
- </prism:Dialog.WindowStyle>
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/GSG.NET.WPF;component/ThemeResources/ThemeColorResourcesCyan.xaml"/>
- <ResourceDictionary Source="/GSG.NET.WPF;component/ControlResources/ButtonResources.xaml"/>
- <ResourceDictionary Source="/GSG.NET.WPF;component/ControlResources/WindowResources.xaml"/>
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </UserControl.Resources>
- <Border Background="White" CornerRadius="20" BorderThickness="2" BorderBrush="{DynamicResource BackgroundSolidFocused}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition/>
- <RowDefinition Height="45"/>
- </Grid.RowDefinitions>
- <Grid x:Name="gridHeader" Cursor="Hand" Background="Transparent" />
- <Canvas x:Name="iconError" Width="50" Height="50" IsHitTestVisible="False" Margin="0,30,0,15" Visibility="{Binding ErrorVisibillity}">
- <Ellipse Width="50" Height="50" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" Fill="{DynamicResource BackgroundSolidNormal}"/>
- <Path Width="35.363" Height="35.366" Canvas.Left="14.506" Canvas.Top="14.502" Stretch="Fill" Fill="{DynamicResource BackgroundSolidFocused}" Data="M 26.6909,67.6953L 50.7531,91.7574C 72.3666,89.5388 89.5455,72.3562 91.7588,50.7412L 67.7018,26.6843L 26.6909,67.6953 Z "/>
- <Path Width="26.164" Height="26.166" Canvas.Left="11.918" Canvas.Top="11.917" Stretch="Fill" Fill="{DynamicResource BasicHighlight}" Data="F1 M 69.3018,63.7112L 63.7069,69.3008C 62.6859,70.3297 61.0111,70.3297 59.9823,69.3008L 46.0028,55.3267L 32.0234,69.3008C 30.9972,70.3297 29.3198,70.3297 28.296,69.2957L 22.6986,63.7112C 21.6724,62.6823 21.6724,61.0153 22.6986,59.9813L 36.6781,46.0018L 22.7012,32.0251C 21.6776,30.9937 21.6776,29.3162 22.7012,28.2952L 28.296,22.7029C 29.3198,21.6688 30.9972,21.6688 32.0234,22.7029L 46.0001,36.6823L 59.9823,22.7029C 61.0111,21.6688 62.6859,21.6688 63.7042,22.7029L 69.2992,28.2874C 70.328,29.3162 70.328,30.9937 69.3018,32.0251L 55.3251,46.0018L 69.3018,59.9813C 70.328,61.0153 70.328,62.6823 69.3018,63.7112 Z "/>
- </Canvas>
- <Canvas x:Name="iconComplete" Width="50" Height="50" IsHitTestVisible="False" Margin="0,30,0,15" Visibility="{Binding OKVisibillity}">
- <Ellipse Width="50" Height="50" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" Fill="{DynamicResource BackgroundSolidNormal}"/>
- <Path Width="33.479" Height="36.57" Canvas.Left="16.521" Canvas.Top="12.836" Stretch="Fill" Fill="{DynamicResource BackgroundSolidFocused}" Data="M 92,46C 92,44.6744 91.944,43.3619 91.834,42.0648L 73.3882,23.619L 30.3982,65.2963L 56.0098,90.9078C 76.6016,86.3383 92,67.9674 92,46 Z "/>
- <Path Width="30.416" Height="29.353" Canvas.Left="9.807" Canvas.Top="10.309" Stretch="Fill" Fill="{DynamicResource BasicHighlight}" Data="F1 M 72.6794,22.9006L 67.6536,19.4879C 66.2672,18.5526 64.3696,18.9135 63.4346,20.2918L 38.8306,56.5771L 27.5211,45.2679C 26.3398,44.0919 24.4121,44.0919 23.2281,45.2679L 18.9351,49.5688C 17.7483,50.7527 17.7483,52.6777 18.9351,53.8647L 36.3203,71.2552C 37.2965,72.226 38.825,72.9778 40.2031,72.9778C 41.5813,72.9778 42.9703,72.1113 43.8618,70.8096L 73.4888,27.1143C 74.4268,25.7361 74.063,23.8411 72.6794,22.9006 Z "/>
- </Canvas>
- <ScrollViewer Margin="10,0,10,20" Grid.Row="1" HorizontalScrollBarVisibility="Disabled" CanContentScroll="True" VerticalAlignment="Center" HorizontalAlignment="Center">
- <TextBlock x:Name="tbMessage" TextWrapping="Wrap" FontSize="16" Foreground="{DynamicResource ForegroundStrong}" Text="{Binding Message, FallbackValue=Test}"/>
- </ScrollViewer>
- <Rectangle Fill="#FFBABABA" Height="2" VerticalAlignment="Top" Margin="20,0" Grid.Row="2" Visibility="Hidden"/>
- <StackPanel Orientation="Horizontal" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,5,0,0">
- <Button x:Name="btnSend" HorizontalAlignment="Left" VerticalAlignment="Top" Width="100" Height="40" Content="OK" AutomationProperties.AutomationId="CustomPopupCloseButton" Command="{Binding CloseDialogCommand}" Style="{StaticResource MaterialDesignRaisedButton}" Background="#FF1368BD"/>
- <!--Style="{DynamicResource btn_Send}-->
- </StackPanel>
- </Grid>
- </Border>
- </UserControl>
|