Click here to Skip to main content
15,913,937 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: silverlight4 tools for visual studio 2010 fails with the following error… HELP! Pin
Kunal Chowdhury «IN»12-Jul-10 19:36
professionalKunal Chowdhury «IN»12-Jul-10 19:36 
GeneralRe: silverlight4 tools for visual studio 2010 fails with the following error… HELP! Pin
Tiju John16-Jul-10 5:36
Tiju John16-Jul-10 5:36 
QuestionWant to learn Silverlight from scratch in ASP.Net Pin
Amit Spadez11-Jul-10 21:38
professionalAmit Spadez11-Jul-10 21:38 
AnswerRe: Want to learn Silverlight from scratch in ASP.Net Pin
Abhinav S11-Jul-10 22:06
Abhinav S11-Jul-10 22:06 
GeneralRe: Want to learn Silverlight from scratch in ASP.Net Pin
Amit Spadez11-Jul-10 22:13
professionalAmit Spadez11-Jul-10 22:13 
AnswerRe: Want to learn Silverlight from scratch in ASP.Net Pin
Abhinav S11-Jul-10 23:08
Abhinav S11-Jul-10 23:08 
AnswerRe: Want to learn Silverlight from scratch in ASP.Net Pin
Kunal Chowdhury «IN»12-Jul-10 17:23
professionalKunal Chowdhury «IN»12-Jul-10 17:23 
QuestionComboBox Items (Binding?) Pin
seblake11-Jul-10 13:31
seblake11-Jul-10 13:31 
Very new to WPF. Trying to keep things simple. Some of the posts I read were a bit confusing - they assume I know something... Wink

I have a ComboBox that works well; display, etc.

Depending on the item selected from the ComboBox (i.e., 3, 7, or 11), I want the respective data displayed in their own text boxes.

The data:
3, Text1, Nbr1
7, Text2, Nbr2
11, Text3, Nbr3
etc.

<pre> <ComboBox Grid.Row="10" Grid.ColumnSpan="2" Width="160" Height="25" Margin="0,0,0,0"
HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
FontSize="12" FontWeight="Bold" IsReadOnly="True"
BorderThickness="2" BorderBrush="Black"
Name="cboNewOption" Background="#FFFFB2" HorizontalAlignment="Right"
<ComboBoxItem>3</ComboBoxItem>
<ComboBoxItem>7</ComboBoxItem>
<ComboBoxItem>11</ComboBoxItem>
<ComboBoxItem>13</ComboBoxItem>
</ComboBox>

<TextBox Grid.Row="10" Grid.Column="3" Grid.ColumnSpan="2" Width="100" Margin="40,0,10,0"
HorizontalAlignment="Left" VerticalAlignment="Center"
HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
FontSize="12" FontWeight="Bold" IsReadOnly="True"
Name="txtOne" Background="#FFFFB2" ></TextBox>

<TextBox Grid.Row="10" Grid.Column="3" Grid.ColumnSpan="2" Width="100" Margin="40,0,10,0"
HorizontalAlignment="Left" VerticalAlignment="Center"
HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
FontSize="12" FontWeight="Bold" IsReadOnly="True"
Name="txtTwo" Background="#FFFFB2" ></TextBox>

</pre>

How do I set up the data/routines so it displays like I want? I would appreciate whatever you care to share!!

Thank you, in advance!

Steve
AnswerRe: ComboBox Items (Binding?) Pin
Jammer11-Jul-10 22:43
Jammer11-Jul-10 22:43 
GeneralRe: ComboBox Items (Binding?) Pin
seblake13-Jul-10 16:58
seblake13-Jul-10 16:58 
GeneralRe: ComboBox Items (Binding?) Pin
Jammer14-Jul-10 1:36
Jammer14-Jul-10 1:36 
GeneralRe: ComboBox Items (Binding?) Pin
seblake14-Jul-10 8:03
seblake14-Jul-10 8:03 
GeneralRe: ComboBox Items (Binding?) Pin
Jammer14-Jul-10 23:37
Jammer14-Jul-10 23:37 
QuestionToggleButton in datagrid Pin
Chris Hotchkiss11-Jul-10 6:28
Chris Hotchkiss11-Jul-10 6:28 
AnswerRe: ToggleButton in datagrid Pin
Jammer11-Jul-10 22:47
Jammer11-Jul-10 22:47 
AnswerRe: ToggleButton in datagrid Pin
sillvor12-Jul-10 11:56
sillvor12-Jul-10 11:56 
QuestionTab index not working properly with user controls Pin
dashingsidds10-Jul-10 2:37
dashingsidds10-Jul-10 2:37 
QuestionNo connection could be made because the target machine actively refused it Pin
Venkadeshbabu9-Jul-10 2:08
Venkadeshbabu9-Jul-10 2:08 
AnswerRe: No connection could be made because the target machine actively refused it Pin
Pete O'Hanlon9-Jul-10 2:34
mvePete O'Hanlon9-Jul-10 2:34 
AnswerRe: File Upload in Silver Light Pin
Abhinav S9-Jul-10 17:47
Abhinav S9-Jul-10 17:47 
QuestionWorking Out Which Controls are Within Points Pin
Jammer9-Jul-10 0:23
Jammer9-Jul-10 0:23 
AnswerRe: Working Out Which Controls are Within Points Pin
Pete O'Hanlon9-Jul-10 1:54
mvePete O'Hanlon9-Jul-10 1:54 
GeneralRe: Working Out Which Controls are Within Points Pin
Jammer9-Jul-10 2:39
Jammer9-Jul-10 2:39 
GeneralRe: Working Out Which Controls are Within Points Pin
Jammer9-Jul-10 3:37
Jammer9-Jul-10 3:37 
GeneralRe: Working Out Which Controls are Within Points Pin
Pete O'Hanlon9-Jul-10 3:50
mvePete O'Hanlon9-Jul-10 3:50 

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.