I am creating Xamarin app and I would like to open the front layer half-open. if I use the height reveal option then the back layer shrinks to half. the back layer should be under the front layer fully extended.I still could see the color of the app default back color.
i could drag the front layer and it open to full but i want to create steps like half-open of certain height open and when the user click on the button or drag to top it will extend to full screen
please have a look at the screenshots
As i think it should be like this ( when i drag it.but i want to set is as by default)
|
<backdrop:SfBackdropPage
xmlns:backdrop="clr-namespace:Syncfusion.XForms.Backdrop;assembly=Syncfusion.SfBackdrop.XForms"
x:Class="SfBackdrop_Sample.MainPage" x:Name="BackdropPage" IsBackLayerRevealed="True"
Title="Menu">
<backdrop:SfBackdropPage.BackLayer>
<backdrop:BackdropBackLayer >
...
</backdrop:BackdropBackLayer>
</backdrop:SfBackdropPage.BackLayer>
<backdrop:SfBackdropPage.FrontLayer>
<backdrop:BackdropFrontLayer x:Name="frontLayer" EdgeShape="Curve" >
...
</backdrop:BackdropFrontLayer>
</backdrop:SfBackdropPage.FrontLayer>
</backdrop:SfBackdropPage> |
|
var mainDisplayInfo = DeviceDisplay.MainDisplayInfo;
var height = mainDisplayInfo.Height / mainDisplayInfo.Density;
frontLayer.RevealedHeight = height / 2; |
Thanks a lot for your reply. but your solution did not work it reduce the size of the BackLayer i want to keep the back layer at the same height and want to show the front layer on top.
your solution divide the back layer and front layer.
please have a look at the screenshot. my question was is there any way i could increase the first layer with no effect on the backlayer.
as I have tested the sample, the sample provides the preception of the front layer is front of the back layer because of the same background color of the back layer and application. but if you change the color of the back layer color you will notice it actually divides the front layer and back layer according to reveal height.
I think this not correct behavior of the backdrop