xamarin/Xamarin.Forms

[Feedback] Xamarin.Forms TabbedPage as Master on MasterDetailPage problems

Aperta

#3719 aperta il 5 set 2018

 (1 commento) (0 reazioni) (0 assegnatari)C# (1926 fork)batch import
e/3 :clock3:feedback-tickethelp wantedinactivep/iOS 🍎t/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Description

<?xml version="1.0" encoding="UTF-8"?>
<TabbedPagexmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="using:MasterDetailPageNavigation"
x:Class="MasterDetailPageNavigation.MasterPage"
Padding="0,200,0,0"
Icon="hamburger.png"
Title="Personal Organiser">

<ContentPageTitle="Tab 1">
<StackLayout>
<ListViewx:Name="listView"x:FieldModifier="public">
<ListView.ItemsSource>
<x:ArrayType="{x:Typelocal:MasterPageItem}">
<local:MasterPageItemTitle="Contacts"IconSource="contacts.png"TargetType="{x:Typelocal:ContactsPage}"/>
<local:MasterPageItemTitle="TodoList"IconSource="todo.png"TargetType="{x:Typelocal:TodoListPage}"/>
<local:MasterPageItemTitle="Reminders"IconSource="reminders.png"TargetType="{x:Typelocal:ReminderPage}"/>
</x:Array>
</ListView.ItemsSource>
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<GridPadding="5,10">
<Grid.ColumnDefinitions>
<ColumnDefinitionWidth="30"/>
<ColumnDefinitionWidth="*"/>
</Grid.ColumnDefinitions>
<ImageSource="{BindingIconSource}"/>
<LabelGrid.Column="1"Text="{BindingTitle}"/>
</Grid>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackLayout>
</ContentPage>

<ContentPageTitle="Tab 2">
<StackLayout>
<LabelText="Enter:"/>
<Entry/>
</StackLayout>
</ContentPage>
</TabbedPage>

View on Developer Community To find diagnostic information, see the original linked feedback ticket.

Source

660951

Guida contributor