msft-calculator/src/GraphControl/Models/Variable.h
Pepe Rivera 28dbdb3d94
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
2020-03-17 11:27:00 -07:00

26 lines
523 B
C++

// 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 }
{
}
};
}