xamarin/Xamarin.Forms
[Feedback] Xamarin.Forms TabbedPage as Master on MasterDetailPage problems
开放
#3,719 创建于 2018年9月5日
e/3 :clock3:feedback-tickethelp wantedinactivep/iOS 🍎t/bug :bug:up-for-grabs
仓库指标
- 星标
- (5,644 个星标)
- PR 合并指标
- (30 天内没有已合并 PR)
描述
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.