70 lines
2.3 KiB
C#
70 lines
2.3 KiB
C#
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
|
|
}
|
|
} |