9 references to s_dataContextProperty
System.Windows.Forms (9)
System\Windows\Forms\Control.cs (9)
735
get => Properties.TryGetValue(
s_dataContextProperty
, out object? value)
747
if (Properties.ContainsKey(
s_dataContextProperty
) && Equals(ParentInternal?.DataContext, value))
749
Properties.RemoveValue(
s_dataContextProperty
);
754
Properties.AddValue(
s_dataContextProperty
, value);
760
=> Properties.ContainsKey(
s_dataContextProperty
);
763
=> Properties.RemoveValue(
s_dataContextProperty
);
6938
if (Properties.ContainsKey(
s_dataContextProperty
))
6940
if (Equals(Properties.GetValueOrDefault<object>(
s_dataContextProperty
), Parent?.DataContext))
6943
Properties.RemoveValue(
s_dataContextProperty
);