mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 14:13:30 -07:00
Check whether graphing API is supported
This commit is contained in:
parent
ced7f6b0de
commit
123de14d43
1 changed files with 6 additions and 0 deletions
|
@ -54,6 +54,12 @@ namespace // put the utils within this TU
|
|||
|
||||
bool IsGraphingModeEnabled()
|
||||
{
|
||||
static bool isGraphSupported = Windows::Foundation::Metadata::ApiInformation::IsMethodPresent("Windows.UI.Text.RichEditTextDocument", "GetMath");
|
||||
if (!isGraphSupported)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool isChecked = false;
|
||||
static bool isEnabled = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue