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
ToolTipat runtime, it is your binding that fails.Try to set the
ToolTipproperty 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
DoubleUpDowncontrol has aDataContextthat has apublicSomeValueproperty that returns the value you are expecting to show up in the tooltip.Also note that it makes no sense to set the
Modeproperty toTwoWayand theUpdateSourceTriggerproperty toPropertyChangedon aToolTipbinding.