Click here to Skip to main content
Rate this: bad
good
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">
        <grid.rowdefinitions>
            <rowdefinition minheight="63" height="Auto" />
            <rowdefinition />
            <rowdefinition height="Auto" />
            <rowdefinition minheight="46" height="Auto" />
        </grid.rowdefinitions>
        <grid.columndefinitions>
            <columndefinition allowdrop="True">
                <columndefinition.commandbindings>
                    <commandbinding />
                </columndefinition.commandbindings>
            </columndefinition>
        </grid.columndefinitions>
       &lt;!--for WndGrd --&gt;  &lt;!--with 2 coloumn --&gt;
        <grid x:name="WndGrd" removed="#FFE8EEF5" grid.row="1">
            <grid.columndefinitions>
                <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" />
            </grid.columndefinitions>
            <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" />
                       </treeviewitem>
                </treeview>
                <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">
                    <grid.background>
                        &lt;ImageBrush ImageSource="Resources/client.jpg" Stretch="UniformToFill"/&gt;
                    </grid.background>
                    &lt;!--<border x:name="Client_Border" borderbrush="Black" borderthickness="2" cornerradius="5" width="Auto" grid.column="2">
                        <border.background>
                            &lt;ImageBrush ImageSource="Resources/Client.jpg"/&gt;
                        </border.background>
                    </border>--&gt;
                    &lt;!--<grid.background>
                    &lt;ImageBrush ImageSource="Resources/Client.jpg"/&gt;
                </grid.background>--&gt;
               
            </grid>
        </grid>
        
        <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">
          Ready
        </statusbar>
        <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" />
            </toolbartray>
            <stackpanel height="15" grid.row="0" margin="0,48,0,0" verticalalignment="Top" scrollviewer.horizontalscrollbarvisibility="Auto" uselayoutrounding="True">
                  <stackpanel.background>
                    <solidcolorbrush color="{DynamicResource DisabledBorderLightColor}" />
                  </stackpanel.background>
            </stackpanel>
        </grid>
        <toolbar horizontalalignment="Left" height="22" margin="0,25,0,0" verticalalignment="Top" width="140" />
Posted 5-Oct-12 23:57pm
Mogya1.6K
Edited 6-Oct-12 21:55pm
(no name)498.6K
v3

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

  Print Answers RSS
0 OriginalGriff 515
1 Maciej Los 340
2 Richard MacCutchan 265
3 BillWoodruff 225
4 Mathew Soji 155
0 OriginalGriff 8,804
1 Sergey Alexandrovich Kryukov 7,457
2 DamithSL 5,689
3 Maciej Los 5,279
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web01 | 2.8.1411028.1 | Last Updated 7 Oct 2012
Copyright © CodeProject, 1999-2014
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