更新
This commit is contained in:
70
WPFDark/StandardControls/ScrollViewerAttachedProperties.cs
Normal file
70
WPFDark/StandardControls/ScrollViewerAttachedProperties.cs
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user