DockingManager.BackgroundImage disappeared

6 posts, 0 answers
  1. Phi
    Phi avatar
    47 posts
    Member since:
    Dec 2008

    Posted 04 Dec 2008 Link to this post

    In my main MDI RadForm, I added a DockingManager. To enhance the application's appearance, I added a background image to the DockingManager via the BackgroundImage property. So far so good, the background image showed up fine.

    Then I created a DocumentPane and attached to DockingManager via the SetDocument() method (via code). Also this is working fine. However when I clicked on the close button on the DocumentPane, the background image disappears. I looked at the BackgroundImage property and found the Image still there, just not being drawn or being covered by something else.

    I tried several methods such as Refresh, Update, Invalidate on the DockingManager but got no result.

    Any idea?

    Thanks,

    Phi
  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 05 Dec 2008 Link to this post

    Hello Phi,

    Please review your post on the BackgroundImage for information on this.

     
    Sincerely yours,
    Julian Benkov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Phi
    Phi avatar
    47 posts
    Member since:
    Dec 2008

    Posted 06 Dec 2008 Link to this post

    Are you talking about the DockPanel.DefaultPresenter post? I cannot find a similar property for the DockingManager.

    Phi
  5. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 09 Dec 2008 Link to this post

    Hi Phi,

    This property is only used in all IDockable window objects like DockPanel, DocumentPane and etc. The DockingManager is a host container for all IDockable windows.

    I hope this was helpful. If you have additional questions, please contact us.

    Greetings,
    Julian Benkov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Phi
    Phi avatar
    47 posts
    Member since:
    Dec 2008

    Posted 09 Dec 2008 Link to this post

    But my problem is with the DockManager, not IDockable object.

    Like I stated before, I added a background image to the DockManager. There is no problem with this. The image showed up fine with no IDockable windows. Then I created a new DocumentPanel object and docked with the DockManager. This window covers the entire DockManager's background image. However, when I closed the DocumentPanel window, the background image of the DockManager does not get redraw. I got a blank space instead of the background picture. The image is still associated with the DockManager but it does not get shown.

    Phi
  7. Phi
    Phi avatar
    47 posts
    Member since:
    Dec 2008

    Posted 11 Dec 2008 Link to this post

    In case anybody else may run into similar problem, here is the solution given to me in the support ticket:

    As to the question at hand, you can use the following code:

    dockingManager1.TdiContainerVisible = true
    dockingManager1.TdiContainerVisible = false

    The first line is currently a workaround - in the next release the only needed operation will be to set the TdiContainerVisible property to false.


    Phi



Back to Top
UI for WinForms is Visual Studio 2017 Ready