Hi
I have a self referencing hierarchical data structure with about 70 fields. These fields are of various data types. I have defined width, visibility, labels, various cellvaluepresenter styles and Editor styles to show different look and feel and formatting for these fields. Since All levels needs to be show/exhibit same properties (width, visibility, labels etc). Is there a way I can avoid duplication of XAML which is already 250 lines for one level?
Thanks.
Matt
For some reason Header tooltips are not working for this sample. I addedd following style in resources:
<Style TargetType="{x:Type igDP:LabelPresenter}" BasedOn="{StaticResource {x:Type igDP:LabelPresenter}}"> <EventSetter Event="ToolTipOpening" Handler="XamGridHeaderToolTip_Opening"/> </Style>
and following handler:
private void XamGridHeaderToolTip_Opening(object sender, ToolTipEventArgs e) { if (sender != null && sender is LabelPresenter) { var lp = (LabelPresenter)sender; lp.ToolTip = "Test"; } }
But it is not showing the tooltip.
HI,
Nice solution, I don't see any performance issues.
Sincerely, Matt Developer Support Engineer
Hi Matt,
I have managed to get this done. Can you please review attached solution and let me know any performance implications.
Thank you for this. This attachment has the changes for partial soltion. Looking forward to receive the other half soon.
Here the attachment.