C# Class Discuz.WinPhone.TilePanel

Inheritance: System.Windows.Controls.Panel
Show file Open project: gruan01/Discuz.Mobi Class Usage Examples

Public Properties

Property Type Description
ImageProperty System.Windows.DependencyProperty
TileHeightProperty System.Windows.DependencyProperty
TileWidthProperty System.Windows.DependencyProperty

Public Methods

Method Description
TilePanel ( ) : System

Protected Methods

Method Description
AdjustTiles ( ) : void

Adjusts the quantity of the tiles based on the size of the panel and immediately calls UpdateLayout so the new tiles can be properly layed out.

ArrangeOverride ( Size finalSize ) : Size

Perform the standard Arrange. Here though, all of the tiles are placed based on the tilesize specified.

TileAdjustmentNeededAsync ( ) : void

Signal that an adjustment to the tiles is needed, then makes the call asynchronously. By asynchronously making this call, it can help prevent unnecessary work by the panel.

TilePanelSizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void

Called when the size of the panel changes.

Private Methods

Method Description
ImagePropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
TileHeightPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
TileWidthPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Method Details

AdjustTiles() protected method

Adjusts the quantity of the tiles based on the size of the panel and immediately calls UpdateLayout so the new tiles can be properly layed out.
protected AdjustTiles ( ) : void
return void

ArrangeOverride() protected method

Perform the standard Arrange. Here though, all of the tiles are placed based on the tilesize specified.
protected ArrangeOverride ( Size finalSize ) : Size
finalSize System.Windows.Size the actual size that the panel has been given
return System.Windows.Size

TileAdjustmentNeededAsync() protected method

Signal that an adjustment to the tiles is needed, then makes the call asynchronously. By asynchronously making this call, it can help prevent unnecessary work by the panel.
protected TileAdjustmentNeededAsync ( ) : void
return void

TilePanel() public method

public TilePanel ( ) : System
return System

TilePanelSizeChanged() protected method

Called when the size of the panel changes.
protected TilePanelSizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void
sender object This panel
e System.Windows.SizeChangedEventArgs The new size information
return void

Property Details

ImageProperty public static property

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

TileHeightProperty public static property

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

TileWidthProperty public static property

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