Skip to content

Commit

Permalink
docs: Obsolete.
Browse files Browse the repository at this point in the history
  • Loading branch information
GregaMohorko committed Apr 12, 2021
1 parent bb3b08f commit bc28a0e
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/GM.WPF/GM.WPF/Controls/BaseControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -317,13 +317,13 @@ void staticCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
/// <typeparam name="TViewModel">The type of the view model.</typeparam>
/// <param name="name">The name of the dependency property.</param>
/// <param name="nullifyWhenParentTabItemIsNotSelected">Determines whether or not to automatically set this property to the null (or default) value when the first found TabItem parent is not selected.</param>
[Obsolete("Using nullifyWhenParentTabItemIsNotSelected has been marked obsolete. It is the responsibility of the one that is using this control to do the nullification when the parent TabItem is unselected. To help achieve the same behavior, GM.WPF.Behaviors.TabItemBehavior.NullifyDataContextWhenInactive can be used.", false)]
[Obsolete("Using nullifyWhenParentTabItemIsNotSelected has been marked obsolete and will be removed in the next releases. It is the responsibility of the one that is using this control to do the nullification when the parent TabItem is unselected. To help achieve the same behavior, GM.WPF.Behaviors.TabItemBehavior.NullifyDataContextWhenInactive can be used.", true)]
protected static DependencyProperty DependencyVMProperty<TOwner, TViewModel>(string name, bool nullifyWhenParentTabItemIsNotSelected)
{
// TODO obsolete v1.4.1.1, 2021-02-08
// TODO obsolete 2021-04-12
// warning: 2021-02-08
// error: 2021-04-12
// repeat all this in all other methods below
// in next release, mark it as compile-time error and add in the obsolete message (... and will be removed in the next release)
// in next release, remove it
return DependencyVMProperty(name, typeof(TOwner), typeof(TViewModel), null, nullifyWhenParentTabItemIsNotSelected);
}

