How do you apply DataTemplates defined in the Window.Resources to all Infragistics Panes when they are floating? -


i using infragistics xamdockmanager handle docking , undocking panels within application. have window defined uses dockmanager specify several different panes. define several datatemplates in window.resources data can presented when bind 1 of classes.

everything works fine when of panes docked in application; however, when undock pane , floating, doesn't work quite well. if data being viewed, still displayed properly, if change data adding list or selecting different item, new information not rendered according datatemplate. instead, displayed though don't have data template; displays full class name.

the ways have found datatemplates apply when panes undocked either specify data templates in resources section each individual pane, or specify them in app.xaml resources section applies entire application. unfortunately, not want same templates apply on entire application, latter option doesn't work. have placed datatemplates own resourcedictionary, can reference each pane, still obnoxious have restate resources want use every place want use them. thought placing data templates in window.resources supposed apply them other xaml defined in file.

does know of way around this?

ok, have been working infragistics support , delving depths of documentation , found looking for.

evidently, when pane floating routed events not bubble main window , styles defined in main window not apply elements in floating pane (this includes data templates).

for styles , data templates, there 2 possible solutions:

  1. as mentioned in question, can place styles in app.xaml.
  2. you can handle toolwindowloaded set styles or attach event handlers floating pane. in conjunction toolwindowloaded, can handle toolwindowunloaded event remove event handlers , styles when pane no longer floating.

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -