C# Class Octgn.Play.Gui.CardControl

Inheritance: System.Windows.Controls.UserControl
Afficher le fichier Open project: octgn/OCTGN Class Usage Examples

Méthodes publiques

Свойство 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

Свойство 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

Méthodes publiques

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

Méthodes protégées

Méthode 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

Méthode 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 méthode

public CardControl ( ) : System
Résultat System

CreateArrowTo() public méthode

public CreateArrowTo ( Player player, CardControl toCard ) : void
player Player
toCard CardControl
Résultat void

DragCardCompleted() protected méthode

protected DragCardCompleted ( ) : void
Résultat void

DragCardStarted() protected méthode

protected DragCardStarted ( ) : void
Résultat void

DragMouseDelta() protected méthode

protected DragMouseDelta ( double dx, double dy ) : void
dx double
dy double
Résultat void

DragTargetDelta() protected méthode

protected DragTargetDelta ( Point pt ) : void
pt Point
Résultat void

GetAnimateLoad() public static méthode

public static GetAnimateLoad ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
Résultat bool

GetDownKeys() public static méthode

public static GetDownKeys ( ) : List
Résultat List

LeftButtonDownOverCount() protected méthode

protected LeftButtonDownOverCount ( object sender, System.Windows.Input.MouseEventArgs e ) : void
sender object
e System.Windows.Input.MouseEventArgs
Résultat void

LeftButtonDownOverImage() protected méthode

protected LeftButtonDownOverImage ( object sender, System.Windows.Input.MouseEventArgs e ) : void
sender object
e System.Windows.Input.MouseEventArgs
Résultat void

MeasureOverride() protected méthode

protected MeasureOverride ( Size constraint ) : Size
constraint System.Windows.Size
Résultat System.Windows.Size

OnContextMenuOpening() protected méthode

protected OnContextMenuOpening ( System.Windows.Controls.ContextMenuEventArgs e ) : void
e System.Windows.Controls.ContextMenuEventArgs
Résultat void

OnMouseDoubleClick() protected méthode

protected OnMouseDoubleClick ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
Résultat void

OnMouseMove() protected méthode

protected OnMouseMove ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs
Résultat void

OnMouseUp() protected méthode

protected OnMouseUp ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
Résultat void

OnPreviewMouseDown() protected méthode

protected OnPreviewMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
Résultat void

OnPreviewMouseLeftButtonDown() protected méthode

protected OnPreviewMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
Résultat void

OnPropertyChanged() protected méthode

protected OnPropertyChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
e System.Windows.DependencyPropertyChangedEventArgs
Résultat void

OnPropertyChanged() protected méthode

protected OnPropertyChanged ( string propertyName ) : void
propertyName string
Résultat void

OnVisualParentChanged() protected méthode

protected OnVisualParentChanged ( DependencyObject oldParent ) : void
oldParent System.Windows.DependencyObject
Résultat void

SetAnimateLoad() public static méthode

public static SetAnimateLoad ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
Résultat void

Turned() protected méthode

protected Turned ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

Property Details

AnimateLoadProperty public_oe static_oe property

public static DependencyProperty,System.Windows AnimateLoadProperty
Résultat System.Windows.DependencyProperty

CardDroppedEvent public_oe static_oe property

public static RoutedEvent,System.Windows CardDroppedEvent
Résultat System.Windows.RoutedEvent

CardHoveredEvent public_oe static_oe property

public static RoutedEvent,System.Windows CardHoveredEvent
Résultat System.Windows.RoutedEvent

CardImageStretchProperty public_oe static_oe property

public static DependencyProperty,System.Windows CardImageStretchProperty
Résultat System.Windows.DependencyProperty

CardOutEvent public_oe static_oe property

public static RoutedEvent,System.Windows CardOutEvent
Résultat System.Windows.RoutedEvent

CardOverEvent public_oe static_oe property

public static RoutedEvent,System.Windows CardOverEvent
Résultat System.Windows.RoutedEvent

DisplayedPictureProperty public_oe static_oe property

public static DependencyProperty,System.Windows DisplayedPictureProperty
Résultat System.Windows.DependencyProperty

IsAlwaysUpProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsAlwaysUpProperty
Résultat System.Windows.DependencyProperty

IsAnchoredProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsAnchoredProperty
Résultat System.Windows.DependencyProperty

IsInvertedProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsInvertedProperty
Résultat System.Windows.DependencyProperty

IsUpProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsUpProperty
Résultat System.Windows.DependencyProperty

MultipleCardsProperty public_oe static_oe property

public static DependencyProperty,System.Windows MultipleCardsProperty
Résultat System.Windows.DependencyProperty