226 ); |
226 ); |
227 headerBorder.PointerMoved( |
227 headerBorder.PointerMoved( |
228 winrt::Microsoft::UI::Xaml::Input::PointerEventHandler( |
228 winrt::Microsoft::UI::Xaml::Input::PointerEventHandler( |
229 [=](IInspectable const& sender, winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& args) { |
229 [=](IInspectable const& sender, winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& args) { |
230 if (this->resize) { |
230 if (this->resize) { |
231 switch (i) { |
|
232 case 0: OutputDebugString(L"pointer moved 0\n"); break; |
|
233 case 1: OutputDebugString(L"pointer moved 1\n"); break; |
|
234 case 2: OutputDebugString(L"pointer moved 2\n"); break; |
|
235 case 3: OutputDebugString(L"pointer moved 3\n"); break; |
|
236 } |
|
237 auto point = args.GetCurrentPoint(this->resizedCol); |
231 auto point = args.GetCurrentPoint(this->resizedCol); |
238 auto position = point.Position(); |
232 auto position = point.Position(); |
239 if (position.X > 1) { |
233 if (position.X > 1) { |
240 this->resizedCol.Width(position.X); |
234 this->resizedCol.Width(position.X); |
241 } |
235 } |