enhance: add Orientation prop for ScrollViewerAttach
This commit is contained in:
1 parent
3db85c35f8
commit
ee8f18aaea
9 files changed
+58
-25
No files matched your search
@@ -1,4 +1,6 @@
|
||||
namespace HandyControl.Data
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace HandyControl.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// 装箱后的值类型(用于提高效率)
|
||||
@@ -9,6 +11,10 @@
|
||||
|
||||
internal static object FalseBox = false;
|
||||
|
||||
internal static object VerticalBox = Orientation.Vertical;
|
||||
|
||||
internal static object HorizontalBox = Orientation.Horizontal;
|
||||
|
||||
internal static object Double0Box = .0;
|
||||
|
||||
internal static object Double01Box = .1;
|
||||
@@ -38,5 +44,8 @@
|
||||
internal static object Int99Box = 99;
|
||||
|
||||
internal static object BooleanBox(bool value) => value ? TrueBox : FalseBox;
|
||||
|
||||
internal static object OrientationBox(Orientation value) =>
|
||||
value == Orientation.Horizontal ? HorizontalBox : VerticalBox;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user