tidy the codes
This commit is contained in:
1 parent
e02b420634
commit
97e8d0b8c3
33 files changed
+455
-1319
No files matched your search
@@ -22,9 +22,9 @@ namespace HandyControl.Controls
|
||||
|
||||
private RangeTrack _track;
|
||||
|
||||
private readonly ToolTip _autoToolTipStart = null;
|
||||
private readonly System.Windows.Controls.ToolTip _autoToolTipStart = null;
|
||||
|
||||
private readonly ToolTip _autoToolTipEnd = null;
|
||||
private readonly System.Windows.Controls.ToolTip _autoToolTipEnd = null;
|
||||
|
||||
private RangeThumb _thumbCurrent;
|
||||
|
||||
@@ -448,11 +448,11 @@ namespace HandyControl.Controls
|
||||
OnThumbDragStarted(isStart ? _autoToolTipStart : _autoToolTipEnd, isStart);
|
||||
}
|
||||
|
||||
private void OnThumbDragStarted(ToolTip toolTip, bool isStart)
|
||||
private void OnThumbDragStarted(System.Windows.Controls.ToolTip toolTip, bool isStart)
|
||||
{
|
||||
if (toolTip == null)
|
||||
{
|
||||
toolTip = new ToolTip
|
||||
toolTip = new System.Windows.Controls.ToolTip
|
||||
{
|
||||
Placement = PlacementMode.Custom,
|
||||
PlacementTarget = isStart ? _track.ThumbStart : _track.ThumbEnd,
|
||||
@@ -556,7 +556,7 @@ namespace HandyControl.Controls
|
||||
// Show AutoToolTip if needed
|
||||
if (AutoToolTipPlacement != AutoToolTipPlacement.None)
|
||||
{
|
||||
var toolTip = (isStart ? _autoToolTipStart : _autoToolTipEnd) ?? new ToolTip();
|
||||
var toolTip = (isStart ? _autoToolTipStart : _autoToolTipEnd) ?? new System.Windows.Controls.ToolTip();
|
||||
|
||||
toolTip.Content = GetAutoToolTipNumber(isStart);
|
||||
|
||||
|
||||
Reference in new issue
Block a user