using System.Windows.Input; using System.Windows.Media; namespace SummaryModule.Controls; /// /// Interaction logic for SummeryPlot.xaml /// public partial class SummeryPlot : UserControl { public SummeryPlot() { InitializeComponent(); } public object DisplayContent { get { return (object)GetValue(DisplayContentProperty); } set { SetValue(DisplayContentProperty, value); } } // Using a DependencyProperty as the backing store for DisplayContent. This enables animation, styling, binding, etc... public static readonly DependencyProperty DisplayContentProperty = DependencyProperty.Register(nameof(DisplayContent), typeof(object), typeof(SummeryPlot), new PropertyMetadata(default)); public string Title { get { return (string)GetValue(TitleProperty); } set { SetValue(TitleProperty, value); } } public static readonly DependencyProperty TitleProperty = DependencyProperty.Register(nameof(Title), typeof(string), typeof(SummeryPlot), new PropertyMetadata(default)); public ImageSource TitleImage { get { return (ImageSource)GetValue(TitleImageProperty); } set { SetValue(TitleImageProperty, value); } } public static readonly DependencyProperty TitleImageProperty = DependencyProperty.Register(nameof(TitleImage), typeof(ImageSource), typeof(SummeryPlot), new PropertyMetadata(default)); public ICommand Jump { get { return (ICommand)GetValue(JumpProperty); } set { SetValue(JumpProperty, value); } } // Using a DependencyProperty as the backing store for Jump. This enables animation, styling, binding, etc... public static readonly DependencyProperty JumpProperty = DependencyProperty.Register(nameof(Jump), typeof(ICommand), typeof(SummeryPlot), new PropertyMetadata(default)); public object JumpPara { get { return (object)GetValue(JumpParaProperty); } set { SetValue(JumpParaProperty, value); } } // Using a DependencyProperty as the backing store for JumpPara. This enables animation, styling, binding, etc... public static readonly DependencyProperty JumpParaProperty = DependencyProperty.Register(nameof(JumpPara), typeof(object), typeof(SummeryPlot), new PropertyMetadata(default)); }