using System.Windows.Media; namespace HistoryView.Controls.FileSelector; /// /// Interaction logic for FileHorizontal.xaml /// public partial class FileHorizontal : UserControl { public FileHorizontal() { InitializeComponent(); } public object ImageSource { get { return (object)GetValue(ImageSourceProperty); } set { SetValue(ImageSourceProperty, value); } } // Using a DependencyProperty as the backing store for ImageSource. This enables animation, styling, binding, etc... public static readonly DependencyProperty ImageSourceProperty = DependencyProperty.Register("ImageSource", typeof(object), typeof(FileHorizontal), new PropertyMetadata(default)); public string FileType { get { return (string)GetValue(FileTypeProperty); } set { SetValue(FileTypeProperty, value); } } // Using a DependencyProperty as the backing store for FileType. This enables animation, styling, binding, etc... public static readonly DependencyProperty FileTypeProperty = DependencyProperty.Register("FileType", typeof(string), typeof(FileHorizontal), new PropertyMetadata(default)); public string FileName { get { return (string)GetValue(FileNameProperty); } set { SetValue(FileNameProperty, value); } } // Using a DependencyProperty as the backing store for FileName. This enables animation, styling, binding, etc... public static readonly DependencyProperty FileNameProperty = DependencyProperty.Register("FileName", typeof(string), typeof(FileHorizontal), new PropertyMetadata(default)); }