c# - How do I add a background image to LayoutDocumentPane? -


i have created resource imagebrush, see below, not know how add avalondock layoutdocumentpane. want add pane because want have logo in background, layoutdocumentpane covers window background.

<bitmapimage x:key="logobitmap" urisource="pack://application:,,,/mylibrary;component/myimages/mybiglogo.png"/> <imagebrush x:key="logoimage" imagesource="{staticresource logobitmap}"/> 

right now, have following:

<ad:dockingmanager x:name="dockmanager" >     <ad:layoutroot>     <ad:layoutpanel x:name="mylayoutpanel" orientation="horizontal">         <ad:layoutanchorablepane x:name="mylayoutanchorablepane"  dockwidth="400"/>         <ad:layoutdocumentpane x:name="mydocumentpane"/>     </ad:layoutpanel>     </ad:layoutroot> </ad:dockingmanager> 

i able find method of setting background image works use case, using simple avalondock configuration i'm not sure if work you.

this set image entire dock control, not able find way set background @ level lower this.

<xcad:dockingmanager x:name="dockingmanager">         <xcad:dockingmanager.background>             <imagebrush imagesource="/resources/images/mdibackgroundimage.png"/>         </xcad:dockingmanager.background>         <xcad:layoutroot>             <xcad:layoutpanel orientation="horizontal">                 <xcad:layoutdocumentpanegroup>                     <xcad:layoutdocumentpane >                         <xcad:layoutdocument>                             <views:myform></views:myform>                         </xcad:layoutdocument>                     </xcad:layoutdocumentpane>                 </xcad:layoutdocumentpanegroup>                                 </xcad:layoutpanel>         </xcad:layoutroot>     </xcad:dockingmanager> 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -