Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
Refer to controls on DataTemplate of XamTilesControl
posted

This is probably a generic WPF question but I want to refer to a checkbox control in code (vb) .  The control is on the the maximized template of the XamTilesControl.

 

 

<!--Start of the maximized template-->
<igTiles:XamTilesControl.ItemTemplateMaximized>
<DataTemplate>
<StackPanel Orientation="Horizontal">
...
<CheckBox Name="cbGetUsingService" Grid.Row="0" Grid.Column="0" IsChecked="{Binding SolutionIsGet, Mode=TwoWay}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
In Code:
Public Sub GoButton()
      Dim bGet as Boolean = somemagicfunction("cbGetUsingService").IsChecked
End Sub

 

As a workaround I added the property to the datasource and bound it.  Now in code I can just refer to the datasource.  But, how would you do it with an unbound control?

Thanks.

Parents
No Data
Reply Children
No Data