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
FrameSelf
Identifies the current frame.
public const string FrameSelf = "_self"
Field Value
FrameTop
Identifies the top frame.
public const string FrameTop = "_top"
Field Value
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
stringThe frame name.
context
FrameworkElementThe 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
UriThe 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
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
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
objectThe value.
uri
UriThe URI.
parameter
stringThe parameter.
targetName
stringName of the target.
Returns
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
stringThe value.
uri
UriThe URI.
parameter
stringThe parameter.
targetName
stringName of the target.