I have this XAML:
<igEditors:XamNumericEditor Grid.Column="6" Margin="6,1,0,1" Grid.Row="1" Style="{StaticResource XamLongEditor}" Value="{Binding LogIdEnd, Mode=TwoWay}" Grid.ColumnSpan="1" IsEnabled="{Binding ElementName=UseLogIdEnd, Path=IsChecked, Mode=OneWay}" >
<igEditors:XamMaskedEditor.ValueConstraint><igEditors:ValueConstraint MinInclusive="{Binding LogIdStart, Mode=OneWay}"/></igEditors:XamMaskedEditor.ValueConstraint></igEditors:XamNumericEditor>
where LogIdStart is the value I want to be used as minimum. When I change LogIdStart, MinInclusive constraint is not enforced based on LogIdStart.
What am I missing?
This seems to be a common request so why don't you just add Min and Max dependency properties like so?
XamNumericEditor
{
MinValue
GetValue(MinValueProperty); }
); }
}
MinValueProperty =
.Register(
,
),
, MinValueChangedCallback));
e)
(depObj
).OnMinValueChanged();
OnMinValueChanged()
)
ValueConstraint =
();
ValueConstraint.MinInclusive = MinValue;
MaxValue
GetValue(MaxValueProperty); }
MaxValueProperty =
, MaxValueChangedCallback));
).OnMaxValueChanged();
OnMaxValueChanged()