Xceed Toolkit for .NET Maui v2.0 Documentation
Xceed.Maui.Toolkit Assembly / Xceed.Maui.Toolkit Namespace / Calculator Class
Members Example


In This Topic
    Calculator Class
    In This Topic
    A control that emulates a calculator & all of its buttons.
    Syntax
    'Usage
     
    
    Dim instance As Calculator
    Remarks
    One of the advantages of Xceed's Calculator is that all of the Buttons can be styled, which allows to create a Control that fits with its visual environment. The precision of the calculations can also be adjusted to display the desired number of decimals, which can be pretty useful in some context.
    Example

    The following code would display this control:

    <xctk:Calculator Value="4.17"
                     Precision="2"
                     Margin="20"
                     WidthRequest="260"
                     HeightRequest="300"/>
    Inheritance Hierarchy

    System.Object
       Microsoft.Maui.Controls.BindableObject
          Microsoft.Maui.Controls.Element
             Microsoft.Maui.Controls.NavigableElement
                Microsoft.Maui.Controls.VisualElement
                   Microsoft.Maui.Controls.View
                      Microsoft.Maui.Controls.Compatibility.Layout
                         Microsoft.Maui.Controls.TemplatedView
                            Xceed.Maui.Toolkit.Control
                               Xceed.Maui.Toolkit.ContentControl
                                  Xceed.Maui.Toolkit.Calculator

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also