Reputation: 7900
I want to create Pivot
in my app with 4 PivotItem
that every PivoeItem
is phone page and will be manage with is own Class.
This is how i build my pivot page without page for every page:
<Grid x:Name="LayoutRoot" Background="Transparent">
<!--Pivot Control-->
<controls:Pivot Title="my application">
<!--Pivot item one-->
<controls:PivotItem Header="item1">
<Grid>
</controls:PivotItem>
<!--Pivot item two-->
<controls:PivotItem Header="item2">
<Grid>
</controls:PivotItem>
</controls:Pivot>
</Grid>
Can i make PivotItem
with Page? (Xaml
+ cs
)?
Upvotes: 0
Views: 168
Reputation: 10244
No. If you need the same content in two places (eg: as a PivotItem and also as a standalone Page), I'd wrap the functionality in a custom UserControl which you can use on both.
Upvotes: 1