MCPcopy Create free account
hub / github.com/HO-COOH/FastCopy / UserControl_SizeChanged

Method UserControl_SizeChanged

FastCopy/SpeedGraph.xaml.cpp:201–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 1

SizeMethod · 0.80

Tested by

no test coverage detected