Share via


NumberBox.AcceptsExpression Property

Definition

Gets or sets a value that indicates whether the control accepts and evaluates a basic formulaic expression entered as input.

public:
 property bool AcceptsExpression { bool get(); void set(bool value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")]
bool AcceptsExpression();

void AcceptsExpression(bool value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")]
bool AcceptsExpression();

void AcceptsExpression(bool value);
public bool AcceptsExpression { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")]
public bool AcceptsExpression { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")] set; }
var boolean = numberBox.acceptsExpression;
numberBox.acceptsExpression = boolean;
Public Property AcceptsExpression As Boolean

Property Value

Boolean

bool

true if the NumberBox accepts and evaluates a basic formulaic expression entered as input; otherwise, false. The default is false.

Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Remarks

NumberBox uses infix notation to evaluate expressions. In order of precedence, the allowable operators are:

  • ^
  • */
  • +-

Parentheses can be used to override precedence rules.

Applies to

See also