小编meh*_*hta的帖子

在Xamarin android中从右向左滑动抽屉

我有问题从右到左为xamarin android打开滑动抽屉.但是下面用于显示滑动的代码

抽屉从左到右.如果MasterDetailPage的任何属性从右向左打开,请与我分享您的观点.这里滑动抽屉从左到右打开,但我想从右到左打开Xamarin Android任何关于此的想法.请分享你的想法.我们还使用MenuRootPage在Sliding Drawer中添加项目:

     Code for items view:
Run Code Online (Sandbox Code Playgroud)
    <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
                 xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                               >

        <ContentPage.Content>
            <StackLayout   BackgroundColor="{StaticResource ToolbarStatusBackgroundColor}"  Orientation="Vertical" Spacing="20">
                <StackLayout>
                    <StackLayout.GestureRecognizers>
                        <TapGestureRecognizer Command="{mm:Command SliderClose}" />
                    </StackLayout.GestureRecognizers>
                    <Image Source="menu.png" HorizontalOptions="Start" Margin="10,40,0,0" />
                </StackLayout>
                <BoxView HorizontalOptions="EndAndExpand"  HeightRequest="1" WidthRequest="1000" Color="{StaticResource SeparatorColor}"  />
                <Label Text="My account" Style="{StaticResource ToolbarStatusDescriptionLabel}" Margin="10"  >
                    <Label.GestureRecognizers>
                        <TapGestureRecognizer Command="{mm:Command SliderClose}" />
                    </Label.GestureRecognizers>
                </Label>
                <BoxView HorizontalOptions="EndAndExpand"  HeightRequest="1" WidthRequest="1000" Color="{StaticResource SeparatorColor}"  />

                <Label Text="Settings" Style="{StaticResource ToolbarStatusDescriptionLabel}" Margin="10">
                    <Label.GestureRecognizers>
                        <TapGestureRecognizer Command="{mm:Command SliderClose}" />
                    </Label.GestureRecognizers>
                </Label>
                <BoxView HorizontalOptions="EndAndExpand"  HeightRequest="1" WidthRequest="1000" Color="{StaticResource SeparatorColor}"  />

                <Label …
Run Code Online (Sandbox Code Playgroud)

android xamarin.android xamarin xamarin.forms

5
推荐指数
1
解决办法
353
查看次数

标签 统计

android ×1

xamarin ×1

xamarin.android ×1

xamarin.forms ×1