I am writing to learn how best a Frame element, defined within the DataTemplate of a HubSection, can be programmatically accessed from C# - for an upcoming Windows 8.1 project;
The new Hub App template is being utilized, with Xaml and C# contained in the below snippets - the code of "return this.FrameContent" is not recognized;
Thanks in advance for insight, guidance;
<HubSection Width="520" x:Uid="Section2Header" Header="Section 2" Loaded="HubSection_Loaded">
<DataTemplate x:Name="PodDataTemplate">
<Frame x:Name="FrameContent" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"/>
</DataTemplate>
</HubSection>
public Frame GetFrameContent()
{
return this.FrameContent;
}
robert hellestrae