wpf - Transparent floating window. -
i'm trying create transparent floating dockable window. but, having difficulting achieving this. tried opacity, no luck.
here snapshot of code :
// floating dockable split pane splitpane splitfloating = new splitpane(); xamdockmanager.setinitiallocation(splitfloating, initialpanelocation.dockablefloating); xamdockmanager.setfloatinglocation(splitfloating, new point(my.xcoordinate, my.ycoordinate)); xamdockmanager.setfloatingsize(splitfloating, new size(my.width, my.height)); tabgrouppane tgpfloating = new tabgrouppane(); contentpane cprichtext = new contentpane(); cprichtext.content = new richtextbox(); cprichtext.opacity = 0.0; tgpfloating.items.add(cprichtext); tgpfloating.opacity = 0.0; splitfloating.panes.add(tgpfloating); splitfloating.opacity = 0.0; this.dockmanager.panes.add(splitfloating); this.dockmanager.opacity = 0.0;
i don't know infragistics suite, speaking should set background
transparent
(if want able click on background) or {x:null}
(if want click through background).
also if it's window (derives system.windows.controls.window
), you'll need set allowstransparency
true
well, might incur loss of performance.
Comments
Post a Comment