FileVertical.xaml.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. namespace ConfigFileManager.Controls.FileSelector;
  2. public partial class FileVertical : UserControl
  3. {
  4. public FileVertical()
  5. {
  6. InitializeComponent();
  7. }
  8. public object ImageSource
  9. {
  10. get { return (object)GetValue(ImageSourceProperty); }
  11. set { SetValue(ImageSourceProperty, value); }
  12. }
  13. public static readonly DependencyProperty ImageSourceProperty =
  14. DependencyProperty.Register("ImageSource", typeof(object), typeof(FileVertical), new PropertyMetadata(default));
  15. public string FileType
  16. {
  17. get { return (string)GetValue(FileTypeProperty); }
  18. set { SetValue(FileTypeProperty, value); }
  19. }
  20. public static readonly DependencyProperty FileTypeProperty =
  21. DependencyProperty.Register("FileType", typeof(string), typeof(FileVertical), new PropertyMetadata(default));
  22. public string FileName
  23. {
  24. get { return (string)GetValue(FileNameProperty); }
  25. set { SetValue(FileNameProperty, value); }
  26. }
  27. public static readonly DependencyProperty FileNameProperty =
  28. DependencyProperty.Register("FileName", typeof(string), typeof(FileVertical), new PropertyMetadata(default));
  29. }