C# Class Microsoft.Phone.Controls.Extensions

This set of internal extension methods provide general solutions and utilities in a small enough number to not warrant a dedicated extension methods class.
显示文件 Open project: nokiadatagathering/WP7-Official

Public Methods

Method Description
Contains ( this s, string value, System.StringComparison comparison ) : bool

An implementation of the Contains member of string that takes in a string comparison. The traditional .NET string Contains member uses StringComparison.Ordinal.

Invert ( this m, Matrix &outputMatrix ) : bool

Inverts a Matrix. The Invert functionality on the Matrix type is internal to the framework only. Since Matrix is a struct, an out parameter must be presented.

IsDarkThemeActive ( this resources ) : bool

Returns whether the dark visual theme is currently active.

IsExternalNavigation ( this uri ) : bool

Returns whether the uri is from an external source.

IsPortrait ( this orientation ) : bool

Returns whether the page orientation is in portrait.

RegisterNotification ( this element, string propertyName, PropertyChangedCallback callback ) : void

Registers a property changed callback for a given property.

This allows a child to be notified of when a property declared in its parent is changed.

Method Details

Contains() public static method

An implementation of the Contains member of string that takes in a string comparison. The traditional .NET string Contains member uses StringComparison.Ordinal.
public static Contains ( this s, string value, System.StringComparison comparison ) : bool
s this The string.
value string The string value to search for.
comparison System.StringComparison The string comparison type.
return bool

Invert() public static method

Inverts a Matrix. The Invert functionality on the Matrix type is internal to the framework only. Since Matrix is a struct, an out parameter must be presented.
public static Invert ( this m, Matrix &outputMatrix ) : bool
m this The Matrix object.
outputMatrix Matrix The matrix to return by an output /// parameter.
return bool

IsDarkThemeActive() public static method

Returns whether the dark visual theme is currently active.
public static IsDarkThemeActive ( this resources ) : bool
resources this Resource Dictionary
return bool

IsExternalNavigation() public static method

Returns whether the uri is from an external source.
public static IsExternalNavigation ( this uri ) : bool
uri this The uri
return bool

IsPortrait() public static method

Returns whether the page orientation is in portrait.
public static IsPortrait ( this orientation ) : bool
orientation this Page orientation
return bool

RegisterNotification() public static method

Registers a property changed callback for a given property.
This allows a child to be notified of when a property declared in its parent is changed.
public static RegisterNotification ( this element, string propertyName, PropertyChangedCallback callback ) : void
element this The element registering the notification
propertyName string Property name to register
callback PropertyChangedCallback Callback function
return void