Click here to Skip to main content
15,887,338 members
Home / Discussions / WPF
   

WPF

 
QuestionHow can i add a User Control to another User Control?? Pin
urooj_mahmood17-Mar-10 3:34
urooj_mahmood17-Mar-10 3:34 
AnswerRe: How can i add a User Control to another User Control?? Pin
Abhinav S18-Mar-10 0:30
Abhinav S18-Mar-10 0:30 
AnswerRe: How can i add a User Control to another User Control?? Pin
Kunal Chowdhury «IN»23-Mar-10 7:31
professionalKunal Chowdhury «IN»23-Mar-10 7:31 
QuestionSilverlight map control localized to india Pin
p_mnj17-Mar-10 2:59
p_mnj17-Mar-10 2:59 
Questionhow do use multiple grid in UserControl??? Pin
urooj_mahmood16-Mar-10 0:47
urooj_mahmood16-Mar-10 0:47 
AnswerRe: how do use multiple grid in UserControl??? Pin
Abhinav S16-Mar-10 0:58
Abhinav S16-Mar-10 0:58 
AnswerRe: how do use multiple grid in UserControl??? Pin
Pete O'Hanlon16-Mar-10 1:53
mvePete O'Hanlon16-Mar-10 1:53 
QuestionGet binding of control in datagridtemplatecolumn Pin
klauswiesel15-Mar-10 22:51
klauswiesel15-Mar-10 22:51 
Hi
I have a control inside a datagridtemplatecolumn (in the celleditingtemplate to be accurate, please find the bold line in the xaml below)

As I have multiple grids with multiple columns of this kind I search for a generic way to get the TextBox's binding (the property name "ItemName" ín this special case) when I have a handle to the template column in code.

Alternatively I could get the property from the column x:Name, but I did not manage this either

Any help would be appreciated...

Regards
Klaus
<dg:DataGridTemplateColumn x:Name="dbcItemName" Header="{Loc C_ItemName}" HeaderStyle="{StaticResource styFilterTextBoxColumn}">
<dg:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding Path=ItemName, Mode=OneWay}"/>
</DataTemplate>
</dg:DataGridTemplateColumn.CellTemplate>
<dg:DataGridTemplateColumn.CellEditingTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch" >
<TextBox IsEnabled="{Binding IsNew}" MinWidth="30" Text="{Binding Path=ItemName, Mode=TwoWay}"/> <Button IsEnabled="{Binding IsNew}" x:Name="pbSelectItemName" Click="pbSelectItemName_Click" >...</Button>
</StackPanel>
</DataTemplate>
</dg:DataGridTemplateColumn.CellEditingTemplate>
</dg:DataGridTemplateColumn>
AnswerRe: Get binding of control in datagridtemplatecolumn Pin
Super Lloyd16-Mar-10 12:45
Super Lloyd16-Mar-10 12:45 
GeneralRe: Get binding of control in datagridtemplatecolumn Pin
klauswiesel16-Mar-10 22:04
klauswiesel16-Mar-10 22:04 
GeneralRe: Get binding of control in datagridtemplatecolumn Pin
Super Lloyd17-Mar-10 1:40
Super Lloyd17-Mar-10 1:40 
GeneralRe: Get binding of control in datagridtemplatecolumn Pin
klauswiesel17-Mar-10 2:12
klauswiesel17-Mar-10 2:12 
GeneralRe: Get binding of control in datagridtemplatecolumn Pin
Super Lloyd17-Mar-10 2:55
Super Lloyd17-Mar-10 2:55 
GeneralRe: Get binding of control in datagridtemplatecolumn Pin
klauswiesel17-Mar-10 3:38
klauswiesel17-Mar-10 3:38 
GeneralRe: Get binding of control in datagridtemplatecolumn Pin
Super Lloyd17-Mar-10 12:21
Super Lloyd17-Mar-10 12:21 
GeneralRe: Get binding of control in datagridtemplatecolumn Pin
klauswiesel18-Mar-10 9:39
klauswiesel18-Mar-10 9:39 
GeneralRe: Get binding of control in datagridtemplatecolumn Pin
klauswiesel22-Mar-10 0:16
klauswiesel22-Mar-10 0:16 
GeneralRe: Get binding of control in datagridtemplatecolumn Pin
Super Lloyd22-Mar-10 14:16
Super Lloyd22-Mar-10 14:16 
GeneralRe: Get binding of control in datagridtemplatecolumn Pin
klauswiesel22-Mar-10 23:13
klauswiesel22-Mar-10 23:13 
GeneralRe: Get binding of control in datagridtemplatecolumn Pin
Super Lloyd23-Mar-10 11:43
Super Lloyd23-Mar-10 11:43 
GeneralRe: Get binding of control in datagridtemplatecolumn Pin
klauswiesel23-Mar-10 11:51
klauswiesel23-Mar-10 11:51 
GeneralRe: Get binding of control in datagridtemplatecolumn Pin
Super Lloyd23-Mar-10 20:47
Super Lloyd23-Mar-10 20:47 
QuestionHelp with textbox for calculator Pin
Sonar8715-Mar-10 14:47
Sonar8715-Mar-10 14:47 
AnswerRe: Help with textbox for calculator Pin
Not Active15-Mar-10 15:45
mentorNot Active15-Mar-10 15:45 
GeneralRe: Help with textbox for calculator Pin
Sonar8716-Mar-10 13:54
Sonar8716-Mar-10 13:54 

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.