Table of Contents

Class NavigationHelper

Namespace
HeBianGu.General.WpfControlLib
Assembly
HeBianGu.General.WpfControlLib.dll

Provides helper function for navigation.

public static class NavigationHelper
Inheritance
NavigationHelper
Inherited Members

Fields

FrameParent

Identifies the parent of the current frame.

public const string FrameParent = "_parent"

Field Value

string

FrameSelf

Identifies the current frame.

public const string FrameSelf = "_self"

Field Value

string

FrameTop

Identifies the top frame.

public const string FrameTop = "_top"

Field Value

string

Methods

FindFrame(string, FrameworkElement)

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

public static ModernFrame FindFrame(string name, FrameworkElement context)

Parameters

name string

The frame name.

context FrameworkElement

The framework element providing the context for finding a frame.

Returns

ModernFrame

The frame or null if the frame could not be found.

RemoveFragment(Uri)

Removes the fragment from specified uri and return it.

public static Uri RemoveFragment(Uri uri)

Parameters

uri Uri

The uri

Returns

Uri

The uri without the fragment, or the uri itself if no fragment is found

RemoveFragment(Uri, out string)

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

public static Uri RemoveFragment(Uri uri, out string fragment)

Parameters

uri Uri

The uri.

fragment string

The fragment, null if no fragment found

Returns

Uri

The uri without the fragment, or the uri itself if no fragment is found

ToUri(object)

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

public static Uri ToUri(object value)

Parameters

value object

Returns

Uri

TryParseUriWithParameters(object, out Uri, out string, out string)

Tries to parse a uri with parameters from given value.

public static bool TryParseUriWithParameters(object value, out Uri uri, out string parameter, out string targetName)

Parameters

value object

The value.

uri Uri

The URI.

parameter string

The parameter.

targetName string

Name of the target.

Returns

bool

TryParseUriWithParameters(string, out Uri, out string, out string)

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

public static bool TryParseUriWithParameters(string value, out Uri uri, out string parameter, out string targetName)

Parameters

value string

The value.

uri Uri

The URI.

parameter string

The parameter.

targetName string

Name of the target.

Returns

bool