CoolBottomSheet
CoolBottomSheet copied to clipboard
Xamarin Forms: Material Design bottom sheet
CoolBottomSheet
Xamarin Forms: Material Design bottom sheet
Installation
- OPTION 1) Install from nuget package manager looking for
CoolBottomSheet
- OPTION 2) Install by command line with command ->
Install-Package CoolBottomSheet -Version 1.0.1
Setup
- Import CoolBottomSheet
xmlns:customControl="clr-namespace:CoolBottomSheet;assembly=CoolBottomSheet"
Sample
<customControl:BottomSheet
CornerRadiusBottomSheet="25"
BackgroundBottomSheetColor="LightGray"
>
<customControl:BottomSheet.ContentMainPage>
<StackLayout>
....
</StackLayout>
</customControl:BottomSheet.ContentMainPage>
<customControl:BottomSheet.ContentBottomSheet>
<StackLayout>
....
</StackLayout>
</customControl:BottomSheet.ContentBottomSheet>
</customControl:BottomSheet>
Features
Properties
-
ContentMainPage
- Is the content view of Main page (you can use every layout) -
ContentBottomSheet
- Is the content view of BottomSheet (you can use every layout) -
BackgroundBottomSheetColor
- Background color of bottom sheet -
CornerRadiusBottomSheet
- Corner radius of bottom sheet -
PercentageLockMainPageTranslation
- Percentage of screen where the scroll of the main page must be locked and the bottom sheet starts to overlap the main page -
PercentageExpandBottomSheet
- Is the height of bottom sheet after click the bottom button -
PercentageHideBottomSheet
- When BottomSheet reaches this percentage will be auto-hidden -
MinPercentageBottomSheetSwipe
- Is the min percentage who bottomSheet can reach -
MaxPercentageBottomSheetSwipe
- Is the max percentage who bottomSheet can reach -
PercentageHeightMainPage
- Initial height of mainpage express in percentage of screen ( if initial height of mainpage is 70 % of screen height, the bottomSheet percentage will be 30%) -
IsBottomButtonEnable
- If enabled a button appear when the BottomSheet disappear -
BottomButtonText
- Text of the bottom button