38 instantiations of Setter
Microsoft.Maui.Controls (38)
RadioButton\RadioButton.cs (6)
588
checkedVisualState.Setters.Add(new
Setter
() { Property = OpacityProperty, TargetName = CheckedIndicator, Value = 1 });
590
new
Setter
()
597
new
Setter
()
604
new
Setter
()
613
uncheckedVisualState.Setters.Add(new
Setter
() { Property = OpacityProperty, TargetName = CheckedIndicator, Value = 0 });
616
new
Setter
()
SettersExtensions.cs (3)
14
setters.Add(new
Setter
{ Property = property, Value = value });
23
setters.Add(new
Setter
{ Property = property, Value = binding });
31
setters.Add(new
Setter
{ Property = property, Value = new DynamicResource(key) });
Shell\BaseShellItem.cs (25)
368
new
Setter
{ Property = Label.VerticalTextAlignmentProperty, Value = TextAlignment.Center }
376
new
Setter
{ Property = Image.VerticalOptionsProperty, Value = LayoutOptions.Center }
401
selectedState.Setters.Add(new
Setter
408
normalState.Setters.Add(new
Setter
416
defaultGridClass.Setters.Add(new
Setter
{ Property = VisualStateManager.VisualStateGroupsProperty, Value = groups });
419
defaultGridClass.Setters.Add(new
Setter
{ Property = Grid.HeightRequestProperty, Value = 50 });
421
defaultGridClass.Setters.Add(new
Setter
{ Property = Grid.HeightRequestProperty, Value = 44 });
436
defaultGridClass.Setters.Add(new
Setter
{ Property = Grid.ColumnDefinitionsProperty, Value = columnDefinitions });
439
defaultGridClass.Setters.Add(new
Setter
{ Property = Element.AutomationIdProperty, Value = automationIdBinding });
468
defaultImageClass.Setters.Add(new
Setter
() { Property = Image.HeightRequestProperty, Value = sizeRequest });
469
defaultImageClass.Setters.Add(new
Setter
() { Property = Image.WidthRequestProperty, Value = sizeRequest });
474
defaultImageClass.Setters.Add(new
Setter
{ Property = Image.HorizontalOptionsProperty, Value = LayoutOptions.Start });
475
defaultImageClass.Setters.Add(new
Setter
{ Property = Image.MarginProperty, Value = new Thickness(12, 0, 12, 0) });
478
defaultImageClass.Setters.Add(new
Setter
{ Property = Image.SourceProperty, Value = imageBinding });
483
defaultLabelClass.Setters.Add(new
Setter
{ Property = Label.TextProperty, Value = labelBinding });
500
defaultLabelClass.Setters.Add(new
Setter
{ Property = Label.FontSizeProperty, Value = 14 });
501
defaultLabelClass.Setters.Add(new
Setter
{ Property = Label.TextColorProperty, Value = textColor });
502
defaultLabelClass.Setters.Add(new
Setter
{ Property = Label.FontFamilyProperty, Value = "sans-serif-medium" });
503
defaultLabelClass.Setters.Add(new
Setter
{ Property = Label.MarginProperty, Value = new Thickness(20, 0, 0, 0) });
507
defaultLabelClass.Setters.Add(new
Setter
{ Property = Label.FontSizeProperty, Value = 14 });
508
defaultLabelClass.Setters.Add(new
Setter
{ Property = Label.FontAttributesProperty, Value = FontAttributes.Bold });
512
defaultLabelClass.Setters.Add(new
Setter
{ Property = Label.HorizontalOptionsProperty, Value = LayoutOptions.Start });
513
defaultLabelClass.Setters.Add(new
Setter
{ Property = Label.HorizontalTextAlignmentProperty, Value = TextAlignment.Start });
517
defaultLabelClass.Setters.Add(new
Setter
{ Property = Label.HorizontalOptionsProperty, Value = LayoutOptions.Start });
518
defaultLabelClass.Setters.Add(new
Setter
{ Property = Label.HorizontalTextAlignmentProperty, Value = TextAlignment.Start });
TitleBar\TitleBar.cs (4)
440
new
Setter
()
449
new
Setter
()
555
new
Setter
()
565
new
Setter
()
31 references to Setter
Microsoft.Maui.Controls (24)
BindablePropertyConverter.cs (3)
45
if (parentValuesProvider.TargetObject is
Setter
)
148
if (parents[4] is not
Setter
)
149
throw new XamlParseException($"Expected {nameof(
Setter
)} but found {parents[4]}.", lineInfo);
Interactivity\DataTrigger.cs (1)
36
public new IList<
Setter
> Setters
Interactivity\MultiTrigger.cs (1)
23
public new IList<
Setter
> Setters
Interactivity\Trigger.cs (1)
36
public new IList<
Setter
> Setters
Interactivity\TriggerBase.cs (5)
23
Setters = new SealedList<
Setter
>();
55
internal IList<
Setter
> Setters { get; }
102
((SealedList<
Setter
>)Setters).IsReadOnly = true;
119
foreach (
Setter
setter in Setters)
124
foreach (
Setter
setter in Setters)
SettersExtensions.cs (3)
12
public static void Add(this IList<
Setter
> setters, BindableProperty property, object value)
18
public static void AddBinding(this IList<
Setter
> setters, BindableProperty property, Binding binding)
27
public static void AddDynamicResource(this IList<
Setter
> setters, BindableProperty property, string key)
Style.cs (4)
33
Setters = new List<
Setter
>();
88
public IList<
Setter
> Setters { get; }
175
foreach (
Setter
setter in Setters)
190
foreach (
Setter
setter in Setters)
VisualStateManager.cs (6)
40
foreach (
var
setter in state.Setters)
103
foreach (
Setter
setter in group.CurrentState.Setters)
113
foreach (
Setter
setter in target.Setters)
606
Setters = new ObservableCollection<
Setter
>();
613
public IList<
Setter
> Setters { get; }
624
foreach (
var
setter in Setters)
Microsoft.Maui.Controls.Build.Tasks (2)
CompiledConverters\BindablePropertyConverter.cs (2)
38
&& ((node.Parent as ElementNode)?.XmlType.Name == nameof(
Setter
)
101
if (target.XmlType.NamespaceUri == XamlParser.MauiUri && target.XmlType.Name == nameof(
Setter
))
Microsoft.Maui.Controls.Compatibility (1)
iOS\CollectionView\TemplatedCell.cs (1)
222
var
setter = state.Setters[setterIndex];
Microsoft.Maui.Controls.Xaml (4)
MarkupExtensions\AppThemeBindingExtension.cs (1)
64
if (valueProvider.TargetObject is
Setter
setter)
MarkupExtensions\OnIdiomExtension.cs (1)
49
if (valueProvider.TargetObject is
Setter
setter)
MarkupExtensions\OnPlatformExtension.cs (2)
61
if (valueProvider.TargetObject is
Setter
setter)
78
if (targetObject is
Setter
)