1 write to Target
Microsoft.Maui.Controls (1)
16 references to Target
Microsoft.Maui.Controls (16)
MergedStyle.cs (16)
38 Apply(Target);
64 Target.RemoveDynamicResource(classStyleProperty);
76 Target.OnSetDynamicResource(classStyleProperty, Maui.Controls.Style.StyleClassPrefix + styleClass, SetterSpecificity.DefaultValue);
80 if (Target is Element targetelement)
130 ClassStyles = _classStyleProperties.Select(p => (Target.GetValue(p) as IList<Style>)?.FirstOrDefault(s => s.CanBeAppliedTo(TargetType))).ToList();
139 var implicitStyle = (Style)Target.GetValue(implicitStyleProperty);
162 Target.SetDynamicResource(implicitStyleProperty, type.FullName);
173 Target.RemoveDynamicResource(_implicitStyles[i]);
180 Target.SetDynamicResource(implicitStyleProperty, fallbackTypeName);
184 Apply(Target);
194 Style?.UnApply(Target);
197 ((IStyle)classStyle)?.UnApply(Target);
199 ImplicitStyle?.UnApply(Target);
207 ImplicitStyle?.Apply(Target, new SetterSpecificity(SetterSpecificity.StyleImplicit, 0, 0, 0));
212 ((IStyle)classStyle)?.Apply(Target, new SetterSpecificity(SetterSpecificity.StyleLocal, 0, 1, 0));
215 Style?.Apply(Target, new SetterSpecificity(SetterSpecificity.StyleLocal, 0, 0, 0));