This is a migrated thread and some comments may be shown as answers.

RadPane.Content i need use canvas,how do i resolve.

1 Answer 33 Views
Docking
This is a migrated thread and some comments may be shown as answers.
liu
Top achievements
Rank 1
liu asked on 08 May 2010, 08:03 PM

Hi,
 i have this sample code:
  RadPane formRadPane = new RadPane() { Header = "Not Document Pane", CanDockInDocumentHost = false };
            Canvas cReference = new Canvas();
            Image imgBg = new Image(new uri("Images/0.png"));
            imgBg.Width = 2000;
            imgBg.Height = 1980;
            cReference.childer.Add(imgBg);

            TextBlock txtBlock = new TextBlock();
            txtBlock.Text = "This Pane Cannot be docked in to document host";
            Canvas.SetLeft(txtBlock, 20);
            Canvas.SetTop(txtBlock, 20);
            cReference.childer.Add(txtBlock);

            FormRadPane.Content = cReference; 

when program run , the cReference's content Uncontrolled by formRadPane .that means cReference's content exceeds window area B.
How do I resolve this problem?

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 12 May 2010, 03:06 PM
Hi liu,

 This is the way the Canvas panel acts - it doesn't clip the content that is going outside it. In order to resolve this problem you might consider using other kind of panel different from Canvas.

Hope this helps!

Sincerely yours,
Miroslav Nedyalkov
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.
Tags
Docking
Asked by
liu
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or