C# Class ModernApp4Me.WP8.Framework.M4MTemplateSelector

A class base that should be extended in order to create template selectors.
Inheritance: System.Windows.Controls.ContentControl
显示文件 Open project: smartnsoft/ModernApp4Me

Public Methods

Method Description
SelectTemplate ( object item, DependencyObject container ) : System.Windows.DataTemplate

Returns the selected template.

Protected Methods

Method Description
OnContentChanged ( object oldContent, object newContent ) : void

Method Details

OnContentChanged() protected method

protected OnContentChanged ( object oldContent, object newContent ) : void
oldContent object
newContent object
return void

SelectTemplate() public abstract method

Returns the selected template.
public abstract SelectTemplate ( object item, DependencyObject container ) : System.Windows.DataTemplate
item object The item
container System.Windows.DependencyObject the container wich is a
return System.Windows.DataTemplate