diff options
Diffstat (limited to 'Xamarin.Forms.Platform.WP8/TableView.xaml')
-rw-r--r-- | Xamarin.Forms.Platform.WP8/TableView.xaml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.WP8/TableView.xaml b/Xamarin.Forms.Platform.WP8/TableView.xaml new file mode 100644 index 00000000..89c9cddb --- /dev/null +++ b/Xamarin.Forms.Platform.WP8/TableView.xaml @@ -0,0 +1,31 @@ +<Grid x:Class="Xamarin.Forms.Platform.WinPhone.TableView" + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + mc:Ignorable="d" + > + + <Grid.Resources> + <ResourceDictionary> + <ResourceDictionary.MergedDictionaries> + <ResourceDictionary Source="WPResources.xaml" /> + </ResourceDictionary.MergedDictionaries> + </ResourceDictionary> + </Grid.Resources> + + <Grid.RowDefinitions> + <RowDefinition Height="Auto" /> + <RowDefinition /> + </Grid.RowDefinitions> + + <TextBlock Grid.Row="0" Text="{Binding Title,Converter={StaticResource UpperConverter}}" Style="{StaticResource PhoneTextSmallTitleStyle}" /> + <ListBox Grid.Row="1" ItemsSource="{Binding}" ItemTemplate="{StaticResource TableGroup}"> + <ListBox.ItemContainerStyle> + <Style TargetType="ListBoxItem"> + <Setter Property="HorizontalContentAlignment" Value="Stretch" /> + </Style> + </ListBox.ItemContainerStyle> + </ListBox> +</Grid> + |