Quantcast
Channel: Silverlight Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 801

Reopened Issue: Error using ExpanderView in a PivotControl [9843]

$
0
0
Hi all,
 
I'm using a ExpanderView control from toolkit (aug 11) inside of a PivotItem control. When the PivotItem containing the Expander view is not the first PivotItem node I've a NullReferenceException in Line 0 position 0. in Microsoft.Phone.Controls.ExpanderView.OnApplyTemplate() in d:\SLToolkit\PhoneToolkit\Public\Microsoft.Phone.Controls.Toolkit\ExpanderView\ExpanderView.cs:line 382
in System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)
 
but if my expanderview is in the first PivotItem node there is no error
 
e.g) here I've the error
 
<Grid x:Name="LayoutRoot" Background="Transparent">
 
<controls:Pivot >
<controls:PivotItem></controls:PivotItem>
 
<controls:PivotItem x:Name="test" Header="test" > <!--The expanderView is in the SECOND node-->
<toolkit:ExpanderView Header="Expander Header" x:Name="expander">
<toolkit:ExpanderView.Items>
<TextBlock FontSize="40" Text="Expanded Content 1" Foreground="Orange"/>
<TextBlock FontSize="40" Text="Expanded Content 2" Foreground="YellowGreen"/>
</toolkit:ExpanderView.Items>
<toolkit:ExpanderView.Expander>
<TextBlock FontSize="40" Text="Sección" />
</toolkit:ExpanderView.Expander>
</toolkit:ExpanderView>
</controls:PivotItem>
</controls:Pivot>
</Grid>
 
e.g) here I've no error
 
<Grid x:Name="LayoutRoot" Background="Transparent">
 
<controls:Pivot >

<controls:PivotItem x:Name="test" Header="test" ><!--The expanderView is in the FIRST node-->
<toolkit:ExpanderView Header="Expander Header" x:Name="expander">
<toolkit:ExpanderView.Items>
<TextBlock FontSize="40" Text="Expanded Content 1" Foreground="Orange"/>
<TextBlock FontSize="40" Text="Expanded Content 2" Foreground="YellowGreen"/>
</toolkit:ExpanderView.Items>
<toolkit:ExpanderView.Expander>
<TextBlock FontSize="40" Text="Sección" />
</toolkit:ExpanderView.Expander>
</toolkit:ExpanderView>
</controls:PivotItem>

<controls:PivotItem></controls:PivotItem>
 
 
</controls:Pivot>
</Grid>
 
 
 
can anyone help me?

Viewing all articles
Browse latest Browse all 801

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>