skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • Resources Hub
    • .NET MAUI Tutorials and Learning
    • First Steps
    • Submit a Ticket
    • FAQs

    Docs & Resources

    • Docs
    • Demos
    • Migrate to .NET MAUI
    • Forums
    • Videos
    • Blogs

    Productivity and Design Tools

    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class BottomSheetLength

Represents a size for the bottom sheet, which can be specified as a percentage or an absolute value.

Inheritance
System.Object
BottomSheetLength
Namespace: Telerik.Maui.Controls.BottomSheet
Assembly: Telerik.Maui.Controls.dll

Syntax

public sealed class BottomSheetLength : ValueType

Constructors

BottomSheetLength(Double, Boolean)

Initializes a new instance of the BottomSheetLength.

Declaration
public BottomSheetLength(double value, bool isPercentage = false)
Parameters
System.Double value

The size value, either as a percentage (e.g., 0.5 for 50%) or an absolute value in pixels.

System.Boolean isPercentage

Indicates whether the value is a percentage.

Fields

Full

Represents a full bottom sheet state with height 90%.

Declaration
public static readonly BottomSheetLength Full
Field Value
BottomSheetLength

Hidden

Represents a hidden bottom sheet state.

Declaration
public static readonly BottomSheetLength Hidden
Field Value
BottomSheetLength

Minimal

Represents a minimal bottom sheet state with height 25%.

Declaration
public static readonly BottomSheetLength Minimal
Field Value
BottomSheetLength

Partial

Represents a partial bottom sheet state with height 50%.

Declaration
public static readonly BottomSheetLength Partial
Field Value
BottomSheetLength

Properties

IsPercentage

Gets a value indicating whether the size is specified as a percentage.

Declaration
public bool IsPercentage { get; }
Property Value
System.Boolean

Value

Gets the value of the size. If IsPercentage is true, this is a fraction (e.g., 0.5 for 50%). Otherwise, it is an absolute value in pixels.

Declaration
public double Value { get; }
Property Value
System.Double

Methods

CalculateLength(Double)

Calculates the length in pixels based on the total length and the size value.

Declaration
public double CalculateLength(double totalLength)
Parameters
System.Double totalLength

The total length to calculate from.

Returns
System.Double

The calculated length in pixels.

ToString()

Returns a string representation of the size, as a percentage or pixel value.

Declaration
public override string ToString()
Returns
System.String

Extension Methods

AndroidTypeConversionExtensions.ToJavaObject(Object)
Sample Applications
  • Controls Samples App
  • Crypto Tracker App
Support Resources
  • .NET MAUI SDKBrowser App
Community
  • Forums
  • Blogs
  • Feedback Portal
  • YouTube Channel

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.