Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drawer with CollectionView doesn't allow the items in the end to be shown (locking the drawer on 0.9) #15

Open
npehrsson opened this issue Nov 30, 2022 · 0 comments

Comments

@npehrsson
Copy link

npehrsson commented Nov 30, 2022

Using the drawer with a collection, locking the LockStates = new[] { 0.9d };
Seems like the view is spanning 100% of the view, but I can't reach the last items in the list.

    <bottomDrawer:BottomDrawer
                Padding="0"
                BackgroundColor="White"
                ExpandedPercentage="0.9"
                LockStates="{Binding LockStates}"
                IsExpanded="{Binding IsConnectorSelectionViewEnabled}"
                IsVisible="{Binding IsConnectorSelectionViewEnabled}"
         
                RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent,
                                                                       Property=Height,
                                                                       Factor=1,
                                                                       Constant=0}"
                RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent,
                                                                      Property=Width,
                                                                      Factor=1,
                                                                      Constant=0}"
                RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent,
                                                                  Property=Height,
                                                                  Factor=1,
                                                                  Constant=-65}">

                <StackLayout Spacing="0">
                    <BoxView
                        Margin="20,16,20,-5"
                        BackgroundColor="Gray"
                        CornerRadius="2"
                        HeightRequest="3"
                        HorizontalOptions="Center"
                        WidthRequest="80" />
                    <Label
                        Margin="16"
                        FontAttributes="Bold"
                        FontSize="18"
                        Text="{Binding Title}"
                        TextColor="#003154" />
                    <ScrollView>
                         <CollectionView
                    ItemsSource="{Binding Items}"
                    SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
                    SelectionMode="Single"
                    SelectionChangedCommand="{Binding SelectionChangedCommand}">
                <CollectionView.ItemTemplate>
                        <DataTemplate>
                            <Grid Padding="10">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition Height="Auto" />
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="Auto" />
                                </Grid.ColumnDefinitions>
                                <Label Grid.Column="1"
                                 Text="{Binding PhysicalReference}"
                                 FontAttributes="Bold" />
                            </Grid>
                        </DataTemplate>
                    </CollectionView.ItemTemplate>
                </CollectionView>
                    </ScrollView>
                </StackLayout>
            </bottomDrawer:BottomDrawer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant