diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-06 18:39:17 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-06 18:39:17 +0300 |
| commit | cff4a8079c4d352cfd47793c701650e62337ed6e (patch) | |
| tree | af145431e541f08ed99b1d3ae377d8a59faedc4f /Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MainView.xaml | |
| parent | 776d934a1adc8c58301e56f6639afdeeccb0dda6 (diff) | |
| download | Tango-cff4a8079c4d352cfd47793c701650e62337ed6e.tar.gz Tango-cff4a8079c4d352cfd47793c701650e62337ed6e.zip | |
Working on PPC..
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MainView.xaml')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MainView.xaml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MainView.xaml b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MainView.xaml index 9d264afae..8da05f0dd 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MainView.xaml +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MainView.xaml @@ -7,6 +7,7 @@ xmlns:vm="clr-namespace:Tango.PPC.UI.ViewModels" xmlns:global="clr-namespace:Tango.PPC.UI" xmlns:local="clr-namespace:Tango.PPC.UI.Views" + xmlns:notifications="clr-namespace:Tango.PanelPC.UI.Notifications" mc:Ignorable="d" d:DesignHeight="1280" d:DesignWidth="800" d:DataContext="{d:DesignInstance Type=vm:MainViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.MainViewVM}"> <Grid> @@ -14,5 +15,28 @@ <local:LoadingView controls:NavigationControl.NavigationName="LoadingView"></local:LoadingView> <local:LayoutView controls:NavigationControl.NavigationName="LayoutView"></local:LayoutView> </controls:NavigationControl> + + <Grid Background="#9E000000"> + <Grid.Style> + <Style TargetType="Grid"> + <Setter Property="Opacity" Value="0"></Setter> + <Setter Property="Visibility" Value="Hidden"></Setter> + <Style.Triggers> + <DataTrigger Binding="{Binding NotificationProvider.HasMessageBox}" Value="True"> + <Setter Property="Visibility" Value="Visible"></Setter> + <DataTrigger.EnterActions> + <BeginStoryboard> + <Storyboard> + <DoubleAnimation To="1" Storyboard.TargetProperty="Opacity" Duration="00:00:0.2" /> + </Storyboard> + </BeginStoryboard> + </DataTrigger.EnterActions> + </DataTrigger> + </Style.Triggers> + </Style> + </Grid.Style> + + <notifications:MessageBox Height="400" Margin="20" DataContext="{Binding NotificationProvider.CurrentMessageBox}" /> + </Grid> </Grid> </UserControl> |
