C# Класс 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.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

Contains() публичный статический Метод

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.
Результат bool

Invert() публичный статический Метод

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.
Результат bool

IsDarkThemeActive() публичный статический Метод

Returns whether the dark visual theme is currently active.
public static IsDarkThemeActive ( this resources ) : bool
resources this Resource Dictionary
Результат bool

IsExternalNavigation() публичный статический Метод

Returns whether the uri is from an external source.
public static IsExternalNavigation ( this uri ) : bool
uri this The uri
Результат bool

IsPortrait() публичный статический Метод

Returns whether the page orientation is in portrait.
public static IsPortrait ( this orientation ) : bool
orientation this Page orientation
Результат bool

RegisterNotification() публичный статический Метод

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
Результат void