Unplanned
Last Updated: 20 Dec 2018 15:20 by ADMIN
Daniel
Created on: 19 Dec 2018 16:00
Category: UI for Xamarin
Type: Bug Report
2
SideDrawer [UWP]: MainContent is not resized when Windows is Maximized and Restored.

When Maximizing and Restoring the application's window, the RadSideDrawer's MainContent sometime gets measured wrong. This results in a corrupt state where all the main content is off-screen when the app is in the Restored state.

This can be tricky to reproduce without guidance, therefore I've recorded a video (attached) to demonstrate how to reproduce it as fast as possible with the code below:

<ContentPage ...>
    <telerikPrimitives:RadSideDrawer
            DrawerLength="400"
            AreGesturesEnabled="false"
            DrawerLocation="Bottom"
            DrawerTransitionType="SlideInOnTop"
            DrawerTransitionDuration="0.2"
            IsOpen="False"
            VerticalOptions="FillAndExpand">
        <telerikPrimitives:RadSideDrawer.DrawerContent>
            <StackLayout
                VerticalOptions="FillAndExpand"
                BackgroundColor="GreenYellow">
                <Label
                    Text="DrawerContent"
                    VerticalOptions="FillAndExpand"/>
            </StackLayout>
        </telerikPrimitives:RadSideDrawer.DrawerContent>
        <telerikPrimitives:RadSideDrawer.MainContent>
            <StackLayout
                Orientation="Vertical"
                VerticalOptions="FillAndExpand"
                BackgroundColor="LightBlue"
                Margin="0"
                Padding="10">
                <Button
                    Text="Telerik"
                    FontSize="Large"
                    BackgroundColor="Orange"
                    HorizontalOptions="FillAndExpand" />
            </StackLayout>
        </telerikPrimitives:RadSideDrawer.MainContent>
    </telerikPrimitives:RadSideDrawer>
</ContentPage>

0 comments