This commit is contained in:
ShrlAlgo
2025-07-11 09:20:23 +08:00
parent c7b104f44f
commit 4d35cadb56
840 changed files with 102347 additions and 11595 deletions

View File

@@ -0,0 +1,70 @@
using System.Windows;
namespace WPFDark.StandardControls
{
public class ScrollViewerAttachedProperties
{
#region HorizontalScrollBarOpacity
public static readonly DependencyProperty HorizontalScrollBarOpacityProperty =
DependencyProperty.RegisterAttached(
"HorizontalScrollBarOpacity",
typeof(double),
typeof(ScrollViewerAttachedProperties),
new FrameworkPropertyMetadata(0.0));
public static double GetHorizontalScrollBarOpacityScrollBar(DependencyObject target)
{
return (double) target.GetValue(HorizontalScrollBarOpacityProperty);
}
public static void SetHorizontalScrollBarOpacity(DependencyObject target, double value)
{
target.SetValue(HorizontalScrollBarOpacityProperty, value);
}
#endregion
#region VerticalScrollBarOpacity
public static readonly DependencyProperty VerticalScrollBarOpacityProperty =
DependencyProperty.RegisterAttached(
"VerticalScrollBarOpacity",
typeof(double),
typeof(ScrollViewerAttachedProperties),
new FrameworkPropertyMetadata(0.0));
public static double GetVerticalScrollBarOpacity(DependencyObject target)
{
return (double) target.GetValue(VerticalScrollBarOpacityProperty);
}
public static void SetVerticalScrollBarOpacity(DependencyObject target, double value)
{
target.SetValue(VerticalScrollBarOpacityProperty, value);
}
#endregion
#region IsLeftVerticalScrollBar
public static readonly DependencyProperty IsLeftVerticalScrollBarProperty =
DependencyProperty.RegisterAttached(
"IsLeftVerticalScrollBar",
typeof(bool),
typeof(ScrollViewerAttachedProperties),
new FrameworkPropertyMetadata(false));
public static bool GetIsLeftVerticalScrollBar(DependencyObject target)
{
return (bool) target.GetValue(IsLeftVerticalScrollBarProperty);
}
public static void SetIsLeftVerticalScrollBar(DependencyObject target, bool value)
{
target.SetValue(IsLeftVerticalScrollBarProperty, value);
}
#endregion
}
}