AnchorFragmentNavigationAutomationMode

Automation mode for HxAnchorFragmentNavigation.

API

Enum Values

Index Value Description
0 Full Scrolls to anchor on firstRender and whenever location changes (LocationChanged). With HxScrollspy this mode is suitable only for static pages (where the size/offset of individual sections remains the same from the very beggining). Use AnchorFragmentNavigationAutomationMode.SamePage or AnchorFragmentNavigationAutomationMode.Manual for when the page contents load asynchronnously and the layout changes.
1 Manual Explicit calls to HxAnchorFragmentNavigation.ScrollToCurrentUriFragmentAsync or needed. Use this mode with HxAnchorFragmentNavigation.ScrollToAnchorAsync when you need scrollspy to call HxScrollspy to recalculate the target offsets before scrolling (scrollspy does not work properly on scrolled content).
2 SamePage Same as AnchorFragmentNavigationAutomationMode.Manual but scrolls to anchor on LocationChanged if the page remains the same (just the #fragment portion changed). Works for most scenarios when you refresh the HxScrollspy after data load and then you just need to navigate over the page.

Methods

Method Returns Description
CompareTo(object target) int
GetTypeCode() TypeCode
HasFlag(Enum flag) bool

Static Methods

Method Type Description
Format (Type enumType, object value, string format) string
GetName (TEnum value) string
GetName (Type enumType, object value) string
GetNames () string[]
GetNames (Type enumType) string[]
GetUnderlyingType (Type enumType) Type
GetValues () TEnum[]
GetValues (Type enumType) Array
IsDefined (TEnum value) bool
IsDefined (Type enumType, object value) bool
Parse (Type enumType, string value) object
Parse (Type enumType, ReadOnlySpan<char> value) object
Parse (Type enumType, string value, bool ignoreCase) object
Parse (Type enumType, ReadOnlySpan<char> value, bool ignoreCase) object
Parse (string value) TEnum
Parse (ReadOnlySpan<char> value) TEnum
Parse (string value, bool ignoreCase) TEnum
Parse (ReadOnlySpan<char> value, bool ignoreCase) TEnum
ToObject (Type enumType, object value) object
ToObject (Type enumType, sbyte value) object
ToObject (Type enumType, short value) object
ToObject (Type enumType, int value) object
ToObject (Type enumType, byte value) object
ToObject (Type enumType, Ushort value) object
ToObject (Type enumType, Uint value) object
ToObject (Type enumType, long value) object
ToObject (Type enumType, Ulong value) object
TryParse (Type enumType, string value, object& result) bool
TryParse (Type enumType, ReadOnlySpan<char> value, object& result) bool
TryParse (Type enumType, string value, bool ignoreCase, object& result) bool
TryParse (Type enumType, ReadOnlySpan<char> value, bool ignoreCase, object& result) bool
TryParse (string value, TEnum& result) bool
TryParse (ReadOnlySpan<char> value, TEnum& result) bool
TryParse (string value, bool ignoreCase, TEnum& result) bool
TryParse (ReadOnlySpan<char> value, bool ignoreCase, TEnum& result) bool
An unhandled error has occurred. Reload 🗙