Click here to Skip to main content
11,637,176 members (60,669 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# WPF
Hi ,

I have used WPF With C# , I have designed form with Wnd Grid, add 2 coloumn Defination ,

1st Coloumn definition I have add treeView
2nd Coloumn Definition I have add one Client_Grid grid Control

I have add the background image to the Client_Grid and here is problem to me that output window not able to show full image , as per changing status of window ,

Please Guide me for this,
     <grid x:name="GrdMain" scrollviewer.cancontentscroll="True" scrollviewer.horizontalscrollbarvisibility="Auto" margin="2,0" uselayoutrounding="True" xmlns:x="#unknown">
            <rowdefinition minheight="63" height="Auto" />
            <rowdefinition />
            <rowdefinition height="Auto" />
            <rowdefinition minheight="46" height="Auto" />
            <columndefinition allowdrop="True">
                    <commandbinding />
       &lt;!--for WndGrd --&gt;  &lt;!--with 2 coloumn --&gt;
        <grid x:name="WndGrd" removed="#FFE8EEF5" grid.row="1">
                <columndefinition x:name="WndGrd_col1" minwidth="100" width="Auto" />
                <columndefinition x:name="WndGrd_col2" minwidth="5" width="Auto" />
                <columndefinition x:name="WndGrd_col3" minwidth="158" width="Auto" />
            <treeview x:name="TreeView1" grid.column="0" margin="0,0,1,0" minwidth="150" scrollviewer.cancontentscroll="True" grid.rowspan="{Binding ElementName=WndGrd, Mode=OneWay}" uselayoutrounding="True" borderthickness="1">
 <treeviewitem x:name="treeViewItem" header="Project Code">                         <treeviewitem header="Node1" />
                        <treeviewitem header="Node2" />
                <gridsplitter grid.column="1" horizontalalignment="Left" margin="0,0,0,0" width="5" removed="#FFDE1010" />
            <grid x:name="Client_Grid" scrollviewer.horizontalscrollbarvisibility="Auto" grid.column="2" margin="0" scrollviewer.verticalscrollbarvisibility="Auto" width="Auto" uselayoutrounding="True" minwidth="1000">
                        &lt;ImageBrush ImageSource="Resources/client.jpg" Stretch="UniformToFill"/&gt;
                    &lt;!--<border x:name="Client_Border" borderbrush="Black" borderthickness="2" cornerradius="5" width="Auto" grid.column="2">
                            &lt;ImageBrush ImageSource="Resources/Client.jpg"/&gt;
                    &lt;ImageBrush ImageSource="Resources/Client.jpg"/&gt;
        <stackpanel grid.row="3" height="20" margin="2,3,0,23" removed="{DynamicResource {x:Static SystemColors.ActiveBorderBrushKey}}" />
        <statusbar grid.row="3" uselayoutrounding="True" margin="0,23,0,0" overridesdefaultstyle="False">
        <toolbartray height="20" margin="0,27,0,0" verticalalignment="Top" removed="#FFF1D3C7" scrollviewer.horizontalscrollbarvisibility="Auto">
           <toolbar horizontalalignment="Left" height="22" verticalalignment="Top" width="140" margin="135,0,-135,0" />
            <stackpanel height="15" grid.row="0" margin="0,48,0,0" verticalalignment="Top" scrollviewer.horizontalscrollbarvisibility="Auto" uselayoutrounding="True">
                    <solidcolorbrush color="{DynamicResource DisabledBorderLightColor}" />
        <toolbar horizontalalignment="Left" height="22" margin="0,25,0,0" verticalalignment="Top" width="140" />
Posted 5-Oct-12 22:57pm
Edited 6-Oct-12 20:55pm
(no name)502K

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 295
1 295
2 stibee 288
3 himanshu agarwal 184
4 Sergey Alexandrovich Kryukov 184
0 OriginalGriff 9,031
1 Sergey Alexandrovich Kryukov 8,513
2 Mika Wendelius 6,922
3 F-ES Sitecore 2,388
4 Suvendu Shekhar Giri 2,320

Advertise | Privacy | Mobile
Web01 | 2.8.150728.1 | Last Updated 7 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100