3 instantiations of ResourcesChangedEventArgs
Microsoft.Maui.Controls (3)
Element\Element.cs (1)
754
handler(this, new
ResourcesChangedEventArgs
(values));
ResourceDictionary.cs (1)
381
ValuesChanged?.Invoke(this, new
ResourcesChangedEventArgs
(values));
ResourcesChangedEventArgs.cs (1)
13
public static readonly ResourcesChangedEventArgs StyleSheets = new
ResourcesChangedEventArgs
(null);
24 references to ResourcesChangedEventArgs
Microsoft.Maui.Controls (24)
Element\Element.cs (9)
61
List<Action<object,
ResourcesChangedEventArgs
>> _changeHandlers;
372
void IElementDefinition.AddResourcesChangedListener(Action<object,
ResourcesChangedEventArgs
> onchanged)
374
_changeHandlers ??= new List<Action<object,
ResourcesChangedEventArgs
>>(2);
443
void IElementDefinition.RemoveResourcesChangedListener(Action<object,
ResourcesChangedEventArgs
> onchanged)
718
internal virtual void OnParentResourcesChanged(object sender,
ResourcesChangedEventArgs
e)
720
if (e ==
ResourcesChangedEventArgs
.StyleSheets)
740
internal virtual void OnResourcesChanged(object sender,
ResourcesChangedEventArgs
e)
742
if (e ==
ResourcesChangedEventArgs
.StyleSheets)
753
foreach (Action<object,
ResourcesChangedEventArgs
> handler in _changeHandlers.ToList())
ElementTemplate.cs (6)
12
List<Action<object,
ResourcesChangedEventArgs
>> _changeHandlers;
40
void IElementDefinition.AddResourcesChangedListener(Action<object,
ResourcesChangedEventArgs
> onchanged)
42
_changeHandlers = _changeHandlers ?? new List<Action<object,
ResourcesChangedEventArgs
>>(1);
66
void IElementDefinition.RemoveResourcesChangedListener(Action<object,
ResourcesChangedEventArgs
> onchanged)
100
void OnResourcesChanged(object sender,
ResourcesChangedEventArgs
e)
104
foreach (Action<object,
ResourcesChangedEventArgs
> handler in _changeHandlers)
IElementDefinition.cs (2)
14
void AddResourcesChangedListener(Action<object,
ResourcesChangedEventArgs
> onchanged);
17
void RemoveResourcesChangedListener(Action<object,
ResourcesChangedEventArgs
> onchanged);
IResourceDictionary.cs (1)
13
event EventHandler<
ResourcesChangedEventArgs
> ValuesChanged;
ResourceDictionary.cs (5)
102
ValuesChanged?.Invoke(this,
ResourcesChangedEventArgs
.StyleSheets);
149
void Item_ValuesChanged(object sender,
ResourcesChangedEventArgs
e)
336
event EventHandler<
ResourcesChangedEventArgs
> IResourceDictionary.ValuesChanged
369
ValuesChanged?.Invoke(this,
ResourcesChangedEventArgs
.StyleSheets);
390
event EventHandler<
ResourcesChangedEventArgs
> ValuesChanged;
ResourcesChangedEventArgs.cs (1)
13
public static readonly
ResourcesChangedEventArgs
StyleSheets = new ResourcesChangedEventArgs(null);