This is a migrated thread and some comments may be shown as answers.

Cannot access the Control

0 Answers 30 Views
CoverFlow
This is a migrated thread and some comments may be shown as answers.
Vuyiswa
Top achievements
Rank 2
Vuyiswa asked on 18 Jun 2011, 09:23 PM
I have a coverflow defined like this

 
<telerik:RadCoverFlow x:Name="cover" SelectionChanged="cover_SelectionChanged" ReflectionHeight="0.2">
                <telerik:RadCoverFlow.ItemTemplate>
                    <DataTemplate>
                        <Grid telerik:RadCoverFlow.EnableLoadNotification="True"  Width="150" Height="Auto">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition />
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition />
                            </Grid.ColumnDefinitions>
                          
                            <StackPanel>
                                <TextBlock Text="{Binding sSchoolName}" Grid.Row="0" Grid.Column="1" />
                                <Image Source="{Binding sPhoto, Converter={StaticResource FormatConverter}}" />
                                <TextBox x:Name="txtamount"  TextChanged="txtamount_TextChanged"    BorderBrush="Black" />
                                <Button x:Name="btnPaynow" Click="btnPaynow_Click" Content="PayNow" />
                            </StackPanel>
                        </Grid>
                    </DataTemplate>
                </telerik:RadCoverFlow.ItemTemplate>
            </telerik:RadCoverFlow>

as you can see there is a textbox named "txtamount" , i am trying to access this textbox value in C#, it seams like the textbox is not available or visible

string Amount = txtamount.Text;


Thanks

No answers yet. Maybe you can help?

Tags
CoverFlow
Asked by
Vuyiswa
Top achievements
Rank 2
Share this question
or