Open winston-de opened 3 years ago
I think I made a similar proposal, when the NumberBox was being proposed.
Calculator is currently working on moving their UI code to C# whilst making their core code that handles the calculations, a C++ WinRT component.
So maybe when that work is done, WinUI could include that Core and create a TextBox/NumberBox with a Calculator flyout?
https://github.com/microsoft/calculator/issues/453#issuecomment-483872523
This proposal isn't for a calculator control, but for a control designed for entering (complex) math equations. Something similar to what OneNote has.
You're idea is pretty cool though, and probably could be achieved using the LaunchUriForResultsAsync
function.
Proposal: Add a MathInputBox control
Summary
This proposal is to provide a control that allows developers to provide users with a rich experience for creating, editing, and viewing math equations for all input methods.
Rationale
Scope
MathInputControl
that devs can add to their appsMathInputControl
will give users a rich equation editing experience and commands, for example auto closing parenthesis, converting "\sqrt" to √MathInputControl
will provide an ink to math experience with a pen, for example showing a ink input panel for math when tapped with a pen similar to TextBox behaviorMathInputControl
will allow users with screen readers to easily understand the MathInputBox content (possibly by reading equations the same way they would be pronounced, eg "x^2" -> "x squared")MathInputControl
will allow developers to specify the output format (eg LaTeX, raw text)Important Notes
Possible code for a basic graphing scenario:
Open Questions