MainContent.xaml 1.1 KB

12345678910111213141516171819202122232425
  1. <UserControl
  2. x:Class="PDF_Office.Views.MainContent"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:cus="clr-namespace:PDF_Office.CustomControl"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
  8. xmlns:local="clr-namespace:PDF_Office.Views"
  9. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  10. xmlns:prism="http://prismlibrary.com/"
  11. xmlns:viewmodels="clr-namespace:PDF_Office.ViewModels"
  12. d:DataContext="{d:DesignInstance Type=viewmodels:MainContentViewModel}"
  13. d:DesignHeight="450"
  14. d:DesignWidth="800"
  15. prism:ViewModelLocator.AutoWireViewModel="True"
  16. mc:Ignorable="d">
  17. <i:Interaction.Triggers>
  18. <i:EventTrigger EventName="Unloaded">
  19. <prism:InvokeCommandAction Command="{Binding UnLoaded}" />
  20. </i:EventTrigger>
  21. </i:Interaction.Triggers>
  22. <Grid>
  23. <ContentControl Name="ContentMain" prism:RegionManager.RegionName="{Binding MainContentRegionName}" />
  24. </Grid>
  25. </UserControl>