public override bool OnMouseDown(object sender, MouseButtonEventArgs e)
{
if (screenRectDecreaseValueButton.Contains(e.X, e.Y))
{
Value--;
}
if (screenRectIncreaseValueButton.Contains(e.X, e.Y))
{
Value++;
}
if (screenRectValueButton.Contains(e.X, e.Y))
{
dragging = true;
}
return base.OnMouseDown(sender, e);
}
}