ThemeProviderElement
Class
Inheritance
objectCallback Event HandlerFocusableVisual ElementBase ElementWidget Base ElementWidgetBaseElement <H Theme Provider>SuperSingleChildWidgetBaseElement <H Theme Provider>SingleChildWidgetBaseElement <H Theme Provider>Classes
Static Fields
GlobalThemeValues: IdentityDictionary <Theme Property, object>
Properties
Components: List <Theme Component>
ThemeValues: Dictionary <Theme Property, object>
Static Events
OnGlobalThemeChanged: Action
Instance Events
OnThemeUpdated: Action
Constructors
ThemeProviderElement()
Static Methods
Get(element: Visual Element): Theme Provider Element
NotifyGlobalThemeUpdate(): void
Resolve<T>(providerElement: Theme Provider Element, property: BaseThemeProperty <T>): T
SetGlobal(property: Theme Property, value: object, notify: bool): void
SetGlobal<T>(property: BaseThemeProperty <T>, value: T, notify: bool): void
TryResolve<T>(providerElement: Theme Provider Element, property: BaseThemeProperty <T>, value: T): bool
UnsetGlobal(property: Theme Property, notify: bool): void
Instance Methods
NotifyThemeUpdate(fromListener: bool): void
Resolve<T>(property: BaseThemeProperty <T>, computed: bool): T
Set(property: Theme Property, 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: Theme Property, notify: bool): void
Apply(previous: H Theme Provider, widget: H Theme Provider): 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.OnAttached(evt: Attach To Panel Event): void
OnDetached(evt: Detach From Panel Event): 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.Inherited Members
Get Child From WidgetChildCan ReconcileReconcileDebug Describe ChildrenTyped DescriptorDescriptorParent ContextTo String DeepTo String ShallowTo Diagnostics NodeTo String ShortDebug Fill PropertiesTo StringUss Class NameHierarchy DepthTheme Provider ElementElementTheme ValueContains Theme ValueRemove Theme ValueRegister Theme ValueWidget Factory SlotDelete Factory SlotOn Watched Theme Updateddisabled Uss Class NameSet Active Pseudo StateSet Checked Pseudo StateFocusSend EventSet Enabled From HierarchySet EnabledMark Dirty RepaintIs Marked For RepaintContains PointOverlapsDo MeasureGet ClassesClear Class ListAdd To Class ListRemove From Class ListToggle In Class ListEnable In Class ListClass List ContainsFind Ancestor User DataSet BindingGet BindingTry Get BindingGet Binding InfosHas BindingClear BindingClear BindingsGet Hierarchical Data Source ContextGet Data Source ContextTry Get Data Source ContextTry Get Last Binding To UI ResultTry Get Last Binding To Source ResultAddInsertRemoveRemove AtClearElement AtIndex OfChildrenSortBring To FrontSend To BackPlace BehindPlace In FrontRemove From HierarchyGet First Of TypeGet First Ancestor Of TypeContainsFind Common Ancestorview Data Keyuser Datacan Grab Focusfocus Controllerdisable Play Mode Tintusage Hintstransformscaled Pixels Per Pointlayoutcontent Rectpadding Rectworld Boundlocal Boundworld Transformhas Active Pseudo Statehas Inactive Pseudo Statehas Hover Pseudo Statehas Checked Pseudo Statehas Enabled Pseudo Statehas Disabled Pseudo Statehas Focus Pseudo Statehas Root Pseudo Statepicking Modenameenabled In Hierarchyenabled Selflanguage Directionvisiblegenerate Visual Contentdata Sourcedata Source Pathdata Source Typeexperimentalhierarchycache As Bitmapparentpanelcontent Containervisual Tree Asset Sourcethis[int]child Countschedulestyleresolved Stylecustom Stylestyle SheetstooltipBlurfocusabletab Indexdelegates FocusRegister CallbackRegister Callback OnceUnregister CallbackHas Trickle Down HandlersHas Bubble Up HandlersExecute Default Action At TargetHandle Event Bubble UpHandle Event Trickle DownExecute Default ActionNotify Property ChangedEqualsGet Hash CodeGet TypeMemberwise CloneReference EqualsExtension Methods
To Diagnostics Node SafeAdd ClassesAdd ToBackground ColorBackground Image ColorBackground Image ScalingBackground ImageBind DisposableBorder ColorBorder RadiusBorderConstrainedConstraintsDisplayFillFlex ContainerFlexibleHeight ConstraintsImageLoosenMake AbsoluteMake RelativeMarginMarginedNo Border RadiusNo BorderNo MarginNo Padding And MarginNo PaddingNo PositionOpacityPaddedPaddingPickablePositionPositionedRegister On Attach RetroactivelySizeSizedStretchedText AlignText ColorText SizeTight StretchTightTransitionsTranslatedVisibleWidth ConstraintsWith AddedWith CallbackWith ClassesWith NameWith StyleWith StylesheetDescribe IdentityShort HashTo String NullableTweenGet Depth