C# Class VisibleBoundsWP8Sample.VisibleBoundsExtensions

Extension methods for accessing new VisibleBound property and VisibleBoundsChanged event on PhoneApplicationPage in Windows Phone 8.1 Update 1.
Datei anzeigen Open project: martinsuchan/wpdev.samples

Public Methods

Method Description
GetVisibleBounds ( this page ) : System.Windows.Thickness

Get the VisibleBounds value from provided PhoneApplicationPage

VisibleBoundsChangedAdd ( this page, EventHandler handler ) : void

Attach provided handler to VisibleBoundsChanged event.

VisibleBoundsChangedRemove ( this page, EventHandler handler ) : void

Detach provided handler from VisibleBoundsChanged event.

Private Methods

Method Description
EnsureVersion ( ) : void

Method Details

GetVisibleBounds() public static method

Get the VisibleBounds value from provided PhoneApplicationPage
Thrown if application is running on older version of /// Windows Phone than Windows Phone 8.1 Update 1.
public static GetVisibleBounds ( this page ) : System.Windows.Thickness
page this Target page.
return System.Windows.Thickness

VisibleBoundsChangedAdd() public static method

Attach provided handler to VisibleBoundsChanged event.
Thrown if application is running on older version of /// Windows Phone than Windows Phone 8.1 Update 1.
public static VisibleBoundsChangedAdd ( this page, EventHandler handler ) : void
page this Target page.
handler EventHandler Delegate to attach to the event.
return void

VisibleBoundsChangedRemove() public static method

Detach provided handler from VisibleBoundsChanged event.
Thrown if application is running on older version of /// Windows Phone than Windows Phone 8.1 Update 1.
public static VisibleBoundsChangedRemove ( this page, EventHandler handler ) : void
page this Target page.
handler EventHandler Delegate to detach from the event.
return void