ThemeProviderElement

Class

Classes

Static Fields

Properties

Components: List<ThemeComponent>
ThemeValues: Dictionary<ThemeProperty,object>

Static Events

OnGlobalThemeChanged: Action

Instance Events

OnThemeUpdated: Action

Constructors

ThemeProviderElement()

Static Methods

NotifyGlobalThemeUpdate(): void
Resolve<T>(providerElement: ThemeProviderElement, property: BaseThemeProperty<T>): T
SetGlobal(property: ThemeProperty, value: object, notify: bool): void
SetGlobal<T>(property: BaseThemeProperty<T>, value: T, notify: bool): void
TryResolve<T>(providerElement: ThemeProviderElement, property: BaseThemeProperty<T>, value: T): bool
UnsetGlobal(property: ThemeProperty, notify: bool): void

Instance Methods

NotifyThemeUpdate(fromListener: bool): void
Resolve<T>(property: BaseThemeProperty<T>, computed: bool): T
Set(property: ThemeProperty, value: object, notify: bool): void
Set<T>(property: BaseThemeProperty<T>, value: T, notify: bool): void
TryResolve<T>(property: BaseThemeProperty<T>, value: T, computed: bool): bool
Unset(property: ThemeProperty, notify: bool): void
Apply(previous: HThemeProvider, widget: HThemeProvider): void
GetThemed<T>(property: BaseThemeProperty<T>, listen: bool): T
Resolves the theme value for the given property.
RemarksThe returned value may be invalid for struct types. Use IThemeProvider.TryGetThemed in cases where you need to be sure that the value is valid and intentionally assigned. If you can't be sure that this provider is not null, use WidgetExtensions.Get instead.

Parameters

property:BaseThemeProperty<T> - The theme property to resolve.
listen:bool - Whether this provider should listen for theme updates.

Returns

T-The resolved theme value, or the default value if not found.
OnAttached(evt: AttachToPanelEvent): void
OnDetached(evt: DetachFromPanelEvent): void
TryGetThemed<S>(property: BaseThemeProperty<S>, value: S, listen: bool): bool
Tries to resolve the theme value for the given property.
RemarksIf you can't be sure that this provider is not null, use WidgetExtensions.TryGet instead.

Parameters

property:BaseThemeProperty<S> - The theme property to resolve.
value:S - The resolved theme value, or the default value if not found.
listen:bool - Whether this provider should listen for theme updates.

Returns

bool-true if the value retrieved is valid, otherwise false.

Inherited Members

GetChildFromWidgetChildCanReconcileReconcileDebugDescribeChildrenTypedDescriptorDescriptorParentContextToStringDeepToStringShallowToDiagnosticsNodeToStringShortDebugFillPropertiesToStringUssClassNameHierarchyDepthThemeProviderElementElementThemeValueContainsThemeValueRemoveThemeValueRegisterThemeValueWidgetFactorySlotDeleteFactorySlotOnWatchedThemeUpdateddisabledUssClassNameSetActivePseudoStateSetCheckedPseudoStateFocusSendEventSetEnabledFromHierarchySetEnabledMarkDirtyRepaintIsMarkedForRepaintContainsPointOverlapsDoMeasureGetClassesClearClassListAddToClassListRemoveFromClassListToggleInClassListEnableInClassListClassListContainsFindAncestorUserDataSetBindingGetBindingTryGetBindingGetBindingInfosHasBindingClearBindingClearBindingsGetHierarchicalDataSourceContextGetDataSourceContextTryGetDataSourceContextTryGetLastBindingToUIResultTryGetLastBindingToSourceResultAddInsertRemoveRemoveAtClearElementAtIndexOfChildrenSortBringToFrontSendToBackPlaceBehindPlaceInFrontRemoveFromHierarchyGetFirstOfTypeGetFirstAncestorOfTypeContainsFindCommonAncestorviewDataKeyuserDatacanGrabFocusfocusControllerdisablePlayModeTintusageHintstransformscaledPixelsPerPointlayoutcontentRectpaddingRectworldBoundlocalBoundworldTransformhasActivePseudoStatehasInactivePseudoStatehasHoverPseudoStatehasCheckedPseudoStatehasEnabledPseudoStatehasDisabledPseudoStatehasFocusPseudoStatehasRootPseudoStatepickingModenameenabledInHierarchyenabledSelflanguageDirectionvisiblegenerateVisualContentdataSourcedataSourcePathdataSourceTypeexperimentalhierarchycacheAsBitmapparentpanelcontentContainervisualTreeAssetSourcethis[int]childCountschedulestyleresolvedStylecustomStylestyleSheetstooltipBlurfocusabletabIndexdelegatesFocusRegisterCallbackRegisterCallbackOnceUnregisterCallbackHasTrickleDownHandlersHasBubbleUpHandlersExecuteDefaultActionAtTargetHandleEventBubbleUpHandleEventTrickleDownExecuteDefaultActionNotifyPropertyChangedEqualsGetHashCodeGetTypeMemberwiseCloneReferenceEquals

Extension Methods

ToDiagnosticsNodeSafeAddClassesAddToBackgroundColorBackgroundImageColorBackgroundImageScalingBackgroundImageBindDisposableBorderColorBorderRadiusBorderConstrainedConstraintsDisplayFillFlexContainerFlexibleHeightConstraintsImageLoosenMakeAbsoluteMakeRelativeMarginMarginedNoBorderRadiusNoBorderNoMarginNoPaddingAndMarginNoPaddingNoPositionOpacityPaddedPaddingPickablePositionPositionedRegisterOnAttachRetroactivelySizeSizedStretchedTextAlignTextColorTextSizeTightStretchTightTransitionsTranslatedVisibleWidthConstraintsWithAddedWithCallbackWithClassesWithNameWithStyleWithStylesheetDescribeIdentityShortHashToStringNullableTweenGetDepth

On this page