C# Class Sanguosha.UI.Controls.CardStack

Inheritance: System.Windows.Controls.Canvas
Mostrar archivo Open project: RagingBigFemaleBird/sgs Class Usage Examples

Public Methods

Method Description
AddCards ( IList cards ) : void
AddCards ( IList cards ) : void
AppendCards ( IList cards ) : void
CardStack ( ) : System
RearrangeCards ( ) : void
RearrangeCards ( IList cards ) : void

Arrange children cards in this stack.

Assumes that all cards have the same width.

RemoveCards ( IList cards ) : void

Protected Methods

Method Description
ComputeDragCardNewIndex ( ) : int
RegisterCardEvents ( Sanguosha.UI.Controls.CardView card ) : void
UnregisterCardEvents ( Sanguosha.UI.Controls.CardView card ) : void

Private Methods

Method Description
CardStack_SizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void

Method Details

AddCards() public method

public AddCards ( IList cards ) : void
cards IList
return void

AddCards() public method

public AddCards ( IList cards ) : void
cards IList
return void

AppendCards() public method

public AppendCards ( IList cards ) : void
cards IList
return void

CardStack() public method

public CardStack ( ) : System
return System

ComputeDragCardNewIndex() protected method

protected ComputeDragCardNewIndex ( ) : int
return int

RearrangeCards() public method

public RearrangeCards ( ) : void
return void

RearrangeCards() public method

Arrange children cards in this stack.
Assumes that all cards have the same width.
public RearrangeCards ( IList cards ) : void
cards IList
return void

RegisterCardEvents() protected method

protected RegisterCardEvents ( Sanguosha.UI.Controls.CardView card ) : void
card Sanguosha.UI.Controls.CardView
return void

RemoveCards() public method

public RemoveCards ( IList cards ) : void
cards IList
return void

UnregisterCardEvents() protected method

protected UnregisterCardEvents ( Sanguosha.UI.Controls.CardView card ) : void
card Sanguosha.UI.Controls.CardView
return void