Click here to Skip to main content
15,918,742 members
Home / Discussions / WPF
   

WPF

 
QuestionHow to make groupbox invisble on select of a radiobutton Pin
Krishna Aditya19-Jul-09 20:34
Krishna Aditya19-Jul-09 20:34 
Hi,

I am doing an Windows Application using XAML ,WPF in C#.

I have 2 radio buttons called "WriteData" and "ReadData".

when writeData is selected, I need groupbox with a textbox and browse button inside it to be displayed at a particular location, (this i have already designed in UI..)

<GroupBox Header="Browse Data" Name="grpBrowseData" Height="78" VerticalAlignment="Top" HorizontalAlignment="Left" Width="1030">

<Grid Name="grdBrowse" Height="60" Width="1030">

<Button x:Name="btnBrowseButton" Margin="0,7.5,45,20" Content="Browse" Click="BrowseButton_Click" HorizontalAlignment="Right" Width="111" />

<TextBox x:Name="txtBxBrowseTB" Margin="46,13.993,185,17.5" Text="TextBox" TextWrapping="Wrap" TextChanged="BrowseTB_TextChanged" ></TextBox>

<Label HorizontalAlignment="Left" Margin="-1.25,8.75,0,15" Name="label1" Width="47.5" FontSize="13" VerticalContentAlignment="Center" HorizontalContentAlignment="Center">Path:</Label>

</Grid>

Now, if I select "ReadData" radio button, a combo box should be visible in the SAME LOCATION where the above groupbox is displayed, the xaml code for this



<GroupBox Header="Select the Project" Name="grpSelectProject" Height="78" VerticalAlignment="Top" HorizontalAlignment="Left" Width="1030" Visibility="Visible" Margin="-1030,0,0,0">

<Grid Name="grdSelectProject" Height="60" Width="1030">

<Label HorizontalAlignment="Left" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="0,11.662,0,20.825" Width="95.103">Select the Project</Label>

<ComboBox Margin="119.952,13.994,493.969,16.66"></ComboBox>

</Grid>

</GroupBox>

so, how do I make only one visible as per the radio button selected.

In the ReadData_click event i tried to make other groupbox invisble. but I wasnt able to do that. please help me.

Thanks

Ramm
AnswerRe: How to make groupbox invisble on select of a radiobutton Pin
Kunal Chowdhury «IN»19-Jul-09 21:00
professionalKunal Chowdhury «IN»19-Jul-09 21:00 
AnswerRe: How to make groupbox invisble on select of a radiobutton Pin
#realJSOP20-Jul-09 0:23
professional#realJSOP20-Jul-09 0:23 
QuestionWPF: Is there any Flip Book Control available? Pin
Kunal Chowdhury «IN»19-Jul-09 20:08
professionalKunal Chowdhury «IN»19-Jul-09 20:08 
AnswerRe: WPF: Is there any Flip Book Control available? Pin
Pete O'Hanlon19-Jul-09 22:18
mvePete O'Hanlon19-Jul-09 22:18 
QuestionDeriving new class [modified] Pin
#realJSOP18-Jul-09 2:08
professional#realJSOP18-Jul-09 2:08 
QuestionWPF Call to WCF Service - Sessions? Pin
jeremyadell17-Jul-09 14:47
jeremyadell17-Jul-09 14:47 
AnswerRe: WPF Call to WCF Service - Sessions? Pin
Mark Salsbery18-Jul-09 7:09
Mark Salsbery18-Jul-09 7:09 
GeneralRe: WPF Call to WCF Service - Sessions? Pin
jeremyadell18-Jul-09 9:57
jeremyadell18-Jul-09 9:57 
GeneralRe: WPF Call to WCF Service - Sessions? Pin
Mark Salsbery18-Jul-09 16:59
Mark Salsbery18-Jul-09 16:59 
GeneralRe: WPF Call to WCF Service - Sessions? Pin
jeremyadell18-Jul-09 17:28
jeremyadell18-Jul-09 17:28 
QuestionHow to programmatically add links to quick launch bar and start menu under WPF Pin
fjparisIII17-Jul-09 13:43
fjparisIII17-Jul-09 13:43 
AnswerRe: How to programmatically add links to quick launch bar and start menu under WPF Pin
Christian Graus17-Jul-09 16:17
protectorChristian Graus17-Jul-09 16:17 
GeneralRe: How to programmatically add links to quick launch bar and start menu under WPF Pin
fjparisIII17-Jul-09 16:34
fjparisIII17-Jul-09 16:34 
GeneralRe: How to programmatically add links to quick launch bar and start menu under WPF Pin
Christian Graus17-Jul-09 16:45
protectorChristian Graus17-Jul-09 16:45 
GeneralRe: How to programmatically add links to quick launch bar and start menu under WPF Pin
fjparisIII17-Jul-09 16:56
fjparisIII17-Jul-09 16:56 
GeneralRe: How to programmatically add links to quick launch bar and start menu under WPF (SOLVED) Pin
fjparisIII18-Jul-09 10:49
fjparisIII18-Jul-09 10:49 
GeneralRe: How to programmatically add links to quick launch bar and start menu under WPF (NOT SOLVED after all, sigh...) Pin
fjparisIII18-Jul-09 12:26
fjparisIII18-Jul-09 12:26 
GeneralRe: How to programmatically add links to quick launch bar and start menu under WPF (SOLVED) Pin
samip shrestha29-Nov-09 18:59
samip shrestha29-Nov-09 18:59 
GeneralRe: How to programmatically add links to quick launch bar and start menu under WPF (SOLVED) Pin
fjparisIII30-Nov-09 12:49
fjparisIII30-Nov-09 12:49 
AnswerRe: How to programmatically add links to quick launch bar and start menu under WPF Pin
Mark Salsbery19-Jul-09 8:31
Mark Salsbery19-Jul-09 8:31 
GeneralRe: How to programmatically add links to quick launch bar and start menu under WPF Pin
fjparisIII19-Jul-09 13:25
fjparisIII19-Jul-09 13:25 
GeneralRe: How to programmatically add links to quick launch bar and start menu under WPF Pin
fjparisIII19-Jul-09 13:29
fjparisIII19-Jul-09 13:29 
QuestionTwo-way binding problem Pin
Ravadre17-Jul-09 9:42
Ravadre17-Jul-09 9:42 
AnswerRe: Two-way binding problem Pin
User 27100918-Jul-09 5:21
User 27100918-Jul-09 5:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.