Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8" ?>
- <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- x:Class="Savanna.NXT.Xamarin.Forms.Views.OutfeedDialog">
- <StackLayout x:Name="OrientationControll" Orientation="Vertical">
- <StackLayout>
- <!--Problematic List View-->
- <RelativeLayout HeightRequest="31">
- <ListView Rotation="270" RowHeight="60" SeparatorVisibility="None"
- RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.5, Constant=-30}"
- RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=-0.5, Constant=30}"
- RelativeLayout.WidthConstraint="{ConstraintExpression Type=Constant, Constant=60}"
- RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}" ItemsSource="{Binding StorageCompartment}"
- SelectedItem="{Binding CurrentCompartment}">
- <ListView.ItemTemplate>
- <DataTemplate>
- <ViewCell>
- <ContentView Rotation="90" Padding="1" TranslationX="60">
- <Label HorizontalTextAlignment="Center" HeightRequest="29" WidthRequest="58" Text="{Binding Name}"/><!--Name is an public property of a Compartment(Object)... It works with vertical liesviews-->
- </ContentView>
- </ViewCell>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </RelativeLayout>
- <!--End of Problematic Part ;)-->
- <Label VerticalOptions="Center" Text="{Binding ProductSearchHeadline}"/>
- <Entry VerticalOptions="Center" Text="{Binding ItemID, Mode=TwoWay}"
- Placeholder="{Binding ItemIDHint}"/>
- <ListView
- ItemsSource="{Binding ItemIDHistory}"
- SelectedItem="{Binding SelectedElement, Mode=TwoWay}">
- <ListView.ItemTemplate>
- <DataTemplate>
- <TextCell Text="{Binding ItemId}" />
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </StackLayout>
- <StackLayout>
- <Label VerticalOptions="Center" Text="{Binding LaneID}"/>
- <Entry VerticalOptions="Center"
- Text="{Binding OutfeedAmount, Mode=TwoWay}"
- Placeholder="{Binding OutfeedAmountHint}">
- </Entry>
- </StackLayout>
- <Button Text="{Binding ItemRequestButton}"
- Command="{Binding ItemRequestCommand}"
- HorizontalOptions="Center"/>
- </StackLayout>
- </ContentPage>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement