using System; using System.Collections.Generic; using System.Linq; using System.Reflection.Metadata.Ecma335; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace SummaryModule.Controls.BaseMotion { /// /// Interaction logic for LoadPort.xaml /// public partial class LoadPort : UserControl { public LoadPort() { InitializeComponent(); } public string Header { get { return (string)GetValue(HeaderProperty); } set { SetValue(HeaderProperty, value); } } // Using a DependencyProperty as the backing store for Header. This enables animation, styling, binding, etc... public static readonly DependencyProperty HeaderProperty = DependencyProperty.Register(nameof(Header), typeof(string), typeof(LoadPort), new PropertyMetadata(default)); public ICommand Command { get { return (ICommand)GetValue(CommandProperty); } set { SetValue(CommandProperty, value); } } // Using a DependencyProperty as the backing store for Command. This enables animation, styling, binding, etc... public static readonly DependencyProperty CommandProperty = DependencyProperty.Register(nameof(Command), typeof(ICommand), typeof(LoadPort), new PropertyMetadata(default)); public object CommandParameter { get { return (object)GetValue(CommandParameterProperty); } set { SetValue(CommandParameterProperty, value); } } // Using a DependencyProperty as the backing store for CommandParameter. This enables animation, styling, binding, etc... public static readonly DependencyProperty CommandParameterProperty = DependencyProperty.Register(nameof(CommandParameter), typeof(object), typeof(LoadPort), new PropertyMetadata(default)); public bool FoupLoaded { get { return (bool)GetValue(FoupLoadedProperty); } set { SetValue(FoupLoadedProperty, value); } } // Using a DependencyProperty as the backing store for FoupLoaded. This enables animation, styling, binding, etc... public static readonly DependencyProperty FoupLoadedProperty = DependencyProperty.Register(nameof(FoupLoaded), typeof(bool), typeof(LoadPort), new PropertyMetadata(false)); } }