Hi Guys,
Even I felt my explanation is confusing. I will provide the xaml code..
I have added all the 4 controls which are stacked vertically.. for rdbtn 1, control 3 shouldnt be available and the control 2 should stretched to down (its upperlimit remains same.. but lower limit should increment) and control 4 (upper limit should stretch up and lower limit remains same.. ) I mean on click of rdbtn 1.. only control 1, 3 and 4 should be seen and occupying the entire space...
Hope I made it clear now :)
Xaml Code :
<StackPanel Orientation="Vertical" Name="stkPnlParent" Background="OldLace" >
<Grid >
<Grid.ColumnDefinitions>
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="60"/>
<RowDefinition Height="220"/>
<RowDefinition Height="150"/>
<RowDefinition Height="30"/>
<RowDefinition Height="100"/>
<RowDefinition Height="62"/>
</Grid.RowDefinitions>
Control 1
<GroupBox Grid.Column="0" Grid.Row="0" Header="Browse Data" Name="grpBxBrowseData" >
<StackPanel Orientation="Horizontal">
<Label Name="lblBrowseData" Content="Path :" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Width="60" Height="30" ></Label>
<TextBox Name="txtBxBrowse" Text="Please enter the path to Browse" HorizontalAlignment="Center" VerticalAlignment="Center" Width="800" Height="30" ></TextBox>
<Button Name="btnBrowseButton" ToolTip="Browse for Path" HorizontalAlignment="Right" VerticalAlignment="Center" Width="90" Height="30" Margin="30,0,0,0">Browse</Button>
</StackPanel>
</GroupBox>
Control 2
<TabControl Grid.Column="0" Grid.Row="1" Name="tbCtrlLaunchInfo" VerticalAlignment="Top" >
<TabItem Name ="tbLaunchInfo" HorizontalAlignment="Left" >
<TabItem.Header>
<StackPanel Orientation="Horizontal">
<Label>Launch Informations</Label>
</StackPanel>
</TabItem.Header>
<!--<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Width="Auto">-->
<Grid Name="grdLaunchDetails" Height="200" Width="Auto" HorizontalAlignment="Left" VerticalAlignment="Top">
<Grid >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200"></ColumnDefinition>
<ColumnDefinition Width="660"></ColumnDefinition>
<ColumnDefinition Width="178"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
</Grid.RowDefinitions>
</Grid>
<ListView Name="lstviewOfOwners" HorizontalAlignment="Left" >
<ListView.View >
<GridView >
<GridViewColumn Header="WorkBook" Width="200" DisplayMemberBinding="{Binding AnyWorkbook}" />
<GridViewColumn Header="Description" Width="660" DisplayMemberBinding="{Binding DescName}" />
<GridViewColumn Header="Date" Width="178" DisplayMemberBinding="{Binding WorkbookDate}" />
</GridView>
</ListView.View>
</ListView>
</Grid>
<!--</ScrollViewer>-->
</TabItem>
</TabControl>
Control 3
<Border Grid.Column="0" Grid.Row="2" Name="brdrTWB" BorderThickness="3" BorderBrush="Brown">
<StackPanel Name="stkPnlCheckBoxes" Orientation="Vertical">
<TextBlock Name="txtBlkChekBox" Background="LightBlue" Height="25" Text="Team Work Book" ></TextBlock>
<CheckBox HorizontalAlignment="Left" Width="90" Height="25" Margin="10,0,0,5" >Select All</CheckBox>
<StackPanel Orientation="Horizontal" Height="20" >
<CheckBox Margin="10,0,0,0" Height="13.34" HorizontalAlignment="Left" Width="120" >Team Relative Effort</CheckBox>
</StackPanel>
</StackPanel>
</Border>
Control 4
<StackPanel Name="stkPnlLogWindow" Grid.Column="0" Grid.Row="4">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<TextBlock Grid.Column="0" Grid.Row="0" Height="25" Background="Honeydew">Team Work Book</TextBlock>
<ListView Grid.Column="0" Grid.Row="1" Name="lstviewLogWindow" Height="75" >
<ListView.View >
<GridView >
<GridViewColumn Header="Date/Time" Width="200" DisplayMemberBinding="{Binding LogWBDateTime}" />
<GridViewColumn Header="Log Details" Width="850" DisplayMemberBinding="{Binding LogWBDetails}" />
</GridView>
</ListView.View>
</ListView>
</Grid>
</StackPanel> </Grid>