Browse Source

Merge pull request #1311 from jkoritzinsky/slider-value-twoway

Make RangeBase.Value bind TwoWay by default
pull/1315/head
Steven Kirk 9 years ago
committed by GitHub
parent
commit
c1dfb8de90
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Avalonia.Controls/Primitives/RangeBase.cs

4
src/Avalonia.Controls/Primitives/RangeBase.cs

@ -2,6 +2,7 @@
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using Avalonia.Data;
using Avalonia.Utilities;
namespace Avalonia.Controls.Primitives
@ -36,7 +37,8 @@ namespace Avalonia.Controls.Primitives
AvaloniaProperty.RegisterDirect<RangeBase, double>(
nameof(Value),
o => o.Value,
(o, v) => o.Value = v);
(o, v) => o.Value = v,
defaultBindingMode: BindingMode.TwoWay);
/// <summary>
/// Defines the <see cref="SmallChange"/> property.

Loading…
Cancel
Save