37 changed files with 1024 additions and 291 deletions
@ -1,8 +1,8 @@ |
|||
#!/usr/bin/env bash |
|||
|
|||
cp ../samples/ControlCatalog.NetCore/bin/Debug/netcoreapp2.0/Avalonia**.dll ~/.nuget/packages/avalonia/$1/lib/netcoreapp2.0/ |
|||
cp ../samples/ControlCatalog.NetCore/bin/Debug/netcoreapp2.0/Avalonia**.dll ~/.nuget/packages/avalonia/$1/lib/netstandard2.0/ |
|||
cp ../samples/ControlCatalog.NetCore/bin/Debug/netcoreapp2.0/Avalonia**.dll ~/.nuget/packages/avalonia.skia/$1/lib/netstandard2.0/ |
|||
cp ../samples/ControlCatalog.NetCore/bin/Debug/netcoreapp2.0/Avalonia**.dll ~/.nuget/packages/avalonia.native/$1/lib/netstandard2.0/ |
|||
cp ../samples/ControlCatalog.NetCore/bin/Debug/netcoreapp3.1/Avalonia**.dll ~/.nuget/packages/avalonia/$1/lib/netcoreapp3.1/ |
|||
cp ../samples/ControlCatalog.NetCore/bin/Debug/netcoreapp3.1/Avalonia**.dll ~/.nuget/packages/avalonia/$1/lib/netstandard2.0/ |
|||
cp ../samples/ControlCatalog.NetCore/bin/Debug/netcoreapp3.1/Avalonia**.dll ~/.nuget/packages/avalonia.skia/$1/lib/netstandard2.0/ |
|||
cp ../samples/ControlCatalog.NetCore/bin/Debug/netcoreapp3.1/Avalonia**.dll ~/.nuget/packages/avalonia.native/$1/lib/netstandard2.0/ |
|||
|
|||
|
|||
|
|||
@ -0,0 +1,33 @@ |
|||
using System; |
|||
using Avalonia.Interactivity; |
|||
|
|||
#nullable enable |
|||
|
|||
namespace Avalonia.Controls.Primitives |
|||
{ |
|||
/// <summary>
|
|||
/// Holds data for the <see cref="Popup.Closed"/> event.
|
|||
/// </summary>
|
|||
public class PopupClosedEventArgs : EventArgs |
|||
{ |
|||
/// <summary>
|
|||
/// Initializes a new instance of the <see cref="PopupClosedEventArgs"/> class.
|
|||
/// </summary>
|
|||
/// <param name="closeEvent"></param>
|
|||
public PopupClosedEventArgs(EventArgs? closeEvent) |
|||
{ |
|||
CloseEvent = closeEvent; |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Gets the event that closed the popup, if any.
|
|||
/// </summary>
|
|||
/// <remarks>
|
|||
/// If <see cref="Popup.StaysOpen"/> is false, then this property will hold details of the
|
|||
/// interaction that caused the popup to close if the close was caused by e.g. a pointer press
|
|||
/// outside the popup. It can be used to mark the event as handled if the event should not
|
|||
/// be propagated.
|
|||
/// </remarks>
|
|||
public EventArgs? CloseEvent { get; } |
|||
} |
|||
} |
|||
@ -0,0 +1,45 @@ |
|||
using Avalonia.Interactivity; |
|||
|
|||
namespace Avalonia.Controls |
|||
{ |
|||
/// <summary>
|
|||
/// Describes a change in scrolling state.
|
|||
/// </summary>
|
|||
public class ScrollChangedEventArgs : RoutedEventArgs |
|||
{ |
|||
public ScrollChangedEventArgs( |
|||
Vector extentDelta, |
|||
Vector offsetDelta, |
|||
Vector viewportDelta) |
|||
: this(ScrollViewer.ScrollChangedEvent, extentDelta, offsetDelta, viewportDelta) |
|||
{ |
|||
} |
|||
|
|||
public ScrollChangedEventArgs( |
|||
RoutedEvent routedEvent, |
|||
Vector extentDelta, |
|||
Vector offsetDelta, |
|||
Vector viewportDelta) |
|||
: base(routedEvent) |
|||
{ |
|||
ExtentDelta = extentDelta; |
|||
OffsetDelta = offsetDelta; |
|||
ViewportDelta = viewportDelta; |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Gets the change to the value of <see cref="ScrollViewer.Extent"/>.
|
|||
/// </summary>
|
|||
public Vector ExtentDelta { get; } |
|||
|
|||
/// <summary>
|
|||
/// Gets the change to the value of <see cref="ScrollViewer.Offset"/>.
|
|||
/// </summary>
|
|||
public Vector OffsetDelta { get; } |
|||
|
|||
/// <summary>
|
|||
/// Gets the change to the value of <see cref="ScrollViewer.Viewport"/>.
|
|||
/// </summary>
|
|||
public Vector ViewportDelta { get; } |
|||
} |
|||
} |
|||
Loading…
Reference in new issue