Rollback HorizontalScrollBarVisibility and VerticalScrollBarVisibility and made them obsolated

This commit is contained in:
Igor Gritsenko 2024-10-03 00:36:19 +03:00
Родитель f09e719a1d
Коммит 3d517700ad
1 изменённых файлов: 18 добавлений и 2 удалений

Просмотреть файл

@ -352,8 +352,24 @@ public static class ControlPropertyExtensions
Canvas.SetRight(control, value);
return control;
}
public static TPanel Children<TPanel>(this TPanel container, params Control[] children)
[Obsolete("Use ScrollViewer_HorizontalScrollBarVisibility extension instead")]
public static TElement HorizontalScrollBarVisibility<TElement>(this TElement control, ScrollBarVisibility value)
where TElement : ItemsControl
{
ScrollViewer.SetHorizontalScrollBarVisibility(control, value);
return control;
}
[Obsolete("Use ScrollViewer_VerticalScrollBarVisibility extension instead")]
public static TElement VerticalScrollBarVisibility<TElement>(this TElement control, ScrollBarVisibility value)
where TElement : ItemsControl
{
ScrollViewer.SetVerticalScrollBarVisibility(control, value);
return control;
}
public static TPanel Children<TPanel>(this TPanel container, params Control[] children)
where TPanel : Panel
{
foreach (var child in children)