C# Class Open.Core.Composite.Command.Click

Static Class that holds all Dependency Properties and Static methods to allow the Click event of the ButtonBase class to be attached to a Command.
This class is required, because Silverlight doesn't have native support for Commands.
显示文件 Open project: philcockfield/Open.TestHarness.SL

Public Properties

Property Type Description
CommandProperty System.Windows.DependencyProperty

Public Methods

Method Description
GetCommand ( System.Windows.Controls.Primitives.ButtonBase buttonBase ) : ICommand
SetCommand ( System.Windows.Controls.Primitives.ButtonBase buttonBase, ICommand command ) : void

Private Methods

Method Description
GetOrCreateBehavior ( System.Windows.Controls.Primitives.ButtonBase buttonBase ) : ButtonBaseClickCommandBehavior
OnSetCommandCallback ( DependencyObject dependencyObject, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Method Details

GetCommand() public static method

public static GetCommand ( System.Windows.Controls.Primitives.ButtonBase buttonBase ) : ICommand
buttonBase System.Windows.Controls.Primitives.ButtonBase
return ICommand

SetCommand() public static method

public static SetCommand ( System.Windows.Controls.Primitives.ButtonBase buttonBase, ICommand command ) : void
buttonBase System.Windows.Controls.Primitives.ButtonBase
command ICommand
return void

Property Details

CommandProperty public_oe static_oe property

Command to execute on click event.
public static DependencyProperty,System.Windows CommandProperty
return System.Windows.DependencyProperty