I try to make tooltip on DevExpress IntegerUpDown
(DoubleUpDown
and so on) control:
<xcd:DoubleUpDown
HorizontalAlignment="Stretch"
Margin="5,2"
Grid.Column="0"
Minimum="0"
Value="{Binding SomeValue,Mode=TwoWay,UpdateSourceTrigger=LostFocus}"
Text="{Binding SomeValue,Mode=TwoWay,UpdateSourceTrigger=LostFocus}"
ToolTip="{Binding SomeValue,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
>
</xcd:DoubleUpDown>
But, it do not work for me - only empty tooltip shows. How to make tooltip?
If you see an empty
ToolTip
at runtime, it is your binding that fails.Try to set the
ToolTip
property to a hard-coded value and you should see that it works:You then know that there is something wrong with your binding. Make sure that the
DoubleUpDown
control has aDataContext
that has apublic
SomeValue
property that returns the value you are expecting to show up in the tooltip.Also note that it makes no sense to set the
Mode
property toTwoWay
and theUpdateSourceTrigger
property toPropertyChanged
on aToolTip
binding.