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

2 posts, 0 answers
  1. liu
    liu avatar
    3 posts
    Member since:
    Apr 2009

    Posted 08 May 2010 Link to this post

     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;

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

                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?

  2. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 12 May 2010 Link to this post

    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.
Back to Top