| 199 | } |
| 200 | |
| 201 | void SpeedGraph::UserControl_SizeChanged(winrt::Windows::Foundation::IInspectable const& sender, winrt::Microsoft::UI::Xaml::SizeChangedEventArgs const& e) |
| 202 | { |
| 203 | auto const newSize = e.NewSize(); |
| 204 | if (m_graphSize != newSize && newSize.Width != 0 && newSize.Height != 0) |
| 205 | { |
| 206 | m_graphSize = e.NewSize(); |
| 207 | |
| 208 | /*Set new x-value for existing points to scale */ |
| 209 | auto points = Shape().Points(); |
| 210 | auto const pointsCount = points.Size(); |
| 211 | for (int i = 0; i < pointsCount; ++i) |
| 212 | { |
| 213 | |
| 214 | } |
| 215 | } |
| 216 | } |
| 217 | void SpeedGraph::Pause() |
| 218 | { |
| 219 | winrt::Microsoft::UI::Xaml::VisualStateManager::GoToState(*this, L"Pause", false); |