I have a Silverlight Accordion with the following code:
<Accordion>
<Accordion.HeaderTemplate>
<DataTemplate>
<WrapPanel>
<Label Content="{Binding Title}" />
</WrapPanel>
</DataTemplate>
</Accordion.HeaderTemplate>
<Accordion.ContentTemplate>
<DataTemplate>
<StackPanel>
<Textbox Text="{Binding Dx}" isReadOnly="true" />
<Textbox Text="{Binding inter}" isReadOnly="true" />
<Button Content="Edit" Height="52" Width="193" onClick="btn_Click" />
</StackPanel>
</DataTemplate>
</Accordion.ContentTemplate>
</Accordion>
I am trying to set the databound textboxes to isReadOnly=false, and the Content of the button to
"Save" on the click of the button. However, with multiple items
in the Accordion, I only want to set the textboxes in the selected accordion item to
isReadOnly=true.
How can I do this??? Any help would be greatly appreciated!!!
--
--------------------------------- --- -- -
Posted with NewsLeecher v4.0 Beta 4
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -