AutoSize DockingPane/image inside

1 posts, 0 answers
  1. Tobias
    Tobias avatar
    1 posts
    Member since:
    Apr 2012

    Posted 19 Apr 2012 Link to this post


    i'm quite new to WPF. I have this problem.

    I have an image in a pane, an the image automatically changes its size. but i don't want that. i want to enlarge the pane, so you can see the complete image (even if it doesn't fit in the pane, i will use scrool bars for horizontal and vertical ..)..

    My code looks like this:

                    <telerik:RadSplitContainer Margin="0" telerik:DockingPanel.InitialSize="8,2">
                    <telerik:RadPaneGroup Name="paneGrpDocuments" TabStripPlacement="Top">
                    <telerik:RadDocumentPane Header="StartDokument" Name="Start">
                                <Image HorizontalAlignment="Left" VerticalAlignment="Top"  RenderOptions.EdgeMode="Aliased" Source= "/Images/StartImage_stretched2.png"></Image>
                            <telerik:RadDocumentPane Header="Doc 1" Name="doc1" />
                            <telerik:RadDocumentPane Header="Doc 2" Name="doc2" />
Back to Top