HomeCloudContent.xaml 1.5 KB

123456789101112131415161718192021222324
  1. <UserControl x:Class="PDF_Master.Views.HomePanel.HomeCloudContent"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:PDF_Master.Views.HomePanel"
  7. xmlns:Cloud="clr-namespace:PDF_Master.Views.HomePanel.CloudDrive"
  8. xmlns:prism ="http://prismlibrary.com/"
  9. prism:ViewModelLocator.AutoWireViewModel="True"
  10. xmlns:convert="clr-namespace:PDF_Master.DataConvert"
  11. Background="Yellow"
  12. mc:Ignorable="d"
  13. d:DesignHeight="450" d:DesignWidth="800">
  14. <UserControl.Resources>
  15. <ResourceDictionary>
  16. <convert:InvertBoolToVisibleConvert x:Key="InvertBoolToVisibleConvert" />
  17. <convert:BoolToVisible x:Key="BoolToVisibleConvert" />
  18. </ResourceDictionary>
  19. </UserControl.Resources>
  20. <Grid>
  21. <Cloud:CloudDriveContent x:Name="cloudDriveContent" Visibility="{Binding ElementName=cloudDriveContent,Path=IsShow, Converter={StaticResource BoolToVisibleConvert}}" />
  22. <Cloud:CloudFilesContent x:Name="cloudFilesContent" Visibility="{Binding ElementName=cloudDriveContent,Path=IsShow, Converter={StaticResource InvertBoolToVisibleConvert}}"/>
  23. </Grid>
  24. </UserControl>