/ WPFToolkit DropDownColumn के प्रत्येक आइटम के लिए / बाइंडिंग टूलटिप - c #, wpf, xaml, ग्रिड, wpftoolkit

WPFToolkit DropDownColumn - c #, wpf, xaml, ग्रिड, wpftoolkit के प्रत्येक आइटम को बाध्यकारी टूलटिप

WPFToolkit के DataGrid के अंदर एक ड्रॉपडाउन के प्रत्येक आइटम के लिए टूलटिप पाठ को कैसे बांधें

मैं निम्नलिखित कोड का उपयोग कर रहा हूँ

<WPFtoolkit:DataGridComboBoxColumn x:Name="dgCboTransformation" MinWidth="100" MaxWidth="125"
Header="Transformation" DisplayMemberPath="Name" SelectedValuePath="Signature"
SelectedValueBinding="{Binding Path=Transformation}" Visibility="Collapsed"
ToolTipService.IsEnabled="true">
<ToolTipService.ToolTip>
<TextBlock Foreground="Green" Text="{Binding Path=Signature}"/>
</ToolTipService.ToolTip>
</WPFtoolkit:DataGridComboBoxColumn>

उत्तर:

जवाब के लिए 0 № 1

आपको ItemContainerStyle का उपयोग करने में सक्षम होना चाहिए।

यहाँ बताया गया है कि मैंने अतीत में किसी चेकलिस्ट बॉक्स में व्यक्तिगत रूप से एक आइटम को सक्षम करने के लिए ऐसा कैसे किया है

<wpf:CheckListBox>
<wpf:CheckListBox.ItemContainerStyle>
<Style TargetType="{x:Type wpf:CheckListBoxItem}">
<Setter Property="IsEnabled"
Value="{Binding Path=LogisticareIDIsValid}" />
<EventSetter Event="MouseDoubleClick"
Handler="listResultsDoubleClick" />
</Style>
</wpf:CheckListBox.ItemContainerStyle>
</wpf:CheckListBox>