9 references to s_dataContextProperty
System.Windows.Forms (9)
System\Windows\Forms\Control.cs (9)
829
get => Properties.TryGetValue(
s_dataContextProperty
, out object? value)
841
if (Properties.ContainsKey(
s_dataContextProperty
) && Equals(ParentInternal?.DataContext, value))
843
Properties.RemoveValue(
s_dataContextProperty
);
848
Properties.AddValue(
s_dataContextProperty
, value);
854
=> Properties.ContainsKey(
s_dataContextProperty
);
857
=> Properties.RemoveValue(
s_dataContextProperty
);
7032
if (Properties.ContainsKey(
s_dataContextProperty
))
7034
if (Equals(Properties.GetValueOrDefault<object>(
s_dataContextProperty
), Parent?.DataContext))
7037
Properties.RemoveValue(
s_dataContextProperty
);