You have to modify the Header and Content. You can create an instance of your own UserControl and pass it as Content.

Sincerely yours,
Panayot
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Xaria D

I think I will need to create a splitContainer on the fly. I have a few graphics in my application. Upon first click of each graphic a new split container should be created, if for particular graphic a split container is created then everytime the same should be displayed..

Pana

If you send me a screenshot of the dock with the things you need drawn in paint over it I will have a better idea how to help you.

You can add a SplitContainer with RadPanes in the floating RadPaneGroup and in each RadPane you can set the Content to be an Image.

Regards,
Panayot
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Xaria D

Pana

I have created a gallery example using dock and MVVM. You can see how custom RadPanes are defined and reused. I believe it is close to the solution you would like to create.

Greetings,
Panayot
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Xaria D

It is quite close, but I don't understand how to achieve the following
IF I click on Image1 then the Radpane should be created only on first click on subsequent clicks it should show the same RadPane. IN your example every time I click on Image1 a new RadPane is created.

Also you have binded the ImageBrush to the Image in the MainWindow, but my Image will be dynamic. So how can I reference the Image element of RadImageDetailsPane and update the image?

Pana

The idea of a the view model is to separate the data from the controls. The RequestDetails command fires the DetailsRequested event on the Image. The MainPage listens for these events and opens RadPanes with details for the images. You can pretty much put each new open RadPane in a dictionary with the image data as key and if an image tries to open its details while it still exist in the dictionary you can prevent the opening of the new RadPane. Also when you close a RadPane you can clear it from the dictionary so a new one could be created if the image is clicked in future. All of this is an application logic and it has nothing to do with the dock itself.

Sincerely yours,
Panayot
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Then, in the code-behind, instead of creating a new RadPaneGroup, and adding it to this.Dock (the instance of RadDocking, above), I used the named radPaneGroup. I then added my new RadImageDetailsPane to it, in img_DetailsRequested(), and they displayed fine.

Seems to me that if you want to add a new RadPaneGroup for each image, you'd need to add it to the DocumentHost or perhaps to the RadSplitContainer - adding it directly to the RadDocking doesn't seem to work.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.