C# Class ChessBoardVisualLib.ViewModel.SquareItem

Inheritance: System.Windows.DependencyObject
Show file Open project: Ribtoks/Queem Class Usage Examples

Public Properties

Property Type Description
ColoredFigureProperty System.Windows.DependencyProperty
DeltaXTransformProperty System.Windows.DependencyProperty
DeltaYTransformProperty System.Windows.DependencyProperty
FigureColorProperty System.Windows.DependencyProperty
FigureTypeProperty DependencyProperty
IsHighlightedProperty DependencyProperty
SquareColorProperty DependencyProperty

Public Methods

Method Description
AnimateShift ( double deltaX, double deltaY, Action action ) : void
ResetTransform ( ) : void
SetBackgroundColor ( Square square ) : void
SquareItem ( Square square, Figure figure, Color color ) : System
UpdateChessFigure ( Figure newFigure, Color newColor ) : void

Private Methods

Method Description
OnAnimationFinished ( ) : void

Method Details

AnimateShift() public method

public AnimateShift ( double deltaX, double deltaY, Action action ) : void
deltaX double
deltaY double
action Action
return void

ResetTransform() public method

public ResetTransform ( ) : void
return void

SetBackgroundColor() public method

public SetBackgroundColor ( Square square ) : void
square Square
return void

SquareItem() public method

public SquareItem ( Square square, Figure figure, Color color ) : System
square Square
figure Figure
color Color
return System

UpdateChessFigure() public method

public UpdateChessFigure ( Figure newFigure, Color newColor ) : void
newFigure Figure
newColor Color
return void

Property Details

ColoredFigureProperty public static property

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

DeltaXTransformProperty public static property

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

DeltaYTransformProperty public static property

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

FigureColorProperty public static property

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

FigureTypeProperty public static property

public static DependencyProperty FigureTypeProperty
return DependencyProperty

IsHighlightedProperty public static property

public static DependencyProperty IsHighlightedProperty
return DependencyProperty

SquareColorProperty public static property

public static DependencyProperty SquareColorProperty
return DependencyProperty