Set BackGround For RadDock

1 posts, 0 answers
  1. Mahvash
    Mahvash avatar
    3 posts
    Member since:
    Aug 2013

    Posted 18 Aug 2013 Link to this post

    I have a MainMdi form and a raddock in it, i add a  DocumentContainer to RadDock like this:
    Me.RadDockMain.MainDocumentContainer = Me.DocumentContainer1
    I want to set backgrouud image for my raddock that display when no child form is open..
    i use this code, but when i execute my application in 17" monitors or smaller my image didn't show in stretch mode and lose some part of my image.
    Dim im As New ImagePrimitive
    im.ImageLayout = ImageLayout.Stretch
    im.StretchHorizontally = True
    im.StretchVertically = True
    im.Image = My.Resources.pic_Main_Image
    DocumentContainer1.SplitPanelElement.StretchHorizontally = True
    DocumentContainer1.SplitPanelElement.StretchVertically = True

    Please help me
Back to Top