C# Class FirstFloor.ModernUI.Windows.Navigation.NavigationHelper

Provides helper function for navigation.
显示文件 Open project: gro-ove/actools Class Usage Examples

Public Methods

Method Description
FindFrame ( string name, FrameworkElement context ) : ModernFrame

Finds the frame identified with given name in the specified context.

RemoveFragment ( Uri uri ) : Uri

Removes the fragment from specified uri and return it.

RemoveFragment ( Uri uri, string &fragment ) : Uri

Removes the fragment from specified uri and returns the uri without the fragment and the fragment itself.

ToUri ( object value ) : Uri

Tries to cast specified value to a uri. Either a uri or string input is accepted.

TryParseUriWithParameters ( object value, Uri &uri, string &parameter, string &targetName ) : bool

Tries to parse a uri with parameters from given value.

TryParseUriWithParameters ( string value, Uri &uri, string &parameter, string &targetName ) : bool

Tries to parse a uri with parameters from given string value.

Method Details

FindFrame() public static method

Finds the frame identified with given name in the specified context.
public static FindFrame ( string name, FrameworkElement context ) : ModernFrame
name string The frame name.
context System.Windows.FrameworkElement The framework element providing the context for finding a frame.
return FirstFloor.ModernUI.Windows.Controls.ModernFrame

RemoveFragment() public static method

Removes the fragment from specified uri and return it.
public static RemoveFragment ( Uri uri ) : Uri
uri System.Uri The uri
return System.Uri

RemoveFragment() public static method

Removes the fragment from specified uri and returns the uri without the fragment and the fragment itself.
public static RemoveFragment ( Uri uri, string &fragment ) : Uri
uri System.Uri The uri.
fragment string The fragment, null if no fragment found
return System.Uri

ToUri() public static method

Tries to cast specified value to a uri. Either a uri or string input is accepted.
public static ToUri ( object value ) : Uri
value object
return System.Uri

TryParseUriWithParameters() public static method

Tries to parse a uri with parameters from given value.
public static TryParseUriWithParameters ( object value, Uri &uri, string &parameter, string &targetName ) : bool
value object The value.
uri System.Uri The URI.
parameter string The parameter.
targetName string Name of the target.
return bool

TryParseUriWithParameters() public static method

Tries to parse a uri with parameters from given string value.
public static TryParseUriWithParameters ( string value, Uri &uri, string &parameter, string &targetName ) : bool
value string The value.
uri System.Uri The URI.
parameter string The parameter.
targetName string Name of the target.
return bool