Advertisement
Guest User

Need help.

a guest
Dec 19th, 2017
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.93 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
  3.             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  4.             x:Class="Savanna.NXT.Xamarin.Forms.Views.OutfeedDialog">
  5.     <StackLayout x:Name="OrientationControll" Orientation="Vertical">
  6.         <StackLayout>
  7.         <!--Problematic List View-->
  8.             <RelativeLayout HeightRequest="31">
  9.                 <ListView Rotation="270" RowHeight="60" SeparatorVisibility="None"
  10.                         RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.5, Constant=-30}"
  11.                         RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=-0.5, Constant=30}"
  12.                         RelativeLayout.WidthConstraint="{ConstraintExpression Type=Constant, Constant=60}"
  13.                         RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}" ItemsSource="{Binding StorageCompartment}"
  14.                      SelectedItem="{Binding CurrentCompartment}">
  15.                     <ListView.ItemTemplate>
  16.                         <DataTemplate>
  17.                             <ViewCell>
  18.                                 <ContentView Rotation="90" Padding="1" TranslationX="60">
  19.                                     <Label HorizontalTextAlignment="Center" HeightRequest="29" WidthRequest="58" Text="{Binding Name}"/><!--Name is an public property of a Compartment(Object)... It works with vertical liesviews-->
  20.                                 </ContentView>
  21.                             </ViewCell>
  22.                         </DataTemplate>
  23.                     </ListView.ItemTemplate>
  24.                 </ListView>
  25.             </RelativeLayout>
  26.             <!--End of Problematic Part ;)-->
  27.             <Label VerticalOptions="Center" Text="{Binding ProductSearchHeadline}"/>
  28.             <Entry VerticalOptions="Center" Text="{Binding ItemID, Mode=TwoWay}"
  29.                       Placeholder="{Binding ItemIDHint}"/>
  30.             <ListView
  31.                ItemsSource="{Binding ItemIDHistory}"
  32.                SelectedItem="{Binding SelectedElement, Mode=TwoWay}">
  33.                 <ListView.ItemTemplate>
  34.                     <DataTemplate>
  35.                         <TextCell Text="{Binding ItemId}" />
  36.                     </DataTemplate>
  37.                 </ListView.ItemTemplate>
  38.             </ListView>
  39.         </StackLayout>
  40.         <StackLayout>
  41.             <Label VerticalOptions="Center" Text="{Binding LaneID}"/>
  42.             <Entry VerticalOptions="Center"
  43.                   Text="{Binding OutfeedAmount, Mode=TwoWay}"
  44.                   Placeholder="{Binding OutfeedAmountHint}">
  45.             </Entry>
  46.         </StackLayout>
  47.         <Button Text="{Binding ItemRequestButton}"
  48.            Command="{Binding ItemRequestCommand}"
  49.            HorizontalOptions="Center"/>
  50.     </StackLayout>
  51. </ContentPage>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement