C# Class DdsPlay.Controls.DeckShape

Interaction logic for DeckShape.xaml
Inheritance: System.Windows.Controls.UserControl
Show file Open project: anorsich/dds.net Class Usage Examples

Public Methods

Method Description
DeckShape ( ) : System
GetNextCardPosition ( ) : Point
UpdateCardShapes ( ) : void

Recalculate all the card positions and animate them to the new positions Should be called when the deck change its cards order or count

Private Methods

Method Description
DeckSortChanged ( object sender, EventArgs e ) : void

Handles the SortChanged event of the deck control.

RectBorderBackMouseEnter ( object sender, System.Windows.Input.MouseEventArgs e ) : void
RectBorderBackMouseLeave ( object sender, System.Windows.Input.MouseEventArgs e ) : void
RectBorderBackMouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
RectBorderBackMouseLeftButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
RectBorderBackMouseMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void

Method Details

DeckShape() public method

public DeckShape ( ) : System
return System

GetNextCardPosition() public method

public GetNextCardPosition ( ) : Point
return Point

UpdateCardShapes() public method

Recalculate all the card positions and animate them to the new positions Should be called when the deck change its cards order or count
public UpdateCardShapes ( ) : void
return void