C# Class Octgn.Play.Gui.CardControl

Inheritance: System.Windows.Controls.UserControl
显示文件 Open project: octgn/OCTGN Class Usage Examples

Public Properties

Property Type Description
AnimateLoadProperty System.Windows.DependencyProperty
CardDroppedEvent System.Windows.RoutedEvent
CardHoveredEvent System.Windows.RoutedEvent
CardImageStretchProperty System.Windows.DependencyProperty
CardOutEvent System.Windows.RoutedEvent
CardOverEvent System.Windows.RoutedEvent
DisplayedPictureProperty System.Windows.DependencyProperty
IsAlwaysUpProperty System.Windows.DependencyProperty
IsAnchoredProperty System.Windows.DependencyProperty
IsInvertedProperty System.Windows.DependencyProperty
IsUpProperty System.Windows.DependencyProperty
MultipleCardsProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
AnimateLoad void
AnimateOrientation void
AnimateTurn void
CardChangedHandler void
DragCollapseSelection void
GetCardVisual Visual
GetMiddlePoint Point
IsAlwaysUpChanged void
IsUpChanged void
MarkerDropped void
MouseButtonDoubleClickAction void
MouseButtonUpAction void
OnSizeChanged void
PropertyChangeHandler void
RemoveCardHandler void
RestoreCardHandler void
SetDisplayedPicture void
TableKeyDown void
UpdateInvertedTransform void

Public Methods

Method Description
CardControl ( ) : System
CreateArrowTo ( Player player, CardControl toCard ) : void
GetAnimateLoad ( DependencyObject obj ) : bool
GetDownKeys ( ) : List
SetAnimateLoad ( DependencyObject obj, bool value ) : void

Protected Methods

Method Description
DragCardCompleted ( ) : void
DragCardStarted ( ) : void
DragMouseDelta ( double dx, double dy ) : void
DragTargetDelta ( Point pt ) : void
LeftButtonDownOverCount ( object sender, System.Windows.Input.MouseEventArgs e ) : void
LeftButtonDownOverImage ( object sender, System.Windows.Input.MouseEventArgs e ) : void
MeasureOverride ( Size constraint ) : Size
OnContextMenuOpening ( System.Windows.Controls.ContextMenuEventArgs e ) : void
OnMouseDoubleClick ( System.Windows.Input.MouseButtonEventArgs e ) : void
OnMouseMove ( System.Windows.Input.MouseEventArgs e ) : void
OnMouseUp ( System.Windows.Input.MouseButtonEventArgs e ) : void
OnPreviewMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
OnPreviewMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
OnPropertyChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnPropertyChanged ( string propertyName ) : void
OnVisualParentChanged ( DependencyObject oldParent ) : void
Turned ( object sender, EventArgs e ) : void

Private Methods

