mirror of
https://github.com/Microsoft/calculator.git
synced 2025-07-16 02:02:51 -07:00
* 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
26 lines
523 B
C++
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 }
|
|
{
|
|
}
|
|
};
|
|
}
|