Browse Source

Merge branch 'master' into fix-weak-event-manager-compact

pull/3537/head
Jumar Macato 7 years ago
committed by GitHub
parent
commit
767db33d4c
  1. 2
      readme.md
  2. 4
      src/Avalonia.Controls.DataGrid/DataGridColumnHeader.cs
  3. 12
      src/Avalonia.Controls/Calendar/CalendarItem.cs

2
readme.md

@ -10,7 +10,7 @@
**Avalonia** is a WPF/UWP-inspired cross-platform XAML-based UI framework providing a flexible styling system and supporting a wide range of Operating Systems such as Windows (.NET Framework, .NET Core), Linux (via Xorg), macOS and with experimental support for Android and iOS.
**Avalonia** is ready for **General-Purpose Desktop App Development**. However, there may be some bugs and breaking changes as we continue along into this project's development. To see the status of some of our features, please see our [Roadmap here](https://github.com/AvaloniaUI/Avalonia/issues/2239).
**Avalonia** is ready for **General-Purpose Desktop App Development**. However, there may be some bugs and [breaking changes](https://github.com/AvaloniaUI/Avalonia/wiki/Breaking-Changes) as we continue along into this project's development. To see the status of some of our features, please see our [Roadmap here](https://github.com/AvaloniaUI/Avalonia/issues/2239).
| Control catalog | Desktop platforms | Mobile platforms |
|---|---|---|

4
src/Avalonia.Controls.DataGrid/DataGridColumnHeader.cs

@ -326,7 +326,7 @@ namespace Avalonia.Controls
if (OwningGrid != null && OwningGrid.ColumnHeaders != null)
{
args.Device.Capture(this);
args.Pointer.Capture(this);
_dragMode = DragMode.MouseDown;
_frozenColumnsWidth = OwningGrid.ColumnsInternal.GetVisibleFrozenEdgedColumnsWidth();
@ -391,7 +391,7 @@ namespace Avalonia.Controls
SetDragCursor(mousePosition);
// Variables that track drag mode states get reset in DataGridColumnHeader_LostMouseCapture
args.Device.Capture(null);
args.Pointer.Capture(null);
OnLostMouseCapture();
_dragMode = DragMode.None;
handled = true;

12
src/Avalonia.Controls/Calendar/CalendarItem.cs

@ -943,8 +943,8 @@ namespace Avalonia.Controls.Primitives
{
CalendarDayButton b = (CalendarDayButton)sender;
// The button is in Pressed state. Change the state to normal.
if (e.Device.Captured == b)
e.Device.Capture(null);
if (e.Pointer.Captured == b)
e.Pointer.Capture(null);
_lastCalendarDayButton = b;
}
}
@ -1213,8 +1213,8 @@ namespace Avalonia.Controls.Primitives
{
CalendarButton b = (CalendarButton)sender;
// The button is in Pressed state. Change the state to normal.
if (e.Device.Captured == b)
e.Device.Capture(null);
if (e.Pointer.Captured == b)
e.Pointer.Capture(null);
//b.ReleaseMouseCapture();
_lastCalendarButton = b;
@ -1224,7 +1224,7 @@ namespace Avalonia.Controls.Primitives
{
if (_lastCalendarDayButton != null)
{
e.Device.Capture(_lastCalendarDayButton);
e.Pointer.Capture(_lastCalendarDayButton);
}
}
@ -1232,7 +1232,7 @@ namespace Avalonia.Controls.Primitives
{
if (_lastCalendarButton != null)
{
e.Device.Capture(_lastCalendarButton);
e.Pointer.Capture(_lastCalendarButton);
}
}

Loading…
Cancel
Save