Posted 17 years ago
by Joe Lozina
Hi,
I am trying to use the Programmatic Reuse functionality in the example given and I am wondering how do I get access to controls(ie. text) inside the ItemEntryPage if i would like to change the visability.
I am trying to hide the following textbox
I tried this but it returns a null reference
Thanks
Joe
I am trying to use the Programmatic Reuse functionality in the example given and I am wondering how do I get access to controls(ie. text) inside the ItemEntryPage if i would like to change the visability.
I am trying to hide the following textbox
<TextBox Grid.Row="2" Grid.Column="1" Width="100" Margin="0,7,0,0" x:Name="description" Text="{Binding Description}"></TextBox>
TextBox description= (TextBox)this.FindName("description");
description.Visibility = System.Windows.Visibility.Hidden;
Thanks
Joe