Expand All @@ -335,7 +335,7 @@ protected static DependencyProperty DependencyVMProperty<TOwner, TViewModel>(str
/// <param name="name">The name of the dependency property.</param>
/// <param name="viewModelPropertyName">The name of the property in the view model to bind to. If null, it is considered to be the same as the name of the owner property.</param>
/// <param name="nullifyWhenParentTabItemIsNotSelected">Determines whether or not to automatically set this property to the null (or default) value when the first found TabItem parent is not selected.</param>
[Obsolete("Using nullifyWhenParentTabItemIsNotSelected has been marked obsolete. It is the responsibility of the one that is using this control to do the nullification when the parent TabItem is unselected. To help achieve the same behavior, GM.WPF.Behaviors.TabItemBehavior.NullifyDataContextWhenInactive can be used.", false)]
[Obsolete("Using nullifyWhenParentTabItemIsNotSelected has been marked obsolete and will be removed in the next releases. It is the responsibility of the one that is using this control to do the nullification when the parent TabItem is unselected. To help achieve the same behavior, GM.WPF.Behaviors.TabItemBehavior.NullifyDataContextWhenInactive can be used.", true)]
protected static DependencyProperty DependencyVMProperty<TOwner, TViewModel>(string name, string viewModelPropertyName, bool nullifyWhenParentTabItemIsNotSelected)
{
return DependencyVMProperty(name, typeof(TOwner), typeof(TViewModel), viewModelPropertyName, nullifyWhenParentTabItemIsNotSelected);
Expand All @@ -348,7 +348,7 @@ protected static DependencyProperty DependencyVMProperty<TOwner, TViewModel>(str
/// <typeparam name="TViewModel">The type of the view model.</typeparam>
/// <param name="name">The name of the dependency property.</param>
/// <param name="viewModelPropertyName">The name of the property in the view model to bind to. If null, it is considered to be the same as the name of the owner property.</param>
[Obsolete("This method is deprecated and will be removed in the next releases. Please use DependencyVMProperty(string, object, string) instead.", false)]
[Obsolete("This method is deprecated and will be removed in the next releases. Please use DependencyVMProperty(string, object, string) instead.", true)]
protected static DependencyProperty DependencyVMProperty<TOwner, TViewModel>(string name, string viewModelPropertyName)
{
return DependencyVMProperty<TOwner, TViewModel>(name, null, viewModelPropertyName);
Expand All @@ -361,7 +361,7 @@ protected static DependencyProperty DependencyVMProperty<TOwner, TViewModel>(str
/// <param name="ownerType">The type of the control.</param>
/// <param name="viewModelType">The type of the view model.</param>
/// <param name="nullifyWhenParentTabItemIsNotSelected">Determines whether or not to automatically set this property to the null (or default) value when the first found TabItem parent is not selected.</param>
[Obsolete("Using nullifyWhenParentTabItemIsNotSelected has been marked obsolete. It is the responsibility of the one that is using this control to do the nullification when the parent TabItem is unselected. To help achieve the same behavior, GM.WPF.Behaviors.TabItemBehavior.NullifyDataContextWhenInactive can be used.", false)]
[Obsolete("Using nullifyWhenParentTabItemIsNotSelected has been marked obsolete and will be removed in the next releases. It is the responsibility of the one that is using this control to do the nullification when the parent TabItem is unselected. To help achieve the same behavior, GM.WPF.Behaviors.TabItemBehavior.NullifyDataContextWhenInactive can be used.", true)]
protected static DependencyProperty DependencyVMProperty(string name, Type ownerType, Type viewModelType, bool nullifyWhenParentTabItemIsNotSelected)
{
return DependencyVMProperty(name, ownerType, null, viewModelType, null, nullifyWhenParentTabItemIsNotSelected);
Expand All @@ -375,7 +375,7 @@ protected static DependencyProperty DependencyVMProperty(string name, Type owner
/// <param name="viewModelType">The type of the view model.</param>
/// <param name="viewModelPropertyName">The name of the property in the view model to bind to. If null, it is considered to be the same as the name of the owner property.</param>
/// <param name="nullifyWhenParentTabItemIsNotSelected">Determines whether or not to automatically set this property to the null (or default) value when the first found TabItem parent is not selected.</param>
[Obsolete("Using nullifyWhenParentTabItemIsNotSelected has been marked obsolete. It is the responsibility of the one that is using this control to do the nullification when the parent TabItem is unselected. To help achieve the same behavior, GM.WPF.Behaviors.TabItemBehavior.NullifyDataContextWhenInactive can be used.", false)]
[Obsolete("Using nullifyWhenParentTabItemIsNotSelected has been marked obsolete and will be removed in the next releases. It is the responsibility of the one that is using this control to do the nullification when the parent TabItem is unselected. To help achieve the same behavior, GM.WPF.Behaviors.TabItemBehavior.NullifyDataContextWhenInactive can be used.", true)]
protected static DependencyProperty DependencyVMProperty(string name, Type ownerType, Type viewModelType, string viewModelPropertyName, bool nullifyWhenParentTabItemIsNotSelected)
{
return DependencyVMProperty(name, ownerType, null, viewModelType, viewModelPropertyName, nullifyWhenParentTabItemIsNotSelected);
Expand All @@ -388,7 +388,7 @@ protected static DependencyProperty DependencyVMProperty(string name, Type owner
/// <param name="ownerType">The type of the control.</param>
/// <param name="viewModelType">The type of the view model.</param>
/// <param name="viewModelPropertyName">The name of the property in the view model to bind to. If null, it is considered to be the same as the name of the owner property.</param>
[Obsolete("This method is deprecated and will be removed in the next releases. Please use DependencyVMProperty(string, Type, Type, object, string) instead.", false)]
[Obsolete("This method is deprecated and will be removed in the next releases and will be removed in the next releases. Please use DependencyVMProperty(string, Type, Type, object, string) instead.", true)]
protected static DependencyProperty DependencyVMProperty(string name, Type ownerType, Type viewModelType, string viewModelPropertyName)
{
return DependencyVMPropertyPrivate(name, ownerType, viewModelType, null, viewModelPropertyName, false);
Expand All @@ -402,7 +402,7 @@ protected static DependencyProperty DependencyVMProperty(string name, Type owner
/// <param name="name">The name of the dependency property.</param>
/// <param name="defaultValue">The default value of this property.</param>
/// <param name="nullifyWhenParentTabItemIsNotSelected">Determines whether or not to automatically set this property to the null (or default) value when the first found TabItem parent is not selected.</param>
[Obsolete("Using nullifyWhenParentTabItemIsNotSelected has been marked obsolete. It is the responsibility of the one that is using this control to do the nullification when the parent TabItem is unselected. To help achieve the same behavior, GM.WPF.Behaviors.TabItemBehavior.NullifyDataContextWhenInactive can be used.", false)]
[Obsolete("Using nullifyWhenParentTabItemIsNotSelected has been marked obsolete and will be removed in the next releases. It is the responsibility of the one that is using this control to do the nullification when the parent TabItem is unselected. To help achieve the same behavior, GM.WPF.Behaviors.TabItemBehavior.NullifyDataContextWhenInactive can be used.", true)]
protected static DependencyProperty DependencyVMProperty<TOwner, TViewModel>(string name, object defaultValue, bool nullifyWhenParentTabItemIsNotSelected)
{
return DependencyVMProperty(name, typeof(TOwner), defaultValue, typeof(TViewModel), null, nullifyWhenParentTabItemIsNotSelected);
Expand All @@ -417,7 +417,7 @@ protected static DependencyProperty DependencyVMProperty<TOwner, TViewModel>(str
/// <param name="defaultValue">The default value of this property.</param>
/// <param name="viewModelPropertyName">The name of the property in the view model to bind to. If null, it is considered to be the same as the name of the owner property.</param>
/// <param name="nullifyWhenParentTabItemIsNotSelected">Determines whether or not to automatically set this property to the null (or default) value when the first found TabItem parent is not selected.</param>
[Obsolete("Using nullifyWhenParentTabItemIsNotSelected has been marked obsolete. It is the responsibility of the one that is using this control to do the nullification when the parent TabItem is unselected. To help achieve the same behavior, GM.WPF.Behaviors.TabItemBehavior.NullifyDataContextWhenInactive can be used.", false)]
[Obsolete("Using nullifyWhenParentTabItemIsNotSelected has been marked obsolete and will be removed in the next releases. It is the responsibility of the one that is using this control to do the nullification when the parent TabItem is unselected. To help achieve the same behavior, GM.WPF.Behaviors.TabItemBehavior.NullifyDataContextWhenInactive can be used.", true)]
protected static DependencyProperty DependencyVMProperty<TOwner, TViewModel>(string name, object defaultValue, string viewModelPropertyName, bool nullifyWhenParentTabItemIsNotSelected)
{
return DependencyVMProperty(name, typeof(TOwner), defaultValue, typeof(TViewModel), viewModelPropertyName, nullifyWhenParentTabItemIsNotSelected);
Expand All @@ -431,7 +431,7 @@ protected static DependencyProperty DependencyVMProperty<TOwner, TViewModel>(str
/// <param name="defaultValue">The default value of this property.</param>
/// <param name="viewModelType">The type of the view model.</param>
/// <param name="nullifyWhenParentTabItemIsNotSelected">Determines whether or not to automatically set this property to the null (or default) value when the first found TabItem parent is not selected.</param>
[Obsolete("Using nullifyWhenParentTabItemIsNotSelected has been marked obsolete. It is the responsibility of the one that is using this control to do the nullification when the parent TabItem is unselected. To help achieve the same behavior, GM.WPF.Behaviors.TabItemBehavior.NullifyDataContextWhenInactive can be used.", false)]
[Obsolete("Using nullifyWhenParentTabItemIsNotSelected has been marked obsolete and will be removed in the next releases. It is the responsibility of the one that is using this control to do the nullification when the parent TabItem is unselected. To help achieve the same behavior, GM.WPF.Behaviors.TabItemBehavior.NullifyDataContextWhenInactive can be used.", true)]
protected static DependencyProperty DependencyVMProperty(string name, Type ownerType, object defaultValue, Type viewModelType, bool nullifyWhenParentTabItemIsNotSelected)
{
return DependencyVMProperty(name, ownerType, defaultValue, viewModelType, null, nullifyWhenParentTabItemIsNotSelected);
Expand All @@ -446,7 +446,7 @@ protected static DependencyProperty DependencyVMProperty(string name, Type owner
/// <param name="viewModelType">The type of the view model.</param>
/// <param name="viewModelPropertyName">The name of the property in the view model to bind to. If null, it is considered to be the same as the name of the owner property.</param>
/// <param name="nullifyWhenParentTabItemIsNotSelected">Determines whether or not to automatically set this property to the null (or default) value when the first found TabItem parent is not selected.</param>
[Obsolete("Using nullifyWhenParentTabItemIsNotSelected has been marked obsolete. It is the responsibility of the one that is using this control to do the nullification when the parent TabItem is unselected. To help achieve the same behavior, GM.WPF.Behaviors.TabItemBehavior.NullifyDataContextWhenInactive can be used.", false)]
[Obsolete("Using nullifyWhenParentTabItemIsNotSelected has been marked obsolete and will be removed in the next releases. It is the responsibility of the one that is using this control to do the nullification when the parent TabItem is unselected. To help achieve the same behavior, GM.WPF.Behaviors.TabItemBehavior.NullifyDataContextWhenInactive can be used.", true)]
protected static DependencyProperty DependencyVMProperty(string name, Type ownerType, object defaultValue, Type viewModelType, string viewModelPropertyName, bool nullifyWhenParentTabItemIsNotSelected)
{
return DependencyVMPropertyPrivate(name, ownerType, viewModelType, defaultValue, viewModelPropertyName, nullifyWhenParentTabItemIsNotSelected);
Expand All @@ -460,7 +460,7 @@ protected static DependencyProperty DependencyVMProperty(string name, Type owner
/// <param name="defaultValue">The default value of this property.</param>
/// <param name="viewModelType">The type of the view model.</param>
/// <param name="viewModelPropertyName">The name of the property in the view model to bind to. If null, it is considered to be the same as the name of the owner property.</param>
[Obsolete("This method is deprecated and will be removed in the next releases. Please use DependencyVMProperty(string, Type, Type, object, string) instead.", false)]
[Obsolete("This method is deprecated and will be removed in the next releases. Please use DependencyVMProperty(string, Type, Type, object, string) instead.", true)]
protected static DependencyProperty DependencyVMProperty(string name, Type ownerType, object defaultValue, Type viewModelType, string viewModelPropertyName)
{
return DependencyVMProperty(name, ownerType, viewModelType, defaultValue, viewModelPropertyName);
Expand Down

0 comments on commit bc28a0e

Please sign in to comment.