添加项目文件。
This commit is contained in:
57
XXCpzs/Views/PageCustomerSelect.xaml
Normal file
57
XXCpzs/Views/PageCustomerSelect.xaml
Normal file
@@ -0,0 +1,57 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d"
|
||||
Title="{Binding Title}"
|
||||
x:Class="XXCpzs.Views.PageCustomerSelect">
|
||||
<ContentPage.Content>
|
||||
<StackLayout>
|
||||
<SearchBar x:Name="searchBar"
|
||||
HorizontalOptions="Fill"
|
||||
VerticalOptions="CenterAndExpand"
|
||||
Placeholder="Search fruits..."
|
||||
CancelButtonColor="Orange"
|
||||
HorizontalTextAlignment="Start"
|
||||
TextChanged="OnTextChanged"/>
|
||||
<ListView x:Name="searchResults"
|
||||
HorizontalOptions="Fill"
|
||||
VerticalOptions="CenterAndExpand"
|
||||
ItemSelected="searchResults_ItemSelectedAsync">
|
||||
<ListView.Header>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label Text="企业名" HorizontalOptions="Start" />
|
||||
<Label Text="联系人" HorizontalOptions="CenterAndExpand"/>
|
||||
<Label Text="电话" HorizontalOptions="CenterAndExpand"/>
|
||||
</StackLayout>
|
||||
</ListView.Header>
|
||||
<ListView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<ViewCell>
|
||||
<StackLayout Padding="10" Orientation="Horizontal">
|
||||
<Label Text="{Binding company}" HorizontalOptions="Start"
|
||||
LineBreakMode="NoWrap"
|
||||
Style="{DynamicResource ListItemTextStyle}"
|
||||
FontSize="16" />
|
||||
<Label Text="{Binding contacts}" HorizontalOptions="CenterAndExpand"
|
||||
d:Text="Item descripton"
|
||||
LineBreakMode="NoWrap"
|
||||
Style="{DynamicResource ListItemDetailTextStyle}"
|
||||
FontSize="13" />
|
||||
<Label Text="{Binding phone}" HorizontalOptions="End"
|
||||
d:Text="Item descripton"
|
||||
LineBreakMode="NoWrap"
|
||||
Style="{DynamicResource ListItemDetailTextStyle}"
|
||||
FontSize="13" />
|
||||
</StackLayout>
|
||||
</ViewCell>
|
||||
</DataTemplate>
|
||||
</ListView.ItemTemplate>
|
||||
|
||||
</ListView>
|
||||
|
||||
<Button Text="添加" Clicked="Button_Clicked" VerticalOptions="EndAndExpand"/>
|
||||
</StackLayout>
|
||||
</ContentPage.Content>
|
||||
</ContentPage>
|
||||
Reference in New Issue
Block a user