Tabbed Control in WP7
Auf dotnet.dzone.com wird von Den Delimarsky gezeigt wie man ein Tabbed Control vom Silverlight Sdk mit in WP7 einbindet und mit einem Metrostyle aufwertet. Somit können jetzt auch auf WP7 Tabbed based Apps entstehen.
Eingebunden wird das Control wie üblich in den Namespace der Xaml Datei:
xmlns:cc=“clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls“
jetzt noch ein paar Tabs einbinden:
<cc:TabControl>
<cc:TabItem Height=“80″ Width=“80″ Header=“Tab 1″ Foreground=“Black“></cc:TabItem>
<cc:TabItem Height=“80″ Width=“80″ Header=“Tab 2″ Foreground=“Black“></cc:TabItem>
<cc:TabItem Height=“80″ Width=“80″ Header=“Tab 3″ Foreground=“Black“></cc:TabItem>
<cc:TabItem Height=“80″ Width=“80″ Header=“Tab 4″ Foreground=“Black“></cc:TabItem>
<cc:TabItem Height=“80″ Width=“80″ Header=“Tab 5″ Foreground=“Black“></cc:TabItem>
</cc:TabControl>
und nun das Ergebniss:
Um nun den richtigen Metro – Style noch zu erreichen muss noch der Visual Style umgestellt werden.
Quelle :