9 references to s_dataContextProperty
System.Windows.Forms (9)
System\Windows\Forms\Control.cs (9)
808
get => Properties.TryGetValue(
s_dataContextProperty
, out object? value)
820
if (Properties.ContainsKey(
s_dataContextProperty
) && Equals(ParentInternal?.DataContext, value))
822
Properties.RemoveValue(
s_dataContextProperty
);
827
Properties.AddValue(
s_dataContextProperty
, value);
833
=> Properties.ContainsKey(
s_dataContextProperty
);
836
=> Properties.RemoveValue(
s_dataContextProperty
);
7011
if (Properties.ContainsKey(
s_dataContextProperty
))
7013
if (Equals(Properties.GetValueOrDefault<object>(
s_dataContextProperty
), Parent?.DataContext))
7016
Properties.RemoveValue(
s_dataContextProperty
);