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:
ToolTip="Test"
You then know that there is something wrong with your binding. Make sure that the DoubleUpDown
control has a DataContext
that has a public
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 to TwoWay
and the UpdateSourceTrigger
property to PropertyChanged
on a ToolTip
binding.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.