FileRestrictedTip.xaml 2.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. <UserControl x:Class="PDF_Master.Views.TipContent.FileRestrictedTip"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:prism="http://prismlibrary.com/"
  5. prism:ViewModelLocator.AutoWireViewModel="True"
  6. Height="176" Width="379">
  7. <Border CornerRadius="8" Background="{StaticResource color.sys.layout.state.note}">
  8. <Grid Margin="16">
  9. <Grid.RowDefinitions>
  10. <RowDefinition Height="24"></RowDefinition>
  11. <RowDefinition Height="72"></RowDefinition>
  12. <RowDefinition Height="48"></RowDefinition>
  13. </Grid.RowDefinitions>
  14. <Grid>
  15. <Grid.ColumnDefinitions>
  16. <ColumnDefinition></ColumnDefinition>
  17. <ColumnDefinition Width="24"></ColumnDefinition>
  18. </Grid.ColumnDefinitions>
  19. <StackPanel Orientation="Horizontal">
  20. <TextBlock Text="File Restricted" FontSize="14" VerticalAlignment="Center" FontFamily="Segoe UI" FontWeight="Medium" ></TextBlock>
  21. </StackPanel>
  22. <Button Background="Transparent" BorderBrush="Transparent" Grid.Column="1" VerticalAlignment="Top" HorizontalAlignment="Right" Command="{Binding CloseTipCommand}">
  23. <Path Data="M6.00006 7.06066L9.46973 10.5303L10.5304 9.46967L7.06072 6L10.5304 2.53033L9.46973 1.46967L6.00006 4.93934L2.53039 1.46967L1.46973 2.53033L4.9394 6L1.46973 9.46967L2.53039 10.5303L6.00006 7.06066Z" Fill="#94989C"></Path>
  24. </Button>
  25. </Grid>
  26. <TextBlock Grid.Row="1" TextWrapping="Wrap" Text="Files are password protected. Restricted features need to be unlocked to use" Foreground="{StaticResource color.sys.text.neutral.lv2}" Margin="0,8,16,0" FontFamily="Segoe UI" FontSize="14"></TextBlock>
  27. <Button Grid.Row="2" Height="32" Width="151" HorizontalAlignment="Right" VerticalAlignment="Bottom" Background="Transparent" BorderThickness="1" Command="{Binding RestrictCommand}">
  28. <TextBlock Text="Release restrictions" FontSize="14"></TextBlock>
  29. </Button>
  30. </Grid>
  31. </Border>
  32. </UserControl>