support for .NET framework 3.5
Still have bugs
This commit is contained in:
1 parent
5878039e21
commit
7d6b491f25
704 files changed
+48273
-33
No files matched your search
@@ -0,0 +1,59 @@
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
|
||||
|
||||
namespace HandyControl.Controls
|
||||
{
|
||||
public class CompareSlider : Slider
|
||||
{
|
||||
public static readonly DependencyProperty TargetContentProperty = DependencyProperty.Register(
|
||||
"TargetContent", typeof(object), typeof(CompareSlider), new PropertyMetadata(default(object)));
|
||||
|
||||
public static readonly DependencyProperty SourceContentProperty = DependencyProperty.Register(
|
||||
"SourceContent", typeof(object), typeof(CompareSlider), new PropertyMetadata(default(object)));
|
||||
|
||||
public object TargetContent
|
||||
{
|
||||
get => GetValue(TargetContentProperty);
|
||||
set => SetValue(TargetContentProperty, value);
|
||||
}
|
||||
|
||||
public object SourceContent
|
||||
{
|
||||
get => GetValue(SourceContentProperty);
|
||||
set => SetValue(SourceContentProperty, value);
|
||||
}
|
||||
|
||||
//private bool _isLoaded;
|
||||
|
||||
//private double _tempValue;
|
||||
|
||||
//public CompareSlider()
|
||||
//{
|
||||
// //Loaded += delegate
|
||||
// //{
|
||||
// // if (_isLoaded) return;
|
||||
// // _isLoaded = true;
|
||||
// // Value = _tempValue;
|
||||
// //};
|
||||
//}
|
||||
|
||||
////protected override void OnRender(DrawingContext drawingContext)
|
||||
////{
|
||||
//// base.OnRender(drawingContext);
|
||||
|
||||
//// Value = _tempValue;
|
||||
////}
|
||||
|
||||
////public override void OnApplyTemplate()
|
||||
////{
|
||||
//// base.OnApplyTemplate();
|
||||
//// _tempValue = Value;
|
||||
//// Value = Orientation == Orientation.Horizontal ? Maximum : 0;
|
||||
//// if (_isLoaded)
|
||||
//// {
|
||||
//// Value = _tempValue;
|
||||
//// }
|
||||
////}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user