4 implementations of TargetObject
Microsoft.Maui.Controls (1)
StyleSheets\StyleSheetServiceProvider.cs (1)
32 public object TargetObject { get; set; }
Microsoft.Maui.Controls.Xaml (3)
XamlServiceProvider.cs (3)
93 public object TargetObject { get; } 133 object IProvideValueTarget.TargetObject => targetObject; 163 object IProvideValueTarget.TargetObject => objectAndParents[0];
13 references to TargetObject
Microsoft.Maui.Controls (8)
BindablePropertyConverter.cs (4)
45 if (parentValuesProvider.TargetObject is Setter) 54 else if (parentValuesProvider.TargetObject is Trigger) 55 type = (parentValuesProvider.TargetObject as Trigger).TargetType; 56 else if (parentValuesProvider.TargetObject is PropertyCondition && parent is TriggerBase)
FontSizeConverter.cs (1)
57 var type = serviceProvider.GetService(typeof(IProvideValueTarget)) is IProvideValueTarget valueTargetProvider ? valueTargetProvider.TargetObject.GetType() : typeof(Label);
LegacyLayouts\ConstraintExpression.cs (2)
61 if (valueProvider == null || !(valueProvider.TargetObject is INameScope)) 63 view = ((INameScope)valueProvider.TargetObject).FindByName<View>(ElementName);
ResourceDictionary.cs (1)
409 if (!((serviceProvider.GetService(typeof(Xaml.IProvideValueTarget)) as Xaml.IProvideValueTarget)?.TargetObject is ResourceDictionary targetRD))
Microsoft.Maui.Controls.Xaml (5)
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) 76 object targetObject = valueProvider.TargetObject;
MarkupExtensions\StaticResourceExtension.cs (1)
31 Diagnostics.ResourceDictionaryDiagnostics.OnStaticResourceResolved(resourceDictionary, Key, valueProvider.TargetObject, valueProvider.TargetProperty);