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
namestringThe frame name.
contextFrameworkElementThe 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
uriUriThe 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
valueobject
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
valueobjectThe value.
uriUriThe URI.
parameterstringThe parameter.
targetNamestringName 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
valuestringThe value.
uriUriThe URI.
parameterstringThe parameter.
targetNamestringName of the target.