Method Description
AnimateLoad ( object sender, RoutedEventArgs e ) : void
AnimateOrientation ( CardOrientation newOrientation ) : void
AnimateTurn ( bool newIsUp ) : void
CardChangedHandler ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
DragCollapseSelection ( IInputElement previous, IInputElement current ) : void
GetCardVisual ( ) : Visual
GetMiddlePoint ( bool invertRotation ) : Point
IsAlwaysUpChanged ( DependencyObject sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
IsUpChanged ( DependencyObject sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
MarkerDropped ( object sender, Octgn.Play.Gui.MarkerEventArgs e ) : void
MouseButtonDoubleClickAction ( System.Windows.Input.MouseButtonEventArgs e ) : void
MouseButtonUpAction ( System.Windows.Input.MouseButtonEventArgs e ) : void
OnSizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void
PropertyChangeHandler ( object sender, PropertyChangedEventArgs e ) : void
RemoveCardHandler ( object sender, RoutedEventArgs e ) : void
RestoreCardHandler ( object sender, RoutedEventArgs e ) : void
SetDisplayedPicture ( ImageSource value ) : void
TableKeyDown ( object source, TableKeyEventArgs te ) : void
UpdateInvertedTransform ( ) : void

Method Details

CardControl() public method

public CardControl ( ) : System
return System

CreateArrowTo() public method

public CreateArrowTo ( Player player, CardControl toCard ) : void
player Player
toCard CardControl
return void

DragCardCompleted() protected method

protected DragCardCompleted ( ) : void
return void

DragCardStarted() protected method

protected DragCardStarted ( ) : void
return void

DragMouseDelta() protected method

protected DragMouseDelta ( double dx, double dy ) : void
dx double
dy double
return void

DragTargetDelta() protected method

protected DragTargetDelta ( Point pt ) : void
pt Point
return void

GetAnimateLoad() public static method

public static GetAnimateLoad ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
return bool

GetDownKeys() public static method

public static GetDownKeys ( ) : List
return List

LeftButtonDownOverCount() protected method

protected LeftButtonDownOverCount ( object sender, System.Windows.Input.MouseEventArgs e ) : void
sender object
e System.Windows.Input.MouseEventArgs
return void

LeftButtonDownOverImage() protected method

protected LeftButtonDownOverImage ( object sender, System.Windows.Input.MouseEventArgs e ) : void
sender object
e System.Windows.Input.MouseEventArgs
return void

MeasureOverride() protected method

protected MeasureOverride ( Size constraint ) : Size
constraint System.Windows.Size
return System.Windows.Size

OnContextMenuOpening() protected method

protected OnContextMenuOpening ( System.Windows.Controls.ContextMenuEventArgs e ) : void
e System.Windows.Controls.ContextMenuEventArgs
return void

OnMouseDoubleClick() protected method

protected OnMouseDoubleClick ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
return void

OnMouseMove() protected method

protected OnMouseMove ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs
return void

OnMouseUp() protected method

protected OnMouseUp ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
return void

OnPreviewMouseDown() protected method

protected OnPreviewMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
return void

OnPreviewMouseLeftButtonDown() protected method

protected OnPreviewMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
return void

OnPropertyChanged() protected method

protected OnPropertyChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
e System.Windows.DependencyPropertyChangedEventArgs
return void

OnPropertyChanged() protected method

protected OnPropertyChanged ( string propertyName ) : void
propertyName string
return void

OnVisualParentChanged() protected method

protected OnVisualParentChanged ( DependencyObject oldParent ) : void
oldParent System.Windows.DependencyObject
return void

SetAnimateLoad() public static method

public static SetAnimateLoad ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
return void

Turned() protected method

protected Turned ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Property Details

AnimateLoadProperty public_oe static_oe property

public static DependencyProperty,System.Windows AnimateLoadProperty
return System.Windows.DependencyProperty

CardDroppedEvent public_oe static_oe property

public static RoutedEvent,System.Windows CardDroppedEvent
return System.Windows.RoutedEvent

CardHoveredEvent public_oe static_oe property

public static RoutedEvent,System.Windows CardHoveredEvent
return System.Windows.RoutedEvent

CardImageStretchProperty public_oe static_oe property

public static DependencyProperty,System.Windows CardImageStretchProperty
return System.Windows.DependencyProperty

CardOutEvent public_oe static_oe property

public static RoutedEvent,System.Windows CardOutEvent
return System.Windows.RoutedEvent

CardOverEvent public_oe static_oe property

public static RoutedEvent,System.Windows CardOverEvent
return System.Windows.RoutedEvent

DisplayedPictureProperty public_oe static_oe property

public static DependencyProperty,System.Windows DisplayedPictureProperty
return System.Windows.DependencyProperty

IsAlwaysUpProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsAlwaysUpProperty
return System.Windows.DependencyProperty

IsAnchoredProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsAnchoredProperty
return System.Windows.DependencyProperty

IsInvertedProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsInvertedProperty
return System.Windows.DependencyProperty

IsUpProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsUpProperty
return System.Windows.DependencyProperty

MultipleCardsProperty public_oe static_oe property

public static DependencyProperty,System.Windows MultipleCardsProperty
return System.Windows.DependencyProperty