using BPA.UIControl.Commons.KnownBoxes;
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
namespace BPA.UIControl
{
///
/// ListBox 帮助类
///
public static class ListBoxHelper
{
///
/// 小滚动条
///
public static readonly DependencyProperty IsShowLittleBarProperty =
DependencyProperty.RegisterAttached("IsShowLittleBar", typeof(bool), typeof(ListBoxHelper), new PropertyMetadata(BooleanBoxes.FalseBox));
///
/// Gets the is ShowLittleBar.
///
/// The obj.
/// A bool.
public static bool GetIsShowLittleBar(DependencyObject obj)
{
return (bool)obj.GetValue(IsShowLittleBarProperty);
}
///
/// Sets the is ShowLittleBar.
///
/// The obj.
/// If true, value.
public static void SetIsShowLittleBar(DependencyObject obj, bool value)
{
obj.SetValue(IsShowLittleBarProperty, BooleanBoxes.Box(value));
}
}
}