Wednesday, 15 May 2013

.net - retrieving binded text from xaml in c# -



.net - retrieving binded text from xaml in c# -

i have xaml code :

<listbox x:name="secondlistbox" margin="0,0,-12,0" > <listbox.itemtemplate> <datatemplate> <stackpanel margin="0,0,0,17" width="432" height="78"> <toolkit:toggleswitch name="toggle3" header="{binding name}" height="120" horizontalalignment="left" margin="35,20,0,0" verticalalignment="center" width="440" content="{binding descrip}" checked="toggleswitch1_checked" unchecked="toggleswitch1_unchecked" tap="toggleswitch1_tap"/> </stackpanel> </datatemplate> </listbox.itemtemplate> </listbox> </controls:pivotitem>

now want retrieve toggleswitch(toggle 3)'s header text in c# code. how can done?

when create info binding did, should automatically update variable bound to, name

c# .net xaml windows-phone-7.1

No comments:

Post a Comment