mirror of
https://github.com/Microsoft/calculator.git
synced 2025-07-16 02:02:51 -07:00
Persist variable settings after graph is plotted (#1055)
* Allow copying graph as image
* Persist variables
* Revert "Allow copying graph as image"
This reverts commit 4fc9d798bc
.
* fix binding bug
* undo cert change
* fix animation
* remove extra lines
* remove overrides
* undo key comment
This commit is contained in:
parent
1b72ecb6b3
commit
28dbdb3d94
10 changed files with 125 additions and 50 deletions
26
src/GraphControl/Models/Variable.h
Normal file
26
src/GraphControl/Models/Variable.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
#pragma once
|
||||
#include "Utils.h"
|
||||
|
||||
namespace GraphControl
|
||||
{
|
||||
public
|
||||
ref class Variable sealed
|
||||
{
|
||||
public:
|
||||
PROPERTY_RW(double, Value);
|
||||
PROPERTY_RW(double, Step);
|
||||
PROPERTY_RW(double, Min);
|
||||
PROPERTY_RW(double, Max);
|
||||
|
||||
Variable(double value)
|
||||
: m_Value{ value }
|
||||
, m_Step{ 0.1 }
|
||||
, m_Min{ 0.0 }
|
||||
, m_Max{ 2.0 }
|
||||
{
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue