FileVertical.xaml.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. namespace HistoryView.Controls.FileSelector;
  2. /// <summary>
  3. /// Interaction logic for FileVertical.xaml
  4. /// </summary>
  5. public partial class FileVertical : UserControl
  6. {
  7. public FileVertical()
  8. {
  9. InitializeComponent();
  10. }
  11. public object ImageSource
  12. {
  13. get { return (object)GetValue(ImageSourceProperty); }
  14. set { SetValue(ImageSourceProperty, value); }
  15. }
  16. // Using a DependencyProperty as the backing store for ImageSource. This enables animation, styling, binding, etc...
  17. public static readonly DependencyProperty ImageSourceProperty =
  18. DependencyProperty.Register("ImageSource", typeof(object), typeof(FileVertical), new PropertyMetadata(default));
  19. public string FileType
  20. {
  21. get { return (string)GetValue(FileTypeProperty); }
  22. set { SetValue(FileTypeProperty, value); }
  23. }
  24. // Using a DependencyProperty as the backing store for FileType. This enables animation, styling, binding, etc...
  25. public static readonly DependencyProperty FileTypeProperty =
  26. DependencyProperty.Register("FileType", typeof(string), typeof(FileVertical), new PropertyMetadata(default));
  27. public string FileName
  28. {
  29. get { return (string)GetValue(FileNameProperty); }
  30. set { SetValue(FileNameProperty, value); }
  31. }
  32. // Using a DependencyProperty as the backing store for FileName. This enables animation, styling, binding, etc...
  33. public static readonly DependencyProperty FileNameProperty =
  34. DependencyProperty.Register("FileName", typeof(string), typeof(FileVertical), new PropertyMetadata(default));
  35. }