Skip to content

Instantly share code, notes, and snippets.

@maxkatz6
Last active April 25, 2024 04:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxkatz6/a7df42607cc7187b94e2e693ccf15f6d to your computer and use it in GitHub Desktop.
Save maxkatz6/a7df42607cc7187b94e2e693ccf15f6d to your computer and use it in GitHub Desktop.
Avalonia 11.1.0-beta1 API Diff
diff --git a/baseline/net6.0/Avalonia.Base.dll1708614068.api.cs b/target/net6.0/Avalonia.Base.dll294867528.api.cs
index 61aff96..78f5426 100644
--- a/baseline/net6.0/Avalonia.Base.dll1708614068.api.cs
+++ b/target/net6.0/Avalonia.Base.dll294867528.api.cs
@@ -26,7 +26,7 @@
[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)]
namespace Avalonia
{
- public partial class AttachedProperty<TValue> : StyledProperty<TValue>
+ public sealed partial class AttachedProperty<TValue> : StyledProperty<TValue>
{
internal AttachedProperty() { }
@@ -84,6 +57,8 @@ namespace Avalonia
public event System.EventHandler<AvaloniaPropertyChangedEventArgs>? PropertyChanged { add { } remove { } }
+ public Data.BindingExpressionBase Bind(AvaloniaProperty property, Data.IBinding binding) { throw null; }
+
public System.IDisposable Bind(AvaloniaProperty property, System.IObservable<System.Object?> source, Data.BindingPriority priority = 0) { throw null; }
public System.IDisposable Bind<T>(DirectPropertyBase<T> property, System.IObservable<T> source) { throw null; }
@@ -986,6 +961,8 @@ namespace Avalonia
public static RelativePoint Parse(System.String s) { throw null; }
+ public Point ToPixels(Rect rect) { throw null; }
+
public Point ToPixels(Size size) { throw null; }
public override System.String ToString() { throw null; }
@@ -1020,9 +997,42 @@ namespace Avalonia
public static RelativeRect Parse(System.String s) { throw null; }
+ public Rect ToPixels(Rect boundingBox) { throw null; }
+
public Rect ToPixels(Size size) { throw null; }
}
+ public sealed partial class RelativeScalar
+ {
+ public RelativeScalar(System.Double scalar, RelativeUnit unit) { }
+
+ public static RelativeScalar Beginning { get { throw null; } }
+
+ public static RelativeScalar End { get { throw null; } }
+
+ public static RelativeScalar Middle { get { throw null; } }
+
+ public System.Double Scalar { get { throw null; } }
+
+ public RelativeUnit Unit { get { throw null; } }
+
+ public System.Boolean Equals(RelativeScalar other) { throw null; }
+
+ public override System.Boolean? Equals(System.Object? obj) { throw null; }
+
+ public override System.Int32 GetHashCode() { throw null; }
+
+ public static System.Boolean operator ==(RelativeScalar left, RelativeScalar right) { throw null; }
+
+ public static System.Boolean operator !=(RelativeScalar left, RelativeScalar right) { throw null; }
+
+ public static RelativeScalar Parse(System.String s) { throw null; }
+
+ public override System.String ToString() { throw null; }
+
+ public System.Double ToValue(System.Double size) { throw null; }
+ }
@@ -2676,6 +2682,31 @@ namespace Avalonia.Controls
public static System.Boolean TryGetResource(this IResourceHost control, System.Object key, out System.Object? value) { throw null; }
}
+ public abstract partial class ResourceProvider : IResourceProvider, IResourceNode
+ {
+ public ResourceProvider() { }
+
+ public ResourceProvider(IResourceHost owner) { }
+
+ public abstract System.Boolean? HasResources { get; }
+
+ public IResourceHost? Owner { get { throw null; } }
+
+ public event System.EventHandler? OwnerChanged { add { } remove { } }
+
+ void IResourceProvider.AddOwner(IResourceHost owner) { }
+
+ void IResourceProvider.RemoveOwner(IResourceHost owner) { }
+
+ protected virtual void OnAddOwner(IResourceHost owner) { }
+
+ protected virtual void OnRemoveOwner(IResourceHost owner) { }
+
+ protected void RaiseResourcesChanged() { }
+
+ public abstract System.Boolean? TryGetResource(System.Object key, Styling.ThemeVariant? theme, out System.Object? value);
+ }
+
public partial class ResourcesChangedEventArgs
{
public static readonly ResourcesChangedEventArgs Empty;
@@ -2698,6 +2729,8 @@ namespace Avalonia.Controls.Metadata
public TemplatePartAttribute(System.String name, System.Type type) { }
+ public System.Boolean IsRequired { get { throw null; } set { } }
+
public System.String Name { get { throw null; } set { } }
public System.Type Type { get { throw null; } set { } }
@@ -2759,6 +2792,17 @@ namespace Avalonia.Data
public System.Int32 value__;
}
+ public abstract partial class BindingExpressionBase : Styling.ISetterInstance
+ {
+ internal BindingExpressionBase() { }
+
+ public virtual void Dispose() { }
+
+ public virtual void UpdateSource() { }
+
+ public virtual void UpdateTarget() { }
+ }
+
@@ -2810,12 +2854,16 @@ namespace Avalonia.Data
public void SetValue(System.Object? value) { }
public override System.String ToString() { throw null; }
+
+ public static System.Object? UpdateValue(System.Object o, System.Object value) { throw null; }
}
public static partial class BindingOperations
{
public static readonly System.Object DoNothing;
public static System.IDisposable Apply(AvaloniaObject target, AvaloniaProperty property, InstancedBinding binding, System.Object? anchor) { throw null; }
+
+ public static System.IDisposable Apply(AvaloniaObject target, AvaloniaProperty property, InstancedBinding binding) { throw null; }
}
public enum BindingPriority
@@ -2962,7 +3016,7 @@ namespace Avalonia.Data
public IndexerDescriptor WithPriority(BindingPriority priority) { throw null; }
}
- public partial class InstancedBinding
+ public sealed partial class InstancedBinding
{
internal InstancedBinding() { }
@@ -3027,7 +3081,7 @@ namespace Avalonia.Data
public override System.String ToString() { throw null; }
}
- public partial class TemplateBinding : IBinding, IDescription, Styling.ISetterValue
+ public partial class TemplateBinding : Core.UntypedBindingExpressionBase, IBinding, IDescription, Styling.ISetterValue
{
public TemplateBinding() { }
@@ -3045,14 +3101,27 @@ namespace Avalonia.Data
+
+ public enum UpdateSourceTrigger
+ {
+ Default = 0,
+ Explicit = 3,
+ LostFocus = 2,
+ PropertyChanged = 1
+ }
}
namespace Avalonia.Data.Converters
@@ -3361,7 +3436,7 @@ namespace Avalonia.Data.Core.Plugins
namespace Avalonia.Diagnostics
{
- public partial class AppliedStyle
+ public sealed partial class AppliedStyle
{
internal AppliedStyle() { }
@@ -3377,7 +3452,7 @@ namespace Avalonia.Diagnostics
public static AvaloniaPropertyValue GetDiagnostic(this AvaloniaObject o, AvaloniaProperty property) { throw null; }
}
- public partial class AvaloniaPropertyValue
+ public sealed partial class AvaloniaPropertyValue
{
internal AvaloniaPropertyValue() { }
@@ -4032,10 +4107,27 @@ namespace Avalonia.Input
public enum Key
{
LineFeed = 4,
LWin = 70,
M = 56,
+ MediaBlue = 100013,
+ MediaChannelList = 100001,
+ MediaChannelLower = 100003,
+ MediaChannelRaise = 100002,
+ MediaGreen = 100011,
+ MediaHome = 100000,
+ MediaInfo = 100023,
+ MediaMenu = 100020,
+ MediaMore = 100021,
MediaNextTrack = 132,
+ MediaOption = 100022,
MediaPlayPause = 135,
+ MediaPreviousChannel = 100027,
MediaPreviousTrack = 133,
+ MediaRecord = 100005,
+ MediaRed = 100010,
+ MediaSearch = 100024,
MediaStop = 134,
+ MediaSubtitle = 100025,
+ MediaTvGuide = 100026,
+ MediaYellow = 100012,
Multiply = 84,
N = 57,
Next = 20,
@@ -4190,10 +4282,22 @@ namespace Avalonia.Input
+ public enum KeyDeviceType
+ {
+ Gamepad = 1,
+ Keyboard = 0,
+ Remote = 2
+ }
+
public partial class KeyEventArgs : Interactivity.RoutedEventArgs
{
public Key? Key { get { throw null; } init { } }
+ public KeyDeviceType? KeyDeviceType { get { throw null; } init { } }
+
public KeyModifiers? KeyModifiers { get { throw null; } init { } }
public System.String? KeySymbol { get { throw null; } init { } }
@@ -4495,8 +4599,14 @@ namespace Avalonia.Input
public partial class PinchEventArgs : Interactivity.RoutedEventArgs
{
+ public PinchEventArgs(System.Double scale, Point scaleOrigin, System.Double angle, System.Double angleDelta) { }
+
public PinchEventArgs(System.Double scale, Point scaleOrigin) { }
+ public System.Double Angle { get { throw null; } }
+
+ public System.Double AngleDelta { get { throw null; } }
+
public System.Double Scale { get { throw null; } }
public Point ScaleOrigin { get { throw null; } }
@@ -4521,6 +4631,8 @@ namespace Avalonia.Input
public System.Int32? Id { get { throw null; } }
+ public System.Boolean? IsGestureRecognitionSkipped { get { throw null; } set { } }
+
public System.Boolean? IsPrimary { get { throw null; } }
public PointerType? Type { get { throw null; } }
@@ -4791,7 +4903,7 @@ namespace Avalonia.Input
public static System.Int32 GetNextFreeId() { throw null; }
}
- public partial class ScrollGestureInertiaStartingEventArgs : Interactivity.RoutedEventArgs
+ public sealed partial class ScrollGestureInertiaStartingEventArgs : Interactivity.RoutedEventArgs
{
internal ScrollGestureInertiaStartingEventArgs() { }
@@ -4859,6 +4971,79 @@ namespace Avalonia.Input
{
public Vector Vector { get { throw null; } init { } }
}
+
+ public partial class XYFocus
+ {
+ internal XYFocus() { }
+
+ public static readonly AttachedProperty<XYFocusNavigationStrategy> DownNavigationStrategyProperty;
+ public static readonly AttachedProperty<InputElement> DownProperty;
+ public static readonly AttachedProperty<XYFocusNavigationStrategy> LeftNavigationStrategyProperty;
+ public static readonly AttachedProperty<InputElement> LeftProperty;
+ public static readonly AttachedProperty<XYFocusNavigationModes> NavigationModesProperty;
+ public static readonly AttachedProperty<XYFocusNavigationStrategy> RightNavigationStrategyProperty;
+ public static readonly AttachedProperty<InputElement> RightProperty;
+ public static readonly AttachedProperty<XYFocusNavigationStrategy> UpNavigationStrategyProperty;
+ public static readonly AttachedProperty<InputElement> UpProperty;
+ public static InputElement GetDown(InputElement obj) { throw null; }
+
+ public static XYFocusNavigationStrategy GetDownNavigationStrategy(InputElement obj) { throw null; }
+
+ public static InputElement GetLeft(InputElement obj) { throw null; }
+
+ public static XYFocusNavigationStrategy GetLeftNavigationStrategy(InputElement obj) { throw null; }
+
+ public static XYFocusNavigationModes GetNavigationModes(InputElement obj) { throw null; }
+
+ public static InputElement GetRight(InputElement obj) { throw null; }
+
+ public static XYFocusNavigationStrategy GetRightNavigationStrategy(InputElement obj) { throw null; }
+
+ public static InputElement GetUp(InputElement obj) { throw null; }
+
+ public static XYFocusNavigationStrategy GetUpNavigationStrategy(InputElement obj) { throw null; }
+
+ public static void SetDown(InputElement obj, InputElement value) { }
+
+ public static void SetDownNavigationStrategy(InputElement obj, XYFocusNavigationStrategy value) { }
+
+ public static void SetLeft(InputElement obj, InputElement value) { }
+
+ public static void SetLeftNavigationStrategy(InputElement obj, XYFocusNavigationStrategy value) { }
+
+ public static void SetNavigationModes(InputElement obj, XYFocusNavigationModes value) { }
+
+ public static void SetRight(InputElement obj, InputElement value) { }
+
+ public static void SetRightNavigationStrategy(InputElement obj, XYFocusNavigationStrategy value) { }
+
+ public static void SetUp(InputElement obj, InputElement value) { }
+
+ public static void SetUpNavigationStrategy(InputElement obj, XYFocusNavigationStrategy value) { }
+ }
+
+ public enum XYFocusNavigationModes
+ {
+ Disabled = 0,
+ Enabled = 7,
+ Gamepad = 2,
+ Keyboard = 1,
+ Remote = 4
+ }
+
+ public enum XYFocusNavigationStrategy
+ {
+ Auto = 0,
+ NavigationDirectionDistance = 2,
+ Projection = 1,
+ RectilinearDistance = 3
+ }
}
namespace Avalonia.Input.GestureRecognizers
@@ -5852,6 +6014,16 @@ namespace Avalonia.Media
public override System.String ToString() { throw null; }
}
+ public enum BackgroundSizing
+ {
+ CenterBorder = 2,
+ InnerBorderEdge = 0,
+ OuterBorderEdge = 1
+ }
@@ -7071,6 +7243,25 @@ namespace Avalonia.Media
public override System.String ToString() { throw null; }
}
+ public partial record FontFeature()
+ {
+ public System.Int32 End { get { throw null; } init { } }
+
+ public System.Int32 Start { get { throw null; } init { } }
+
+ public System.String Tag { get { throw null; } init { } }
+
+ public System.Int32 Value { get { throw null; } init { } }
+
+ public static FontFeature Parse(System.String s) { throw null; }
+
+ public override System.String ToString() { throw null; }
+ }
+
+ public partial class FontFeatureCollection : Collections.AvaloniaList<FontFeature>
+ {
+ }
+
public sealed partial class FontManager
{
public const System.String CompositeFontScheme = "compositefont";
@@ -7258,6 +7449,10 @@ namespace Avalonia.Media
public void SetFontFamily(System.String fontFamily) { }
+ public void SetFontFeatures(FontFeatureCollection? fontFeatures, System.Int32? startIndex, System.Int32? count) { }
+
+ public void SetFontFeatures(FontFeatureCollection? fontFeatures) { }
+
public void SetFontSize(System.Double emSize, System.Int32 startIndex, System.Int32 count) { }
public void SetFontSize(System.Double emSize) { }
@@ -7307,6 +7502,8 @@ namespace Avalonia.Media
public Rect GetRenderBounds(IPen pen) { throw null; }
+ public Geometry GetWidenedGeometry(IPen pen) { throw null; }
+
protected void InvalidateGeometry() { }
public static Geometry Parse(System.String s) { throw null; }
@@ -8002,6 +8199,10 @@ namespace Avalonia.Media
RelativePoint GradientOrigin { get; }
System.Double Radius { get; }
+
+ RelativeScalar RadiusX { get; }
+
+ RelativeScalar RadiusY { get; }
}
[NotClientImplementable]
@@ -8257,6 +8458,8 @@ namespace Avalonia.Media
public static readonly StyledProperty<RelativePoint> CenterProperty;
public static readonly StyledProperty<RelativePoint> GradientOriginProperty;
public static readonly StyledProperty<System.Double> RadiusProperty;
+ public static readonly StyledProperty<RelativeScalar> RadiusXProperty;
+ public static readonly StyledProperty<RelativeScalar> RadiusYProperty;
public RadialGradientBrush() { }
public RelativePoint Center { get { throw null; } set { } }
@@ -8265,16 +8468,32 @@ namespace Avalonia.Media
public System.Double Radius { get { throw null; } set { } }
+ public RelativeScalar RadiusX { get { throw null; } set { } }
+
+ public RelativeScalar RadiusY { get { throw null; } set { } }
+
+ protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change) { }
+
public override IImmutableBrush ToImmutable() { throw null; }
}
public partial class RectangleGeometry : Geometry
{
+ public static readonly StyledProperty<System.Double> RadiusXProperty;
+ public static readonly StyledProperty<System.Double> RadiusYProperty;
public static readonly StyledProperty<Rect> RectProperty;
public RectangleGeometry() { }
+ public RectangleGeometry(Rect rect, System.Double radiusX, System.Double radiusY) { }
+
public RectangleGeometry(Rect rect) { }
+ public System.Double RadiusX { get { throw null; } set { } }
+
+ public System.Double RadiusY { get { throw null; } set { } }
+
public Rect Rect { get { throw null; } set { } }
public override Geometry Clone() { throw null; }
@@ -9103,6 +9322,8 @@ namespace Avalonia.Media.Imaging
public DrawingContext CreateDrawingContext() { throw null; }
+ public DrawingContext CreateDrawingContext(System.Boolean clear) { throw null; }
+
public override void Dispose() { }
public void Render(Visual visual) { }
@@ -9224,11 +9445,17 @@ namespace Avalonia.Media.Immutable
public ImmutableRadialGradientBrush(System.Collections.Generic.IReadOnlyList<ImmutableGradientStop> gradientStops, System.Double opacity = 1, ImmutableTransform? transform = null, System.Nullable<RelativePoint> transformOrigin = null, GradientSpreadMethod spreadMethod = 0, System.Nullable<RelativePoint> center = null, System.Nullable<RelativePoint> gradientOrigin = null, System.Double radius = 0.5) : base(default!) { }
+ public ImmutableRadialGradientBrush(System.Collections.Generic.IReadOnlyList<ImmutableGradientStop> gradientStops, System.Double opacity = 1, ImmutableTransform? transform = null, System.Nullable<RelativePoint> transformOrigin = null, GradientSpreadMethod spreadMethod = 0, System.Nullable<RelativePoint> center = null, System.Nullable<RelativePoint> gradientOrigin = null, System.Nullable<RelativeScalar> radiusX = null, System.Nullable<RelativeScalar> radiusY = null) : base(default!) { }
+
public RelativePoint Center { get { throw null; } }
public RelativePoint GradientOrigin { get { throw null; } }
public System.Double Radius { get { throw null; } }
+
+ public RelativeScalar RadiusX { get { throw null; } }
+
+ public RelativeScalar RadiusY { get { throw null; } }
}
public partial class ImmutableSolidColorBrush : IImmutableSolidColorBrush, ISolidColorBrush, IBrush, IImmutableBrush
@@ -9345,6 +9572,8 @@ namespace Avalonia.Media.TextFormatting
public partial class GenericTextRunProperties : TextRunProperties
{
+ public GenericTextRunProperties(Typeface? typeface, FontFeatureCollection? fontFeatures, System.Double? fontRenderingEmSize = 12, TextDecorationCollection? textDecorations = null, IBrush? foregroundBrush = null, IBrush? backgroundBrush = null, BaselineAlignment? baselineAlignment = 3, System.Globalization.CultureInfo? cultureInfo = null) { }
+
public GenericTextRunProperties(Typeface? typeface, System.Double? fontRenderingEmSize = 12, TextDecorationCollection? textDecorations = null, IBrush? foregroundBrush = null, IBrush? backgroundBrush = null, BaselineAlignment? baselineAlignment = 3, System.Globalization.CultureInfo? cultureInfo = null) { }
public override IBrush? BackgroundBrush { get { throw null; } }
@@ -9353,6 +9582,8 @@ namespace Avalonia.Media.TextFormatting
public override System.Globalization.CultureInfo? CultureInfo { get { throw null; } }
+ public override FontFeatureCollection? FontFeatures { get { throw null; } }
+
public override System.Double? FontRenderingEmSize { get { throw null; } }
public override IBrush? ForegroundBrush { get { throw null; } }
@@ -9539,6 +9770,8 @@ namespace Avalonia.Media.TextFormatting
{
public TextLayout(ITextSource textSource, TextParagraphProperties paragraphProperties, TextTrimming? textTrimming = null, System.Double maxWidth = System.Double.PositiveInfinity, System.Double maxHeight = System.Double.PositiveInfinity, System.Int32 maxLines = 0) { }
+ public TextLayout(System.String? text, Typeface? typeface, FontFeatureCollection? fontFeatures, System.Double? fontSize, IBrush? foreground, TextAlignment? textAlignment = 0, TextWrapping? textWrapping = 0, TextTrimming? textTrimming = null, TextDecorationCollection? textDecorations = null, FlowDirection? flowDirection = 0, System.Double? maxWidth = System.Double.PositiveInfinity, System.Double? maxHeight = System.Double.PositiveInfinity, System.Double? lineHeight = System.Double.NaN, System.Double? letterSpacing = 0, System.Int32? maxLines = 0, System.Collections.Generic.IReadOnlyList<Utilities.ValueSpan<TextRunProperties>>? textStyleOverrides = null) { }
+
public TextLayout(System.String? text, Typeface? typeface, System.Double? fontSize, IBrush? foreground, TextAlignment? textAlignment = 0, TextWrapping? textWrapping = 0, TextTrimming? textTrimming = null, TextDecorationCollection? textDecorations = null, FlowDirection? flowDirection = 0, System.Double? maxWidth = System.Double.PositiveInfinity, System.Double? maxHeight = System.Double.PositiveInfinity, System.Double? lineHeight = System.Double.NaN, System.Double? letterSpacing = 0, System.Int32? maxLines = 0, System.Collections.Generic.IReadOnlyList<Utilities.ValueSpan<TextRunProperties>>? textStyleOverrides = null) { }
public System.Double Baseline { get { throw null; } }
@@ -9815,6 +10048,9 @@ namespace Avalonia.Media.TextFormatting
public virtual BaselineAlignment? BaselineAlignment { get { throw null; } }
public abstract System.Globalization.CultureInfo? CultureInfo { get; }
+
+ public virtual FontFeatureCollection? FontFeatures { get { throw null; } }
+
public abstract System.Double? FontRenderingEmSize { get; }
public abstract IBrush? ForegroundBrush { get; }
public abstract TextDecorationCollection? TextDecorations { get; }
@@ -9844,12 +10080,16 @@ namespace Avalonia.Media.TextFormatting
public sealed partial class TextShaperOptions
{
+ public TextShaperOptions(IGlyphTypeface typeface, System.Collections.Generic.IReadOnlyList<FontFeature>? fontFeatures, System.Double fontRenderingEmSize = 12, System.SByte bidiLevel = 0, System.Globalization.CultureInfo? culture = null, System.Double incrementalTabWidth = 0, System.Double letterSpacing = 0) { }
+
public TextShaperOptions(IGlyphTypeface typeface, System.Double fontRenderingEmSize = 12, System.SByte bidiLevel = 0, System.Globalization.CultureInfo? culture = null, System.Double incrementalTabWidth = 0, System.Double letterSpacing = 0) { }
public System.SByte BidiLevel { get { throw null; } }
public System.Globalization.CultureInfo? Culture { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList<FontFeature>? FontFeatures { get { throw null; } }
+
public System.Double FontRenderingEmSize { get { throw null; } }
public System.Double IncrementalTabWidth { get { throw null; } }
@@ -10721,6 +10961,7 @@ namespace Avalonia.Platform
public enum FormFactorType
{
Desktop = 1,
Mobile = 2,
+ TV = 3,
Unknown = 0
}
@@ -10902,6 +11143,12 @@ namespace Avalonia.Platform
{
}
[NotClientImplementable]
public partial interface IPlatformSettings
{
@@ -11223,8 +11470,6 @@ namespace Avalonia.Platform.Storage
public System.Collections.Generic.IReadOnlyList<FilePickerFileType>? FileTypeChoices { get { throw null; } set { } }
public System.Nullable<System.Boolean?>? ShowOverwritePrompt { get { throw null; } set { } }
-
- public System.String? SuggestedFileName { get { throw null; } set { } }
}
public partial class FolderPickerOpenOptions : PickerOptions
@@ -11232,6 +11477,12 @@ namespace Avalonia.Platform.Storage
public System.Boolean AllowMultiple { get { throw null; } set { } }
}
+ public partial interface ILauncher
+ {
+ System.Threading.Tasks.Task<System.Boolean> LaunchFileAsync(IStorageItem storageItem);
+ System.Threading.Tasks.Task<System.Boolean> LaunchUriAsync(System.Uri uri);
+ }
+
[NotClientImplementable]
public partial interface IStorageBookmarkFile : IStorageFile, IStorageItem, IStorageBookmarkItem
{
@@ -11298,10 +11549,19 @@ namespace Avalonia.Platform.Storage
System.Threading.Tasks.Task<IStorageFolder?> TryGetWellKnownFolderAsync(WellKnownFolder wellKnownFolder);
}
+ public static partial class LauncherExtensions
+ {
+ public static System.Threading.Tasks.Task<System.Boolean> LaunchDirectoryInfoAsync(this ILauncher launcher, System.IO.DirectoryInfo directoryInfo) { throw null; }
+
+ public static System.Threading.Tasks.Task<System.Boolean> LaunchFileInfoAsync(this ILauncher launcher, System.IO.FileInfo fileInfo) { throw null; }
+ }
+
public partial class PickerOptions
{
public PickerOptions() { }
+ public System.String? SuggestedFileName { get { throw null; } set { } }
+
public IStorageFolder? SuggestedStartLocation { get { throw null; } set { } }
public System.String? Title { get { throw null; } set { } }
@@ -11525,7 +11777,7 @@ namespace Avalonia.Rendering.Composition
public CompositionVisualCollection Children { get { throw null; } }
}
- public partial class CompositionCustomVisual : CompositionContainerVisual
+ public sealed partial class CompositionCustomVisual : CompositionContainerVisual
{
internal CompositionCustomVisual() { }
@@ -11544,15 +11796,21 @@ namespace Avalonia.Rendering.Composition
protected void Invalidate() { }
+ protected void Invalidate(Rect rc) { }
+
public virtual void OnAnimationFrameUpdate() { }
public virtual void OnMessage(System.Object message) { }
public abstract void OnRender(Media.ImmediateDrawingContext drawingContext);
protected void RegisterForNextAnimationFrameUpdate() { }
+
+ protected System.Boolean RenderClipContains(Point pt) { throw null; }
+
+ protected System.Boolean RenderClipIntersectes(Rect rc) { throw null; }
}
- public partial class CompositionDrawingSurface : CompositionSurface
+ public sealed partial class CompositionDrawingSurface : CompositionSurface
{
internal CompositionDrawingSurface() { }
@@ -11616,7 +11874,16 @@ namespace Avalonia.Rendering.Composition
public void StartAnimationGroup(Animations.ICompositionAnimationBase grp) { }
}
+ public partial class CompositionOptions
+ {
+ public CompositionOptions() { }
+
+ public System.Nullable<System.Boolean> UseRegionDirtyRectClipping { get { throw null; } set { } }
+
+ public System.Nullable<System.Boolean> UseSaveLayerRootClip { get { throw null; } set { } }
+ }
public sealed partial class CompositionPropertySet : CompositionObject
{
internal CompositionPropertySet() { }
@@ -12035,7 +12302,7 @@ namespace Avalonia.Rendering.Composition.Animations
public void RemoveAll() { }
}
- public partial class ExpressionAnimation : CompositionAnimation
+ public sealed partial class ExpressionAnimation : CompositionAnimation
{
internal ExpressionAnimation() { }
@@ -12046,7 +12313,7 @@ namespace Avalonia.Rendering.Composition.Animations
{
}
- public partial class ImplicitAnimationCollection : CompositionObject
+ public sealed partial class ImplicitAnimationCollection : CompositionObject
{
internal ImplicitAnimationCollection() { }
@@ -12122,7 +12389,7 @@ namespace Avalonia.Rendering.Composition.Transport
public override System.String ToString() { throw null; }
}
- public partial class CompositionBatch
+ public sealed partial class CompositionBatch
{
internal CompositionBatch() { }
@@ -12428,6 +12695,8 @@ namespace Avalonia.Threading
{
public AvaloniaSynchronizationContext() { }
+ public AvaloniaSynchronizationContext(Dispatcher dispatcher, DispatcherPriority priority) { }
+
public AvaloniaSynchronizationContext(DispatcherPriority priority) { }
public static System.Boolean AutoInstall { get { throw null; } set { } }
@@ -12476,6 +12745,14 @@ namespace Avalonia.Threading
public event System.EventHandler? ShutdownStarted { add { } remove { } }
+ public event DispatcherUnhandledExceptionEventHandler? UnhandledException { add { } remove { } }
+
+ public event DispatcherUnhandledExceptionFilterEventHandler? UnhandledExceptionFilter { add { } remove { } }
+
public DispatcherPriorityAwaitable AwaitWithPriority(System.Threading.Tasks.Task task, DispatcherPriority priority) { throw null; }
public DispatcherPriorityAwaitable<T> AwaitWithPriority<T>(System.Threading.Tasks.Task<T> task, DispatcherPriority priority) { throw null; }
@@ -12560,6 +12841,13 @@ namespace Avalonia.Threading
}
}
+ public abstract partial class DispatcherEventArgs
+ {
+ internal DispatcherEventArgs() { }
+
+ public Dispatcher Dispatcher { get { throw null; } }
+ }
+
public partial class DispatcherFrame
{
public DispatcherFrame() { }
@@ -12697,7 +12985,7 @@ namespace Avalonia.Threading
public void OnCompleted(System.Action continuation) { }
}
- public partial class DispatcherPriorityAwaitable<T> : DispatcherPriorityAwaitable
+ public sealed partial class DispatcherPriorityAwaitable<T> : DispatcherPriorityAwaitable
{
internal DispatcherPriorityAwaitable() { }
@@ -12733,6 +13021,46 @@ namespace Avalonia.Threading
public void Stop() { }
}
+ public sealed partial class DispatcherUnhandledExceptionEventArgs : DispatcherEventArgs
+ {
+ internal DispatcherUnhandledExceptionEventArgs() { }
+
+ public System.Exception Exception { get { throw null; } }
+
+ public System.Boolean Handled { get { throw null; } set { } }
+ }
+
+ public sealed partial class DispatcherUnhandledExceptionEventHandler
+ {
+ public DispatcherUnhandledExceptionEventHandler(System.Object @object, System.IntPtr method) { }
+
+ public virtual System.IAsyncResult BeginInvoke(System.Object sender, DispatcherUnhandledExceptionEventArgs e, System.AsyncCallback callback, System.Object @object) { throw null; }
+
+ public virtual void EndInvoke(System.IAsyncResult result) { }
+
+ public virtual void Invoke(System.Object sender, DispatcherUnhandledExceptionEventArgs e) { }
+ }
+
+ public sealed partial class DispatcherUnhandledExceptionFilterEventArgs : DispatcherEventArgs
+ {
+ internal DispatcherUnhandledExceptionFilterEventArgs() { }
+
+ public System.Exception Exception { get { throw null; } }
+
+ public System.Boolean RequestCatch { get { throw null; } set { } }
+ }
+
+ public sealed partial class DispatcherUnhandledExceptionFilterEventHandler
+ {
+ public DispatcherUnhandledExceptionFilterEventHandler(System.Object @object, System.IntPtr method) { }
+
+ public virtual System.IAsyncResult BeginInvoke(System.Object sender, DispatcherUnhandledExceptionFilterEventArgs e, System.AsyncCallback callback, System.Object @object) { throw null; }
+
+ public virtual void EndInvoke(System.IAsyncResult result) { }
+
+ public virtual void Invoke(System.Object sender, DispatcherUnhandledExceptionFilterEventArgs e) { }
+ }
+
@@ -12861,6 +13189,8 @@ namespace Avalonia.Utilities
public static System.Double Deg2Rad(System.Double angle) { throw null; }
+ public static System.Boolean DoPolygonsIntersect(System.UInt32 cPolyA, System.ReadOnlySpan<Vector> pPtPolyA, System.UInt32 cPolyB, System.ReadOnlySpan<Vector> pPtPolyB) { throw null; }
+
public static Point GetEllipsePoint(Point centre, System.Double radiusX, System.Double radiusY, System.Double angle) { throw null; }
public static (System.Double, System.Double) GetMinMax(System.Double a, System.Double b) { throw null; }
@@ -12877,6 +13207,8 @@ namespace Avalonia.Utilities
public static System.Boolean GreaterThanOrClose(System.Single value1, System.Single value2) { throw null; }
+ public static System.Boolean IsEntirelyContained(System.UInt32 cPolyA, System.ReadOnlySpan<Vector> pPtPolyA, System.UInt32 cPolyB, System.ReadOnlySpan<Vector> pPtPolyB) { throw null; }
+
public static System.Boolean IsOne(System.Double value) { throw null; }
public static System.Boolean IsOne(System.Single value) { throw null; }
@@ -12894,6 +13226,8 @@ namespace Avalonia.Utilities
public static System.Boolean LessThanOrClose(System.Single value1, System.Single value2) { throw null; }
public static System.Double Turn2Rad(System.Double angle) { throw null; }
+
+ public static System.Int32 WhichPolygonSideIntersects(System.UInt32 cPoly, System.ReadOnlySpan<Vector> pPtPoly, Vector ptCurrent, Vector vecEdge) { throw null; }
}
public static partial class SpanHelpers
@@ -13077,7 +13411,7 @@ namespace Avalonia.Utilities
void IWeakEventSubscriber<TEventArgs>.OnEvent(System.Object? sender, WeakEvent ev, TEventArgs e) { }
}
- public partial class WeakEvent<TSender, TEventArgs> : WeakEvent where TSender : class where TEventArgs : System.EventArgs
+ public sealed partial class WeakEvent<TSender, TEventArgs> : WeakEvent where TSender : class where TEventArgs : System.EventArgs
{
internal WeakEvent() { }
diff --git a/baseline/net6.0/Avalonia.Controls.ColorPicker.dll455841512.api.cs b/target/net6.0/Avalonia.Controls.ColorPicker.dll231121925.api.cs
index 7a1f6c7..603cf7b 100644
--- a/baseline/net6.0/Avalonia.Controls.ColorPicker.dll455841512.api.cs
+++ b/target/net6.0/Avalonia.Controls.ColorPicker.dll231121925.api.cs
@@ -51,6 +51,17 @@ namespace Avalonia.Controls
public partial class ColorPicker : ColorView
{
+ public static readonly Avalonia.StyledProperty<System.Object?> ContentProperty;
+ public static readonly Avalonia.StyledProperty<Controls.Templates.IDataTemplate?> ContentTemplateProperty;
+ public static readonly Avalonia.StyledProperty<Avalonia.Layout.HorizontalAlignment> HorizontalContentAlignmentProperty;
+ public static readonly Avalonia.StyledProperty<Avalonia.Layout.VerticalAlignment> VerticalContentAlignmentProperty;
+ public System.Object? Content { get { throw null; } set { } }
+
+ public Controls.Templates.IDataTemplate? ContentTemplate { get { throw null; } set { } }
+
+ public Avalonia.Layout.HorizontalAlignment? HorizontalContentAlignment { get { throw null; } set { } }
+
+ public Avalonia.Layout.VerticalAlignment? VerticalContentAlignment { get { throw null; } set { } }
}
diff --git a/baseline/net6.0/Avalonia.Controls.DataGrid.dll236192669.api.cs b/target/net6.0/Avalonia.Controls.DataGrid.dll62207899.api.cs
index 0171f03..1a17b97 100644
--- a/baseline/net6.0/Avalonia.Controls.DataGrid.dll236192669.api.cs
+++ b/target/net6.0/Avalonia.Controls.DataGrid.dll62207899.api.cs
@@ -11,12 +11,16 @@
[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)]
namespace Avalonia.Collections
{
- public sealed partial class DataGridCollectionView
+ public sealed partial class DataGridCollectionView : IDataGridCollectionView
{
public DataGridCollectionView(System.Collections.IEnumerable source, System.Boolean isDataSorted, System.Boolean isDataInGroupOrder) { }
public DataGridCollectionView(System.Collections.IEnumerable source) { }
+ System.Int32 IDataGridCollectionView.GroupingDepth { get { throw null; } }
+
+ System.Boolean IDataGridCollectionView.IsGrouping { get { throw null; } }
+
public System.Boolean CanAddNew { get { throw null; } }
public System.Boolean CanCancelEdit { get { throw null; } }
@@ -91,6 +95,8 @@ namespace Avalonia.Collections
public System.Object AddNew() { throw null; }
+ System.String IDataGridCollectionView.GetGroupingPropertyNameAtDepth(System.Int32 level) { throw null; }
+
public void CancelEdit() { }
public void CancelNew() { }
@@ -246,6 +252,57 @@ namespace Avalonia.Collections
public DataGridSortDescriptionCollection() { }
}
+ public partial interface IDataGridCollectionView
+ {
+ System.Boolean CanFilter { get; }
+
+ System.Boolean CanGroup { get; }
+
+ System.Boolean CanSort { get; }
+
+ System.Globalization.CultureInfo Culture { get; set; }
+
+ System.Object CurrentItem { get; }
+
+ System.Int32 CurrentPosition { get; }
+
+ System.Func<System.Object, System.Boolean> Filter { get; set; }
+
+ System.Int32 GroupingDepth { get; }
+
+ Collections.IAvaloniaReadOnlyList<System.Object> Groups { get; }
+
+ System.Boolean IsCurrentAfterLast { get; }
+
+ System.Boolean IsCurrentBeforeFirst { get; }
+
+ System.Boolean IsEmpty { get; }
+
+ System.Boolean IsGrouping { get; }
+
+ DataGridSortDescriptionCollection SortDescriptions { get; }
+
+ System.Collections.IEnumerable SourceCollection { get; }
+
+ event System.EventHandler CurrentChanged;
+ event System.EventHandler<DataGridCurrentChangingEventArgs> CurrentChanging;
+ System.Boolean Contains(System.Object item);
+ System.IDisposable DeferRefresh();
+ System.String GetGroupingPropertyNameAtDepth(System.Int32 level);
+ System.Boolean MoveCurrentTo(System.Object item);
+ System.Boolean MoveCurrentToFirst();
+ System.Boolean MoveCurrentToLast();
+ System.Boolean MoveCurrentToNext();
+ System.Boolean MoveCurrentToPosition(System.Int32 position);
+ System.Boolean MoveCurrentToPrevious();
+ void Refresh();
+ }
+
+ public partial interface IDataGridCollectionViewFactory
+ {
+ IDataGridCollectionView CreateView();
+ }
+
public sealed partial class PageChangingEventArgs
{
public PageChangingEventArgs(System.Int32 newPageIndex) { }
@@ -266,6 +323,7 @@ namespace Avalonia.Controls
public static readonly Avalonia.StyledProperty<System.Boolean> CanUserSortColumnsProperty;
public static readonly Avalonia.StyledProperty<Avalonia.Styling.ControlTheme> CellThemeProperty;
public static readonly Avalonia.StyledProperty<DataGridClipboardCopyMode> ClipboardCopyModeProperty;
+ public static readonly Avalonia.DirectProperty<DataGrid, Collections.IDataGridCollectionView> CollectionViewProperty;
public static readonly Avalonia.StyledProperty<System.Double> ColumnHeaderHeightProperty;
public static readonly Avalonia.StyledProperty<Avalonia.Styling.ControlTheme> ColumnHeaderThemeProperty;
public static readonly Avalonia.StyledProperty<DataGridLength> ColumnWidthProperty;
@@ -312,6 +370,8 @@ namespace Avalonia.Controls
public DataGridClipboardCopyMode ClipboardCopyMode { get { throw null; } set { } }
+ public Collections.IDataGridCollectionView CollectionView { get { throw null; } }
+
public System.Double ColumnHeaderHeight { get { throw null; } set { } }
public Avalonia.Styling.ControlTheme ColumnHeaderTheme { get { throw null; } set { } }
@@ -692,6 +752,10 @@ namespace Avalonia.Controls
public DataGridLength Width { get { throw null; } set { } }
+ public event System.EventHandler<Avalonia.Input.PointerPressedEventArgs> HeaderPointerPressed { add { } remove { } }
+
+ public event System.EventHandler<Avalonia.Input.PointerReleasedEventArgs> HeaderPointerReleased { add { } remove { } }
+
protected virtual void CancelCellEdit(Controls.Control editingElement, System.Object uneditedValue) { }
public void ClearSort() { }
@@ -734,6 +798,8 @@ namespace Avalonia.Controls
public System.Boolean AreSeparatorsVisible { get { throw null; } set { } }
public Avalonia.Media.IBrush SeparatorBrush { get { throw null; } set { } }
+
+ public event System.EventHandler<Avalonia.Input.KeyModifiers> LeftClick { add { } remove { } }
}
public partial class DataGridColumnReorderingEventArgs
@@ -960,6 +1026,7 @@ namespace Avalonia.Controls
{
public static readonly Avalonia.StyledProperty<System.Boolean> IsItemCountVisibleProperty;
public static readonly Avalonia.StyledProperty<System.Boolean> IsPropertyNameVisibleProperty;
+ public static readonly Avalonia.StyledProperty<System.String> ItemCountFormatProperty;
public static readonly Avalonia.StyledProperty<System.String> PropertyNameProperty;
public static readonly Avalonia.StyledProperty<System.Double> SublevelIndentProperty;
public DataGridRowGroupHeader() { }
@@ -968,6 +1035,8 @@ namespace Avalonia.Controls
public System.Boolean IsPropertyNameVisible { get { throw null; } set { } }
+ public System.String ItemCountFormat { get { throw null; } set { } }
+
public System.String PropertyName { get { throw null; } set { } }
public System.Double SublevelIndent { get { throw null; } set { } }
diff --git a/baseline/netstandard2.0/Avalonia.Controls.dll731242365.api.cs b/target/netstandard2.0/Avalonia.Controls.dll1729402830.api.cs
index 090d6fe..7325dd5 100644
--- a/baseline/netstandard2.0/Avalonia.Controls.dll731242365.api.cs
+++ b/target/netstandard2.0/Avalonia.Controls.dll1729402830.api.cs
@@ -125,6 +125,8 @@ namespace Avalonia
public virtual void RegisterServices() { }
+ public System.Object? TryGetFeature(System.Type featureType) { throw null; }
+
public System.Boolean? TryGetResource(System.Object key, Avalonia.Styling.ThemeVariant? theme, out System.Object? value) { throw null; }
}
@@ -142,6 +144,11 @@ namespace Avalonia
public static AppBuilder LogToTrace(this AppBuilder builder, Avalonia.Logging.LogEventLevel level = 3, params System.String[] areas) { throw null; }
}
+ public static partial class SystemFontAppBuilderExtension
+ {
+ public static AppBuilder WithSystemFontSource(this AppBuilder appBuilder, System.Uri fontSource) { throw null; }
+ }
+
public partial class UrlOpenedEventArgs
{
public UrlOpenedEventArgs(System.String[] urls) { }
@@ -1063,7 +1070,10 @@ namespace Avalonia.Controls
public partial class AutoCompleteBox : Primitives.TemplatedControl
{
public static readonly Avalonia.StyledProperty<System.Func<System.String, System.Threading.CancellationToken, System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<System.Object>>>> AsyncPopulatorProperty;
+ public static readonly Avalonia.StyledProperty<System.Int32> CaretIndexProperty;
public static readonly Avalonia.StyledProperty<AutoCompleteFilterMode> FilterModeProperty;
+ public static readonly Avalonia.StyledProperty<System.Object?> InnerLeftContentProperty;
+ public static readonly Avalonia.StyledProperty<System.Object?> InnerRightContentProperty;
public static readonly Avalonia.StyledProperty<System.Boolean> IsDropDownOpenProperty;
public static readonly Avalonia.StyledProperty<System.Boolean> IsTextCompletionEnabledProperty;
public static readonly Avalonia.StyledProperty<AutoCompleteFilterPredicate<System.Object?>?> ItemFilterProperty;
@@ -1071,6 +1081,7 @@ namespace Avalonia.Controls
public static readonly Avalonia.StyledProperty<System.Collections.IEnumerable?> ItemsSourceProperty;
public static readonly Avalonia.StyledProperty<Templates.IDataTemplate> ItemTemplateProperty;
public static readonly Avalonia.StyledProperty<System.Double> MaxDropDownHeightProperty;
+ public static readonly Avalonia.StyledProperty<System.Int32> MaxLengthProperty;
public static readonly Avalonia.StyledProperty<System.TimeSpan> MinimumPopulateDelayProperty;
public static readonly Avalonia.StyledProperty<System.Int32> MinimumPrefixLengthProperty;
public static readonly Avalonia.DirectProperty<AutoCompleteBox, System.String?> SearchTextProperty;
@@ -1083,8 +1094,14 @@ namespace Avalonia.Controls
public static readonly Avalonia.StyledProperty<System.String?> WatermarkProperty;
public System.Func<System.String, System.Threading.CancellationToken, System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<System.Object>>> AsyncPopulator { get { throw null; } set { } }
+ public System.Int32? CaretIndex { get { throw null; } set { } }
+
public AutoCompleteFilterMode? FilterMode { get { throw null; } set { } }
+ public System.Object? InnerLeftContent { get { throw null; } set { } }
+
+ public System.Object? InnerRightContent { get { throw null; } set { } }
+
public System.Boolean? IsDropDownOpen { get { throw null; } set { } }
public System.Boolean? IsTextCompletionEnabled { get { throw null; } set { } }
@@ -1099,6 +1116,8 @@ namespace Avalonia.Controls
public System.Double? MaxDropDownHeight { get { throw null; } set { } }
+ public System.Int32? MaxLength { get { throw null; } set { } }
+
public System.TimeSpan? MinimumPopulateDelay { get { throw null; } set { } }
public System.Int32? MinimumPrefixLength { get { throw null; } set { } }
@@ -1234,12 +1253,15 @@ namespace Avalonia.Controls
public partial class Border : Decorator
{
public static readonly Avalonia.StyledProperty<Avalonia.Media.IBrush?> BackgroundProperty;
+ public static readonly Avalonia.StyledProperty<Avalonia.Media.BackgroundSizing> BackgroundSizingProperty;
public static readonly Avalonia.StyledProperty<Avalonia.Media.IBrush?> BorderBrushProperty;
public static readonly Avalonia.StyledProperty<Avalonia.Thickness> BorderThicknessProperty;
public static readonly Avalonia.StyledProperty<Avalonia.Media.BoxShadows> BoxShadowProperty;
public static readonly Avalonia.StyledProperty<Avalonia.CornerRadius> CornerRadiusProperty;
public Avalonia.Media.IBrush? Background { get { throw null; } set { } }
+ public Avalonia.Media.BackgroundSizing BackgroundSizing { get { throw null; } set { } }
+
public Avalonia.Media.IBrush? BorderBrush { get { throw null; } set { } }
public Avalonia.Thickness BorderThickness { get { throw null; } set { } }
@@ -1898,6 +1920,7 @@ namespace Avalonia.Controls
public partial class DataValidationErrors : ContentControl
{
+ public static readonly Avalonia.AttachedProperty<System.Func<System.Object, System.Object>?> ErrorConverterProperty;
public static readonly Avalonia.AttachedProperty<System.Collections.Generic.IEnumerable<System.Object>?> ErrorsProperty;
public static readonly Avalonia.StyledProperty<Templates.IDataTemplate> ErrorTemplateProperty;
public static readonly Avalonia.AttachedProperty<System.Boolean> HasErrorsProperty;
@@ -1908,12 +1931,16 @@ namespace Avalonia.Controls
public static void ClearErrors(Control control) { }
+ public static System.Func<System.Object, System.Object?>? GetErrorConverter(Control control) { throw null; }
+
public static System.Collections.Generic.IEnumerable<System.Object>? GetErrors(Control control) { throw null; }
public static System.Boolean GetHasErrors(Control control) { throw null; }
public static void SetError(Control control, System.Exception? error) { }
+ public static void SetErrorConverter(Control control, System.Func<System.Object, System.Object>? converter) { }
+
public static void SetErrors(Control control, System.Collections.Generic.IEnumerable<System.Object>? errors) { }
}
@@ -2380,6 +2407,19 @@ namespace Avalonia.Controls
public static void SetHotKey(Avalonia.AvaloniaObject target, Avalonia.Input.KeyGesture value) { }
}
+ public partial class HyperlinkButton : Button
+ {
+ public static readonly Avalonia.StyledProperty<System.Boolean> IsVisitedProperty;
+ public static readonly Avalonia.StyledProperty<System.Uri?> NavigateUriProperty;
+ public System.Boolean IsVisited { get { throw null; } set { } }
+
+ public System.Uri? NavigateUri { get { throw null; } set { } }
+
+ protected override void OnClick() { }
+
+ protected override void OnPropertyChanged(Avalonia.AvaloniaPropertyChangedEventArgs change) { }
+ }
+
public abstract partial class IconElement : Primitives.TemplatedControl
{
}
@@ -2659,6 +2699,16 @@ namespace Avalonia.Controls
public System.Int32 value__;
}
+ public partial class MacOSProperties
+ {
+ public static readonly Avalonia.AttachedProperty<System.Boolean> IsTemplateIconProperty;
+ public MacOSProperties() { }
+
+ public static System.Boolean GetIsTemplateIcon(TrayIcon obj) { throw null; }
+
+ public static void SetIsTemplateIcon(TrayIcon obj, System.Boolean value) { }
+ }
+
public partial class MaskedTextBox : TextBox
{
public static readonly Avalonia.StyledProperty<System.Boolean> AsciiOnlyProperty;
@@ -2798,18 +2848,23 @@ namespace Avalonia.Controls
public static readonly Avalonia.Interactivity.RoutedEvent<Avalonia.Interactivity.RoutedEventArgs> ClickEvent;
public static readonly Avalonia.StyledProperty<System.Object?> CommandParameterProperty;
public static readonly Avalonia.StyledProperty<System.Windows.Input.ICommand?> CommandProperty;
+ public static readonly Avalonia.StyledProperty<System.String?> GroupNameProperty;
public static readonly Avalonia.StyledProperty<Avalonia.Input.KeyGesture?> HotKeyProperty;
public static readonly Avalonia.StyledProperty<System.Object?> IconProperty;
public static readonly Avalonia.StyledProperty<Avalonia.Input.KeyGesture?> InputGestureProperty;
+ public static readonly Avalonia.StyledProperty<System.Boolean> IsCheckedProperty;
public static readonly Avalonia.StyledProperty<System.Boolean> IsSubMenuOpenProperty;
public static readonly Avalonia.Interactivity.RoutedEvent<Avalonia.Interactivity.RoutedEventArgs> PointerEnteredItemEvent;
public static readonly Avalonia.Interactivity.RoutedEvent<Avalonia.Interactivity.RoutedEventArgs> PointerExitedItemEvent;
public static readonly Avalonia.StyledProperty<System.Boolean> StaysOpenOnClickProperty;
public static readonly Avalonia.Interactivity.RoutedEvent<Avalonia.Interactivity.RoutedEventArgs> SubmenuOpenedEvent;
+ public static readonly Avalonia.StyledProperty<MenuItemToggleType> ToggleTypeProperty;
public System.Windows.Input.ICommand? Command { get { throw null; } set { } }
public System.Object? CommandParameter { get { throw null; } set { } }
+ public System.String? GroupName { get { throw null; } set { } }
+
public System.Boolean HasSubMenu { get { throw null; } }
public Avalonia.Input.KeyGesture? HotKey { get { throw null; } set { } }
@@ -2818,6 +2873,8 @@ namespace Avalonia.Controls
public Avalonia.Input.KeyGesture? InputGesture { get { throw null; } set { } }
+ public System.Boolean IsChecked { get { throw null; } set { } }
+
protected override System.Boolean IsEnabledCore { get { throw null; } }
public System.Boolean IsSelected { get { throw null; } set { } }
@@ -2828,6 +2885,8 @@ namespace Avalonia.Controls
public System.Boolean StaysOpenOnClick { get { throw null; } set { } }
+ public MenuItemToggleType ToggleType { get { throw null; } set { } }
+
public event System.EventHandler<Avalonia.Interactivity.RoutedEventArgs>? Click { add { } remove { } }
public event System.EventHandler<Avalonia.Interactivity.RoutedEventArgs>? PointerEnteredItem { add { } remove { } }
@@ -2871,6 +2932,16 @@ namespace Avalonia.Controls
protected override void UpdateDataValidation(Avalonia.AvaloniaProperty property, Avalonia.Data.BindingValueType state, System.Exception? error) { }
}
+ public enum MenuItemToggleType
+ {
+ CheckBox = 1,
+ None = 0,
+ Radio = 2
+ }
+
public partial class NativeControlHost : Control
{
protected virtual Avalonia.Platform.IPlatformHandle CreateNativeControlCore(Avalonia.Platform.IPlatformHandle parent) { throw null; }
@@ -2921,6 +2992,12 @@ namespace Avalonia.Controls
public partial class NativeMenuBar : Primitives.TemplatedControl
{
public static readonly Avalonia.AttachedProperty<System.Boolean> EnableMenuItemClickForwardingProperty;
+ protected override void OnApplyTemplate(Primitives.TemplateAppliedEventArgs e) { }
+
+ protected override void OnAttachedToVisualTree(Avalonia.VisualTreeAttachmentEventArgs e) { }
+
+ protected override void OnDetachedFromVisualTree(Avalonia.VisualTreeAttachmentEventArgs e) { }
+
public static void SetEnableMenuItemClickForwarding(MenuItem menuItem, System.Boolean enable) { }
}
@@ -2933,6 +3010,7 @@ namespace Avalonia.Controls
public static readonly Avalonia.StyledProperty<Avalonia.Media.Imaging.Bitmap?> IconProperty;
public static readonly Avalonia.StyledProperty<System.Boolean> IsCheckedProperty;
public static readonly Avalonia.StyledProperty<System.Boolean> IsEnabledProperty;
+ public static readonly Avalonia.StyledProperty<System.Boolean> IsVisibleProperty;
public static readonly Avalonia.StyledProperty<NativeMenu?> MenuProperty;
public static readonly Avalonia.StyledProperty<NativeMenuItemToggleType> ToggleTypeProperty;
public static readonly Avalonia.StyledProperty<System.String?> ToolTipProperty;
@@ -2956,6 +3034,8 @@ namespace Avalonia.Controls
public System.Boolean? IsEnabled { get { throw null; } set { } }
+ public System.Boolean? IsVisible { get { throw null; } set { } }
+
public NativeMenu? Menu { get { throw null; } set { } }
public NativeMenuItemToggleType? ToggleType { get { throw null; } set { } }
@@ -2999,6 +3079,8 @@ namespace Avalonia.Controls
public static readonly Avalonia.StyledProperty<System.String> FormatStringProperty;
public static readonly Avalonia.StyledProperty<Avalonia.Layout.HorizontalAlignment> HorizontalContentAlignmentProperty;
public static readonly Avalonia.StyledProperty<System.Decimal> IncrementProperty;
+ public static readonly Avalonia.StyledProperty<System.Object?> InnerLeftContentProperty;
+ public static readonly Avalonia.StyledProperty<System.Object?> InnerRightContentProperty;
public static readonly Avalonia.StyledProperty<System.Boolean> IsReadOnlyProperty;
public static readonly Avalonia.StyledProperty<System.Decimal> MaximumProperty;
public static readonly Avalonia.StyledProperty<System.Decimal> MinimumProperty;
@@ -3024,6 +3106,10 @@ namespace Avalonia.Controls
public System.Decimal Increment { get { throw null; } set { } }
+ public System.Object? InnerLeftContent { get { throw null; } set { } }
+
+ public System.Object? InnerRightContent { get { throw null; } set { } }
+
public System.Boolean IsReadOnly { get { throw null; } set { } }
public System.Decimal Maximum { get { throw null; } set { } }
@@ -3726,6 +3812,7 @@ namespace Avalonia.Controls
public static readonly Avalonia.DirectProperty<SelectableTextBlock, System.String> SelectedTextProperty;
public static readonly Avalonia.StyledProperty<Avalonia.Media.IBrush?> SelectionBrushProperty;
public static readonly Avalonia.StyledProperty<System.Int32> SelectionEndProperty;
+ public static readonly Avalonia.StyledProperty<Avalonia.Media.IBrush?> SelectionForegroundBrushProperty;
public static readonly Avalonia.StyledProperty<System.Int32> SelectionStartProperty;
public System.Boolean CanCopy { get { throw null; } }
@@ -3735,6 +3822,8 @@ namespace Avalonia.Controls
public System.Int32 SelectionEnd { get { throw null; } set { } }
+ public Avalonia.Media.IBrush? SelectionForegroundBrush { get { throw null; } set { } }
+
public System.Int32 SelectionStart { get { throw null; } set { } }
public event System.EventHandler<Avalonia.Interactivity.RoutedEventArgs>? CopyingToClipboard { add { } remove { } }
@@ -3906,13 +3997,16 @@ namespace Avalonia.Controls
public static readonly Avalonia.StyledProperty<System.Object?> CommandParameterProperty;
public static readonly Avalonia.StyledProperty<System.Windows.Input.ICommand?> CommandProperty;
public static readonly Avalonia.StyledProperty<Primitives.FlyoutBase?> FlyoutProperty;
+ public static readonly Avalonia.StyledProperty<Avalonia.Input.KeyGesture?> HotKeyProperty;
public System.Windows.Input.ICommand? Command { get { throw null; } set { } }
public System.Object? CommandParameter { get { throw null; } set { } }
public Primitives.FlyoutBase? Flyout { get { throw null; } set { } }
- protected override System.Boolean IsEnabledCore { get { throw null; } }
+ public Avalonia.Input.KeyGesture? HotKey { get { throw null; } set { } }
+
+ protected override System.Boolean? IsEnabledCore { get { throw null; } }
public event System.EventHandler<Avalonia.Interactivity.RoutedEventArgs>? Click { add { } remove { } }
@@ -4136,9 +4230,12 @@ namespace Avalonia.Controls
public partial class TextBlock : Control
{
+ protected Avalonia.Size _constraint;
+ protected System.Collections.Generic.IReadOnlyList<Avalonia.Media.TextFormatting.TextRun>? _textRuns;
public static readonly Avalonia.StyledProperty<Avalonia.Media.IBrush?> BackgroundProperty;
public static readonly Avalonia.AttachedProperty<System.Double> BaselineOffsetProperty;
public static readonly Avalonia.StyledProperty<Avalonia.Media.FontFamily> FontFamilyProperty;
+ public static readonly Avalonia.StyledProperty<Avalonia.Media.FontFeatureCollection?> FontFeaturesProperty;
public static readonly Avalonia.StyledProperty<System.Double> FontSizeProperty;
public static readonly Avalonia.StyledProperty<Avalonia.Media.FontStretch> FontStretchProperty;
public static readonly Avalonia.StyledProperty<Avalonia.Media.FontStyle> FontStyleProperty;
@@ -4163,6 +4260,8 @@ namespace Avalonia.Controls
public Avalonia.Media.FontFamily FontFamily { get { throw null; } set { } }
+ public Avalonia.Media.FontFeatureCollection? FontFeatures { get { throw null; } set { } }
+
public System.Double FontSize { get { throw null; } set { } }
public Avalonia.Media.FontStretch FontStretch { get { throw null; } set { } }
@@ -4262,19 +4380,21 @@ namespace Avalonia.Controls
public static readonly Avalonia.DirectProperty<TextBox, System.Boolean> CanPasteProperty;
public static readonly Avalonia.DirectProperty<TextBox, System.Boolean> CanRedoProperty;
public static readonly Avalonia.DirectProperty<TextBox, System.Boolean> CanUndoProperty;
+ public static readonly Avalonia.StyledProperty<System.TimeSpan> CaretBlinkIntervalProperty;
public static readonly Avalonia.StyledProperty<Avalonia.Media.IBrush?> CaretBrushProperty;
public static readonly Avalonia.StyledProperty<System.Int32> CaretIndexProperty;
public static readonly Avalonia.Interactivity.RoutedEvent<Avalonia.Interactivity.RoutedEventArgs> CopyingToClipboardEvent;
public static readonly Avalonia.Interactivity.RoutedEvent<Avalonia.Interactivity.RoutedEventArgs> CuttingToClipboardEvent;
public static readonly Avalonia.StyledProperty<Avalonia.Layout.HorizontalAlignment> HorizontalContentAlignmentProperty;
public static readonly Avalonia.StyledProperty<System.Object?> InnerLeftContentProperty;
public static readonly Avalonia.StyledProperty<System.Object?> InnerRightContentProperty;
public static readonly Avalonia.StyledProperty<System.Boolean> IsReadOnlyProperty;
public static readonly Avalonia.StyledProperty<System.Boolean> IsUndoEnabledProperty;
public static readonly Avalonia.StyledProperty<System.Double> LetterSpacingProperty;
public static readonly Avalonia.StyledProperty<System.Double> LineHeightProperty;
public static readonly Avalonia.StyledProperty<System.Int32> MaxLengthProperty;
public static readonly Avalonia.StyledProperty<System.Int32> MaxLinesProperty;
+ public static readonly Avalonia.StyledProperty<System.Int32> MinLinesProperty;
public static readonly Avalonia.StyledProperty<System.String> NewLineProperty;
public static readonly Avalonia.StyledProperty<System.Char> PasswordCharProperty;
public static readonly Avalonia.Interactivity.RoutedEvent<Avalonia.Interactivity.RoutedEventArgs> PastingFromClipboardEvent;
@@ -4308,6 +4428,8 @@ namespace Avalonia.Controls
public System.Boolean CanUndo { get { throw null; } }
+ public System.TimeSpan CaretBlinkInterval { get { throw null; } set { } }
+
public Avalonia.Media.IBrush? CaretBrush { get { throw null; } set { } }
public System.Int32 CaretIndex { get { throw null; } set { } }
@@ -4334,6 +4456,8 @@ namespace Avalonia.Controls
public System.Int32 MaxLines { get { throw null; } set { } }
+ public System.Int32 MinLines { get { throw null; } set { } }
+
public System.String NewLine { get { throw null; } set { } }
public System.Char PasswordChar { get { throw null; } set { } }
@@ -4641,6 +4765,7 @@ namespace Avalonia.Controls
{
public static readonly Avalonia.StyledProperty<Avalonia.Styling.ThemeVariant> ActualThemeVariantProperty;
public static readonly Avalonia.DirectProperty<TopLevel, WindowTransparencyLevel> ActualTransparencyLevelProperty;
+ public static readonly Avalonia.AttachedProperty<System.Boolean> AutoSafeAreaPaddingProperty;
public static readonly Avalonia.Interactivity.RoutedEvent<Avalonia.Interactivity.RoutedEventArgs> BackRequestedEvent;
public static readonly Avalonia.DirectProperty<TopLevel, Avalonia.Size> ClientSizeProperty;
public static readonly Avalonia.DirectProperty<TopLevel, System.Nullable<Avalonia.Size>> FrameSizeProperty;
@@ -4665,8 +4790,12 @@ namespace Avalonia.Controls
public System.Nullable<Avalonia.Size> FrameSize { get { throw null; } protected set { } }
+ public Platform.IInputPane? InputPane { get { throw null; } }
+
public Platform.IInsetsManager? InsetsManager { get { throw null; } }
+ public Avalonia.Platform.Storage.ILauncher Launcher { get { throw null; } }
+
public Avalonia.Platform.ITopLevelImpl? PlatformImpl { get { throw null; } }
public Avalonia.Platform.IPlatformSettings? PlatformSettings { get { throw null; } }
@@ -4691,6 +4820,8 @@ namespace Avalonia.Controls
public event System.EventHandler? ScalingChanged { add { } remove { } }
+ public static System.Boolean GetAutoSafeAreaPadding(Control control) { throw null; }
+
public static Avalonia.Media.SolidColorBrush? GetSystemBarColor(Control control) { throw null; }
public static TopLevel? GetTopLevel(Avalonia.Visual? visual) { throw null; }
@@ -4711,6 +4842,8 @@ namespace Avalonia.Controls
public System.Threading.Tasks.Task<System.IDisposable> RequestPlatformInhibition(PlatformInhibitionType type, System.String reason) { throw null; }
+ public static void SetAutoSafeAreaPadding(Control control, System.Boolean value) { }
+
public static void SetSystemBarColor(Control control, Avalonia.Media.SolidColorBrush? color) { }
protected void StartRendering() { }
@@ -5007,9 +5140,43 @@ namespace Avalonia.Controls
protected internal override Control? ScrollIntoView(System.Int32? index) { throw null; }
}
+ public static partial class Win32Properties
+ {
+ public static void AddWindowStylesCallback(TopLevel topLevel, CustomWindowStylesCallback? callback) { }
+
+ public static void AddWndProcHookCallback(TopLevel topLevel, CustomWndProcHookCallback? callback) { }
+
+ public static void RemoveWindowStylesCallback(TopLevel topLevel, CustomWindowStylesCallback? callback) { }
+
+ public static void RemoveWndProcHookCallback(TopLevel topLevel, CustomWndProcHookCallback? callback) { }
+
+ public delegate (uint style, uint exStyle) CustomWindowStylesCallback(uint style, uint exStyle);
+ public delegate IntPtr CustomWndProcHookCallback(IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam, ref bool handled);
+ }
+
public partial class Window : WindowBase
{
public static readonly Avalonia.StyledProperty<System.Boolean> CanResizeProperty;
+ public static readonly Avalonia.StyledProperty<WindowClosingBehavior> ClosingBehaviorProperty;
public static readonly Avalonia.StyledProperty<Avalonia.Platform.ExtendClientAreaChromeHints> ExtendClientAreaChromeHintsProperty;
public static readonly Avalonia.StyledProperty<System.Double> ExtendClientAreaTitleBarHeightHintProperty;
public static readonly Avalonia.StyledProperty<System.Boolean> ExtendClientAreaToDecorationsHintProperty;
@@ -5032,6 +5199,8 @@ namespace Avalonia.Controls
public System.Boolean CanResize { get { throw null; } set { } }
+ public WindowClosingBehavior ClosingBehavior { get { throw null; } set { } }
+
public Avalonia.Platform.ExtendClientAreaChromeHints ExtendClientAreaChromeHints { get { throw null; } set { } }
public System.Double ExtendClientAreaTitleBarHeightHint { get { throw null; } set { } }
@@ -5152,6 +5321,8 @@ namespace Avalonia.Controls
protected override void OnOpened(System.EventArgs e) { }
+ protected override void OnPropertyChanged(Avalonia.AvaloniaPropertyChangedEventArgs change) { }
+
protected virtual void OnResized(WindowResizedEventArgs e) { }
public virtual void Show() { }
@@ -5169,6 +5340,15 @@ namespace Avalonia.Controls
public const WindowCloseReason WindowClosing = 1;
}
+ public enum WindowClosingBehavior
+ {
+ OwnerAndChildWindows = 0,
+ OwnerWindowOnly = 1
+ }
+
public partial class WindowClosingEventArgs
{
internal WindowClosingEventArgs() { }
@@ -5293,6 +5473,21 @@ namespace Avalonia.Controls
protected override Avalonia.Size MeasureOverride(Avalonia.Size constraint) { throw null; }
}
+
+ public partial class X11Properties
+ {
+ public static readonly Avalonia.AttachedProperty<Platform.X11NetWmWindowType> NetWmWindowTypeProperty;
+ public static readonly Avalonia.AttachedProperty<System.String?> WmClassProperty;
+ public X11Properties() { }
+
+ public static Platform.X11NetWmWindowType GetNetWmWindowType(Window obj) { throw null; }
+
+ public static System.String? GetWmClass(Window obj) { throw null; }
+
+ public static void SetNetWmWindowType(Window obj, Platform.X11NetWmWindowType value) { }
+
+ public static void SetWmClass(Window obj, System.String? value) { }
+ }
}
namespace Avalonia.Controls.ApplicationLifetimes
@@ -5362,10 +5557,14 @@ namespace Avalonia.Controls.ApplicationLifetimes
public System.String[] Args { get { throw null; } }
}
+ [Obsolete("This interface has no effect. Instead use Application.Current.TryGetFeature<IActivatableLifetime>().", true)]
- public partial interface IActivatableApplicationLifetime
+ public partial interface IActivatableApplicationLifetime : IActivatableLifetime
{
- event System.EventHandler<ActivatedEventArgs> Activated;
- event System.EventHandler<ActivatedEventArgs> Deactivated;
+ }
+
+ public partial interface IActivatableLifetime
+ {
+ event System.EventHandler<ActivatedEventArgs>? Activated;
+ event System.EventHandler<ActivatedEventArgs>? Deactivated;
System.Boolean TryEnterBackground();
System.Boolean TryLeaveBackground();
}
@@ -5713,6 +5912,7 @@ namespace Avalonia.Controls.Documents
{
public static readonly Avalonia.StyledProperty<Avalonia.Media.IBrush?> BackgroundProperty;
public static readonly Avalonia.AttachedProperty<Avalonia.Media.FontFamily> FontFamilyProperty;
+ public static readonly Avalonia.AttachedProperty<Avalonia.Media.FontFeatureCollection?> FontFeaturesProperty;
public static readonly Avalonia.AttachedProperty<System.Double> FontSizeProperty;
public static readonly Avalonia.AttachedProperty<Avalonia.Media.FontStretch> FontStretchProperty;
public static readonly Avalonia.AttachedProperty<Avalonia.Media.FontStyle> FontStyleProperty;
@@ -5724,6 +5924,8 @@ namespace Avalonia.Controls.Documents
public Avalonia.Media.FontFamily FontFamily { get { throw null; } set { } }
+ public Avalonia.Media.FontFeatureCollection? FontFeatures { get { throw null; } set { } }
+
public System.Double FontSize { get { throw null; } set { } }
public Avalonia.Media.FontStretch FontStretch { get { throw null; } set { } }
@@ -5736,6 +5938,8 @@ namespace Avalonia.Controls.Documents
public static Avalonia.Media.FontFamily GetFontFamily(Control control) { throw null; }
+ public static Avalonia.Media.FontFeatureCollection? GetFontFeatures(Control control) { throw null; }
+
public static System.Double GetFontSize(Control control) { throw null; }
public static Avalonia.Media.FontStretch GetFontStretch(Control control) { throw null; }
@@ -5750,6 +5954,8 @@ namespace Avalonia.Controls.Documents
public static void SetFontFamily(Control control, Avalonia.Media.FontFamily value) { }
+ public static void SetFontFeatures(Control control, Avalonia.Media.FontFeatureCollection? value) { }
+
public static void SetFontSize(Control control, System.Double value) { }
public static void SetFontStretch(Control control, Avalonia.Media.FontStretch value) { }
@@ -5936,19 +6142,25 @@ namespace Avalonia.Controls.Notifications
public partial class Notification : INotification
{
+ public Notification() { }
+
public Notification(System.String? title, System.String? message, NotificationType? type = 0, System.Nullable<System.TimeSpan?>? expiration = null, System.Action? onClick = null, System.Action? onClose = null) { }
- public System.TimeSpan? Expiration { get { throw null; } }
+ public System.TimeSpan? Expiration { get { throw null; } set { } }
- public System.String? Message { get { throw null; } }
+ public System.String? Message { get { throw null; } set { } }
- public System.Action? OnClick { get { throw null; } }
+ public System.Action? OnClick { get { throw null; } set { } }
- public System.Action? OnClose { get { throw null; } }
+ public System.Action? OnClose { get { throw null; } set { } }
- public System.String? Title { get { throw null; } }
+ public System.String? Title { get { throw null; } set { } }
- public NotificationType? Type { get { throw null; } }
+ public NotificationType? Type { get { throw null; } set { } }
+
+ public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged { add { } remove { } }
+
+ protected virtual void OnPropertyChanged(System.String? propertyName = null) { }
}
public partial class NotificationCard : ContentControl
@@ -5977,8 +6191,10 @@ namespace Avalonia.Controls.Notifications
public enum NotificationPosition
{
+ BottomCenter = 5;
BottomLeft = 2,
BottomRight = 3,
+ TopCenter = 4,
TopLeft = 0,
TopRight = 1
@@ -5999,6 +6215,8 @@ namespace Avalonia.Controls.Notifications
{
public static readonly Avalonia.StyledProperty<System.Int32> MaxItemsProperty;
public static readonly Avalonia.StyledProperty<NotificationPosition> PositionProperty;
+ public WindowNotificationManager() { }
+
public WindowNotificationManager(TopLevel? host) { }
public System.Int32 MaxItems { get { throw null; } set { } }
@@ -6011,6 +6229,8 @@ namespace Avalonia.Controls.Notifications
public void Show(INotification content) { }
+ public void Show(System.Object content, NotificationType? type, System.Nullable<System.TimeSpan?>? expiration = null, System.Action? onClick = null, System.Action? onClose = null, System.String[]? classes = null) { }
+
public void Show(System.Object content) { }
}
}
@@ -6060,6 +6280,15 @@ namespace Avalonia.Controls.Platform
protected internal virtual void WindowDeactivated(System.Object? sender, System.EventArgs e) { }
}
+ public partial interface IInputPane
+ {
+ Avalonia.Rect OccludedRect { get; }
+
+ InputPaneState State { get; }
+
+ event System.EventHandler<InputPaneStateEventArgs>? StateChanged;
+ }
+
public partial interface IInsetsManager
{
System.Boolean DisplayEdgeToEdge { get; set; }
@@ -6112,6 +6341,42 @@ namespace Avalonia.Controls.Platform
INativeMenuExporter? NativeMenuExporter { get; }
}
+ public abstract partial class InputPaneBase : IInputPane
+ {
+ internal InputPaneBase() { }
+ }
+
+ public enum InputPaneState
+ {
+ Closed = 0,
+ Open = 1
+ }
+
+ public sealed partial class InputPaneStateEventArgs
+ {
+ public InputPaneStateEventArgs(InputPaneState? newState, System.Nullable<Avalonia.Rect?>? startRect, Avalonia.Rect? endRect, System.TimeSpan? animationDuration, Avalonia.Animation.Easings.IEasing? easing) { }
+
+ public InputPaneStateEventArgs(InputPaneState? newState, System.Nullable<Avalonia.Rect?>? startRect, Avalonia.Rect? endRect) { }
+
+ public System.TimeSpan? AnimationDuration { get { throw null; } }
+
+ public Avalonia.Animation.Easings.IEasing? Easing { get { throw null; } }
+
+ public Avalonia.Rect? EndRect { get { throw null; } }
+
+ public InputPaneState? NewState { get { throw null; } }
+
+ public System.Nullable<Avalonia.Rect?>? StartRect { get { throw null; } }
+ }
+
+ public abstract partial class InsetsManagerBase : IInsetsManager
+ {
+ internal InsetsManagerBase() { }
+ }
+
public partial interface IStorageProviderFactory
{
Avalonia.Platform.Storage.IStorageProvider CreateProvider(TopLevel topLevel);
@@ -6128,6 +6393,14 @@ namespace Avalonia.Controls.Platform
event System.EventHandler OnIsNativeMenuExportedChanged;
}
public partial class ManagedDispatcherImpl
{
public ManagedDispatcherImpl(IManagedDispatcherInputProvider? inputProvider) { }
@@ -6199,6 +6472,21 @@ namespace Avalonia.Controls.Platform
+ public enum X11NetWmWindowType
+ {
+ Desktop = 7,
+ Dialog = 1,
+ Dock = 6,
+ Menu = 3,
+ Normal = 0,
+ Splash = 5,
+ Toolbar = 4,
+ Utility = 2
+ }
}
namespace Avalonia.Controls.Platform.Surfaces
@@ -6228,6 +6516,7 @@ namespace Avalonia.Controls.Presenters
public partial class ContentPresenter : Control
{
public static readonly Avalonia.StyledProperty<Avalonia.Media.IBrush?> BackgroundProperty;
+ public static readonly Avalonia.StyledProperty<Avalonia.Media.BackgroundSizing> BackgroundSizingProperty;
public static readonly Avalonia.StyledProperty<Avalonia.Media.IBrush?> BorderBrushProperty;
public static readonly Avalonia.StyledProperty<Avalonia.Thickness> BorderThicknessProperty;
public static readonly Avalonia.StyledProperty<Avalonia.Media.BoxShadows> BoxShadowProperty;
@@ -6252,6 +6541,8 @@ namespace Avalonia.Controls.Presenters
public static readonly Avalonia.StyledProperty<Avalonia.Layout.VerticalAlignment> VerticalContentAlignmentProperty;
public Avalonia.Media.IBrush? Background { get { throw null; } set { } }
+ public Avalonia.Media.BackgroundSizing BackgroundSizing { get { throw null; } set { } }
+
public Avalonia.Media.IBrush? BorderBrush { get { throw null; } set { } }
public Avalonia.Thickness BorderThickness { get { throw null; } set { } }
@@ -6399,6 +6690,7 @@ namespace Avalonia.Controls.Presenters
public partial class TextPresenter : Control
{
public static readonly Avalonia.StyledProperty<Avalonia.Media.IBrush?> BackgroundProperty;
+ public static readonly Avalonia.StyledProperty<System.TimeSpan> CaretBlinkIntervalProperty;
public static readonly Avalonia.StyledProperty<Avalonia.Media.IBrush?> CaretBrushProperty;
public static readonly Avalonia.StyledProperty<System.Int32> CaretIndexProperty;
public static readonly Avalonia.StyledProperty<System.Double> LetterSpacingProperty;
@@ -6418,12 +6710,16 @@ namespace Avalonia.Controls.Presenters
protected override System.Boolean? BypassFlowDirectionPolicies { get { throw null; } }
+ public System.TimeSpan? CaretBlinkInterval { get { throw null; } set { } }
+
public Avalonia.Media.IBrush? CaretBrush { get { throw null; } set { } }
public System.Int32? CaretIndex { get { throw null; } set { } }
public Avalonia.Media.FontFamily FontFamily { get { throw null; } set { } }
+ public Avalonia.Media.FontFeatureCollection? FontFeatures { get { throw null; } set { } }
+
public System.Double? FontSize { get { throw null; } set { } }
public Avalonia.Media.FontStretch? FontStretch { get { throw null; } set { } }
@@ -6534,7 +6830,7 @@ namespace Avalonia.Controls.Primitives
protected override Avalonia.Size MeasureOverride(Avalonia.Size availableSize) { throw null; }
- public static void SetAdornedElement(Avalonia.Visual adorner, Avalonia.Visual adorned) { }
+ public static void SetAdornedElement(Avalonia.Visual adorner, Avalonia.Visual? adorned) { }
public static void SetAdorner(Avalonia.Visual visual, Control? adorner) { }
@@ -7267,6 +7563,16 @@ namespace Avalonia.Controls.Primitives
protected System.Boolean? UpdateSelectionFromEventSource(System.Object? eventSource, System.Boolean? select = true, System.Boolean? rangeModifier = false, System.Boolean? toggleModifier = false, System.Boolean? rightButton = false, System.Boolean? fromFocus = false) { throw null; }
}
+ public enum SelectionHandleType
+ {
+ Caret = 0,
+ End = 2,
+ Start = 1
+ }
@@ -7323,10 +7629,12 @@ namespace Avalonia.Controls.Primitives
public partial class TemplatedControl : Control
{
public static readonly Avalonia.StyledProperty<Avalonia.Media.IBrush?> BackgroundProperty;
+ public static readonly Avalonia.StyledProperty<Avalonia.Media.BackgroundSizing> BackgroundSizingProperty;
public static readonly Avalonia.StyledProperty<Avalonia.Media.IBrush?> BorderBrushProperty;
public static readonly Avalonia.StyledProperty<Avalonia.Thickness> BorderThicknessProperty;
public static readonly Avalonia.StyledProperty<Avalonia.CornerRadius> CornerRadiusProperty;
public static readonly Avalonia.StyledProperty<Avalonia.Media.FontFamily> FontFamilyProperty;
+ public static readonly Avalonia.StyledProperty<Avalonia.Media.FontFeatureCollection?> FontFeaturesProperty;
public static readonly Avalonia.StyledProperty<System.Double> FontSizeProperty;
public static readonly Avalonia.StyledProperty<Avalonia.Media.FontStretch> FontStretchProperty;
public static readonly Avalonia.StyledProperty<Avalonia.Media.FontStyle> FontStyleProperty;
@@ -7338,6 +7646,8 @@ namespace Avalonia.Controls.Primitives
public static readonly Avalonia.StyledProperty<Templates.IControlTemplate?> TemplateProperty;
public Avalonia.Media.IBrush? Background { get { throw null; } set { } }
+ public Avalonia.Media.BackgroundSizing BackgroundSizing { get { throw null; } set { } }
+
public Avalonia.Media.IBrush? BorderBrush { get { throw null; } set { } }
public Avalonia.Thickness BorderThickness { get { throw null; } set { } }
@@ -7346,6 +7656,8 @@ namespace Avalonia.Controls.Primitives
public Avalonia.Media.FontFamily FontFamily { get { throw null; } set { } }
+ public Avalonia.Media.FontFeatureCollection? FontFeatures { get { throw null; } set { } }
+
public System.Double FontSize { get { throw null; } set { } }
public Avalonia.Media.FontStretch FontStretch { get { throw null; } set { } }
@@ -7387,6 +7699,46 @@ namespace Avalonia.Controls.Primitives
public static void SetText(Control control, System.String? text) { }
}
+ public partial class TextSelectionHandle : Thumb
+ {
+ protected override void ArrangeCore(Avalonia.Rect finalRect) { }
+
+ protected override void OnAttachedToVisualTree(Avalonia.VisualTreeAttachmentEventArgs e) { }
+
+ protected override void OnDragCompleted(Avalonia.Input.VectorEventArgs e) { }
+
+ protected override void OnDragDelta(Avalonia.Input.VectorEventArgs e) { }
+
+ protected override void OnDragStarted(Avalonia.Input.VectorEventArgs e) { }
+
+ protected override void OnLoaded(Avalonia.Interactivity.RoutedEventArgs args) { }
+
+ protected override void OnPointerCaptureLost(Avalonia.Input.PointerCaptureLostEventArgs e) { }
+
+ protected override void OnPointerMoved(Avalonia.Input.PointerEventArgs e) { }
+
+ protected override void OnPointerPressed(Avalonia.Input.PointerPressedEventArgs e) { }
+
+ protected override void OnPointerReleased(Avalonia.Input.PointerReleasedEventArgs e) { }
+ }
+
+ public partial class TextSelectorLayer : Canvas
+ {
+ public Avalonia.Size AvailableSize { get { throw null; } }
+
+ protected override System.Boolean BypassFlowDirectionPolicies { get { throw null; } }
+
+ public void Add(Control control) { }
+
+ protected override Avalonia.Size ArrangeOverride(Avalonia.Size finalSize) { throw null; }
+
+ public static TextSelectorLayer? GetTextSelectorLayer(Avalonia.Visual visual) { throw null; }
+
+ protected override Avalonia.Size MeasureOverride(Avalonia.Size availableSize) { throw null; }
+
+ public void Remove(Control control) { }
+ }
+
public partial class Thumb : TemplatedControl
{
public static readonly Avalonia.Interactivity.RoutedEvent<Avalonia.Input.VectorEventArgs> DragCompletedEvent;
@@ -7527,6 +7879,8 @@ namespace Avalonia.Controls.Primitives
public OverlayLayer? OverlayLayer { get { throw null; } }
+ public TextSelectorLayer? TextSelectorLayer { get { throw null; } }
+
protected override Avalonia.Size ArrangeOverride(Avalonia.Size finalSize) { throw null; }
protected override Avalonia.Size MeasureOverride(Avalonia.Size availableSize) { throw null; }
diff --git a/baseline/netstandard2.0/Avalonia.Diagnostics.dll97502639.api.cs b/target/netstandard2.0/Avalonia.Diagnostics.dll1721891363.api.cs
index 293f4e2..5eae96f 100644
--- a/baseline/netstandard2.0/Avalonia.Diagnostics.dll97502639.api.cs
+++ b/target/netstandard2.0/Avalonia.Diagnostics.dll1721891363.api.cs
@@ -31,8 +31,12 @@ namespace Avalonia.Diagnostics
{
public DevToolsOptions() { }
+ public Avalonia.Media.IBrush? FocusHighlighterBrush { get { throw null; } set { } }
+
public Avalonia.Input.KeyGesture Gesture { get { throw null; } set { } }
+ public DevToolsViewKind LaunchView { get { throw null; } init { } }
+
public IScreenshotHandler ScreenshotHandler { get { throw null; } set { } }
public System.Boolean ShowAsChildWindow { get { throw null; } set { } }
@@ -46,6 +50,16 @@ namespace Avalonia.Diagnostics
public Avalonia.Styling.ThemeVariant? ThemeVariant { get { throw null; } set { } }
}
+ public enum DevToolsViewKind
+ {
+ Events = 2,
+ LogicalTree = 0,
+ VisualTree = 1
+ }
+
public partial interface IScreenshotHandler
{
System.Threading.Tasks.Task Take(Avalonia.Controls.Control control);
diff --git a/baseline/net461/Avalonia.Dialogs.dll934458091.api.cs b/target/netstandard2.0/Avalonia.Dialogs.dll236801769.api.cs
index 22d7a8e..c4a9ade 100644
--- a/baseline/net461/Avalonia.Dialogs.dll934458091.api.cs
+++ b/target/netstandard2.0/Avalonia.Dialogs.dll236801769.api.cs
@@ -44,11 +56,13 @@ namespace Avalonia.Dialogs
where TWindow : Avalonia.Controls.Window, new() { throw null; }
}
- public partial class ManagedFileDialogOptions
+ public partial record ManagedFileDialogOptions()
{
- public ManagedFileDialogOptions() { }
+ public System.Boolean? AllowDirectorySelection { get { throw null; } set { } }
+
+ public System.Func<Avalonia.Controls.ContentControl>? ContentRootFactory { get { throw null; } set { } }
- public System.Boolean AllowDirectorySelection { get { throw null; } set { } }
+ public Avalonia.Controls.Platform.IMountedVolumeInfoProvider? CustomVolumeInfoProvider { get { throw null; } set { } }
}
}
diff --git a/baseline/net6.0-ios16.0/Avalonia.iOS.dll602674116.api.cs b/target/net8.0-ios17.0/Avalonia.iOS.dll1201375995.api.cs
index 2e0f0f6..5a4114e 100644
--- a/baseline/net6.0-ios16.0/Avalonia.iOS.dll602674116.api.cs
+++ b/target/net8.0-ios17.0/Avalonia.iOS.dll1201375995.api.cs
@@ -13,8 +13,26 @@ namespace Avalonia
{
public static partial class IOSApplicationExtensions
{
+ public static Avalonia.AppBuilder UseiOS(this Avalonia.AppBuilder builder, iOS.IAvaloniaAppDelegate appDelegate) { throw null; }
+
public static Avalonia.AppBuilder UseiOS(this Avalonia.AppBuilder builder) { throw null; }
}
+
+ public partial class iOSPlatformOptions
+ {
+ public iOSPlatformOptions() { }
+
+ public global::System.Collections.Generic.IReadOnlyList<iOSRenderingMode> RenderingMode { get { throw null; } set { } }
+ }
+
+ public enum iOSRenderingMode
+ {
+ Metal = 2,
+ OpenGl = 1
+ }
}
diff --git a/baseline/netstandard2.0/Avalonia.LinuxFramebuffer.dll1485325318.api.cs b/target/netstandard2.0/Avalonia.LinuxFramebuffer.dll1708501484.api.cs
index 5dde163..d36c0b1 100644
--- a/baseline/netstandard2.0/Avalonia.LinuxFramebuffer.dll1485325318.api.cs
+++ b/target/netstandard2.0/Avalonia.LinuxFramebuffer.dll1708501484.api.cs
@@ -66,6 +66,8 @@ namespace Avalonia.LinuxFramebuffer
public LinuxFramebufferPlatformOptions() { }
public System.Int32 Fps { get { throw null; } set { } }
+
+ public System.Boolean ShouldRenderOnUIThread { get { throw null; } set { } }
}
}
diff --git a/baseline/netcoreapp2.0/Avalonia.Markup.dll1607561620.api.cs b/target/netstandard2.0/Avalonia.Markup.dll33005628.api.cs
index c0850ef..b342fc6 100644
--- a/baseline/netcoreapp2.0/Avalonia.Markup.dll1607561620.api.cs
+++ b/target/netstandard2.0/Avalonia.Markup.dll33005628.api.cs
@@ -26,6 +26,8 @@ namespace Avalonia.Data
public System.Object? Source { get { throw null; } set { } }
public System.Func<System.String?, System.String, System.Type>? TypeResolver { get { throw null; } set { } }
+
+ public override Data.InstancedBinding? Initiate(Avalonia.AvaloniaObject target, Avalonia.AvaloniaProperty? targetProperty, System.Object? anchor = null, System.Boolean? enableDataValidation = false) { throw null; }
}
public abstract partial class BindingBase
@@ -36,6 +38,8 @@ namespace Avalonia.Data
public Data.Converters.IValueConverter? Converter { get { throw null; } set { } }
+ public System.Globalization.CultureInfo? ConverterCulture { get { throw null; } set { } }
+
public System.Object? ConverterParameter { get { throw null; } set { } }
public System.WeakReference? DefaultAnchor { get { throw null; } set { } }
@@ -52,7 +56,9 @@ namespace Avalonia.Data
public System.Object? TargetNullValue { get { throw null; } set { } }
- public Data.InstancedBinding? Initiate(Avalonia.AvaloniaObject target, Avalonia.AvaloniaProperty? targetProperty, System.Object? anchor = null, System.Boolean? enableDataValidation = false) { throw null; }
+ public Data.UpdateSourceTrigger? UpdateSourceTrigger { get { throw null; } set { } }
+
+ public abstract Data.InstancedBinding? Initiate(Avalonia.AvaloniaObject target, Avalonia.AvaloniaProperty? targetProperty, System.Object? anchor = null, System.Boolean? enableDataValidation = false);
}
public partial class MultiBinding
diff --git a/baseline/netstandard2.0/Avalonia.Markup.Xaml.dll277081394.api.cs b/target/netstandard2.0/Avalonia.Markup.Xaml.dll685958946.api.cs
index 4805107..5eead33 100644
--- a/baseline/netstandard2.0/Avalonia.Markup.Xaml.dll277081394.api.cs
+++ b/target/netstandard2.0/Avalonia.Markup.Xaml.dll685958946.api.cs
@@ -58,15 +58,44 @@ namespace Avalonia.Markup.Xaml
public abstract System.Object ProvideValue(System.IServiceProvider serviceProvider);
}
+ public partial record RuntimeXamlDiagnostic(System.String Id, RuntimeXamlDiagnosticSeverity Severity, System.String Title, System.Nullable<System.Int32> LineNumber, System.Nullable<System.Int32> LinePosition)
+ {
+ public System.String? Document { get { throw null; } set { } }
+ }
+
+ public enum RuntimeXamlDiagnosticSeverity
+ {
+ Error = 3,
+ Fatal = 4,
+ Info = 1,
+ Warning = 2
+ }
+
public partial class RuntimeXamlLoaderConfiguration
{
public RuntimeXamlLoaderConfiguration() { }
public System.Boolean? DesignMode { get { throw null; } set { } }
+ public XamlDiagnosticFunc? DiagnosticHandler { get { throw null; } set { } }
+
public System.Reflection.Assembly? LocalAssembly { get { throw null; } set { } }
public System.Boolean? UseCompiledBindingsByDefault { get { throw null; } set { } }
+
+ public delegate RuntimeXamlDiagnosticSeverity XamlDiagnosticFunc(RuntimeXamlDiagnostic diagnostic);
}
public partial class RuntimeXamlLoaderDocument
@@ -200,6 +229,8 @@ namespace Avalonia.Markup.Xaml.MarkupExtensions
public System.Object? Source { get { throw null; } set { } }
+ public override Avalonia.Data.InstancedBinding? Initiate(Avalonia.AvaloniaObject target, Avalonia.AvaloniaProperty? targetProperty, System.Object? anchor = null, System.Boolean? enableDataValidation = false) { throw null; }
+
public CompiledBindingExtension ProvideValue(System.IServiceProvider provider) { throw null; }
}
@@ -238,6 +269,8 @@ namespace Avalonia.Markup.Xaml.MarkupExtensions
public TReturn? Mobile { get { throw null; } set { } }
+ public TReturn? TV { get { throw null; } set { } }
+
public System.Object ProvideValue() { throw null; }
}
@@ -307,6 +340,8 @@ namespace Avalonia.Markup.Xaml.MarkupExtensions
public Avalonia.Data.Converters.IValueConverter? Converter { get { throw null; } set { } }
+ public System.Globalization.CultureInfo? ConverterCulture { get { throw null; } set { } }
+
public System.Object? ConverterParameter { get { throw null; } set { } }
public System.String? ElementName { get { throw null; } set { } }
@@ -383,6 +418,8 @@ namespace Avalonia.Markup.Xaml.MarkupExtensions.CompiledBindings
{
public CompiledBindingPathBuilder() { }
+ public CompiledBindingPathBuilder(System.Int32 apiVersion) { }
+
public CompiledBindingPathBuilder Ancestor(System.Type ancestorType, System.Int32 level) { throw null; }
public CompiledBindingPathBuilder ArrayElement(System.Int32[] indices, System.Type elementType) { throw null; }
@@ -407,6 +444,8 @@ namespace Avalonia.Markup.Xaml.MarkupExtensions.CompiledBindings
public CompiledBindingPathBuilder StreamTask<T>() { throw null; }
+ public CompiledBindingPathBuilder TemplatedParent() { throw null; }
+
public CompiledBindingPathBuilder TypeCast<T>() { throw null; }
public CompiledBindingPathBuilder VisualAncestor(System.Type ancestorType, System.Int32 level) { throw null; }
diff --git a/baseline/net6.0/Avalonia.Remote.Protocol.dll1017299286.api.cs b/target/net6.0/Avalonia.Remote.Protocol.dll1526092889.api.cs
index ed1821f..31ed388 100644
--- a/baseline/net6.0/Avalonia.Remote.Protocol.dll1017299286.api.cs
+++ b/target/net6.0/Avalonia.Remote.Protocol.dll1526092889.api.cs
@@ -278,10 +278,27 @@ namespace Avalonia.Remote.Protocol.Input
public const Key LineFeed = 4;
public const Key LWin = 70;
public const Key M = 56;
+ public const Key MediaBlue = 100013;
+ public const Key MediaChannelList = 100001;
+ public const Key MediaChannelLower = 100003;
+ public const Key MediaChannelRaise = 100002;
+ public const Key MediaGreen = 100011;
+ public const Key MediaHome = 100000;
+ public const Key MediaInfo = 100023;
+ public const Key MediaMenu = 100020;
+ public const Key MediaMore = 100021;
public const Key MediaNextTrack = 132;
+ public const Key MediaOption = 100022;
public const Key MediaPlayPause = 135;
+ public const Key MediaPreviousChannel = 100027;
public const Key MediaPreviousTrack = 133;
+ public const Key MediaRecord = 100005;
+ public const Key MediaRed = 100010;
+ public const Key MediaSearch = 100024;
public const Key MediaStop = 134;
+ public const Key MediaSubtitle = 100025;
+ public const Key MediaTvGuide = 100026;
+ public const Key MediaYellow = 100012;
public const Key Multiply = 84;
public const Key N = 57;
public const Key Next = 20;
diff --git a/baseline/netstandard2.0/Avalonia.Skia.dll69686340.api.cs b/target/netstandard2.0/Avalonia.Skia.dll1258825852.api.cs
index c15c86e..00aa3bb 100644
--- a/baseline/netstandard2.0/Avalonia.Skia.dll69686340.api.cs
+++ b/target/netstandard2.0/Avalonia.Skia.dll1258825852.api.cs
@@ -52,6 +52,11 @@ namespace Avalonia.Skia
ISkiaGpuRenderSession BeginRenderingSession();
}
+ public partial interface ISkiaGpuWithPlatformGraphicsContext : ISkiaGpu
+ {
+ Avalonia.Platform.IPlatformGraphicsContext? PlatformGraphicsContext { get; }
+ }
+
public partial interface ISkiaSharpApiLease
{
System.Double? CurrentOpacity { get; }
@@ -61,6 +66,8 @@ namespace Avalonia.Skia
global::SkiaSharp.SKCanvas SkCanvas { get; }
global::SkiaSharp.SKSurface? SkSurface { get; }
+
+ ISkiaSharpPlatformGraphicsApiLease? TryLeasePlatformGraphicsApi();
}
public partial interface ISkiaSharpApiLeaseFeature
@@ -68,6 +75,11 @@ namespace Avalonia.Skia
ISkiaSharpApiLease Lease();
}
+ public partial interface ISkiaSharpPlatformGraphicsApiLease
+ {
+ Avalonia.Platform.IPlatformGraphicsContext Context { get; }
+ }
+
public partial interface ISkiaSurface
{
System.Boolean CanBlit { get; }
@@ -98,6 +110,8 @@ namespace Avalonia.Skia
public static Avalonia.Media.TextAlignment ToAvalonia(this global::SkiaSharp.SKTextAlign a) { throw null; }
+ public static Avalonia.PixelRect ToAvaloniaPixelRect(this global::SkiaSharp.SKRectI r) { throw null; }
+
public static Avalonia.Rect ToAvaloniaRect(this global::SkiaSharp.SKRect r) { throw null; }
public static Avalonia.Platform.PixelFormat ToPixelFormat(this global::SkiaSharp.SKColorType fmt) { throw null; }
@@ -120,6 +134,8 @@ namespace Avalonia.Skia
public static global::SkiaSharp.SKRect ToSKRect(this Avalonia.Rect r) { throw null; }
+ public static global::SkiaSharp.SKRectI ToSKRectI(this Avalonia.PixelRect r) { throw null; }
+
public static global::SkiaSharp.SKRoundRect ToSKRoundRect(this Avalonia.RoundedRect r) { throw null; }
public static global::SkiaSharp.SKShaderTileMode ToSKShaderTileMode(this Avalonia.Media.GradientSpreadMethod m) { throw null; }
@@ -140,6 +156,8 @@ namespace Avalonia.Skia.Helpers
public static System.Threading.Tasks.Task RenderAsync(global::SkiaSharp.SKCanvas canvas, Avalonia.Visual visual) { throw null; }
+ public static System.Boolean? TryCreateDashEffect(Avalonia.Media.IPen? pen, out global::SkiaSharp.SKPathEffect? effect) { throw null; }
+
public static Avalonia.Platform.IDrawingContextImpl WrapSkiaCanvas(global::SkiaSharp.SKCanvas canvas, Avalonia.Vector dpi) { throw null; }
}
diff --git a/baseline/net6.0/Avalonia.Win32.dll1218941547.api.cs b/target/net6.0/Avalonia.Win32.dll188615816.api.cs
index 2786c79..189aaa9 100644
--- a/baseline/net6.0/Avalonia.Win32.dll1218941547.api.cs
+++ b/target/net6.0/Avalonia.Win32.dll188615816.api.cs
@@ -20,12 +20,23 @@ namespace Avalonia
public enum Win32CompositionMode
{
+ DirectComposition = 2,
LowLatencyDxgiSwapChain = 3,
RedirectionSurface = 4,
WinUIComposition = 1
}
+ public enum Win32DpiAwareness
+ {
+ PerMonitorDpiAware = 2,
+ SystemDpiAware = 1,
+ Unaware = 0
+ }
+
public partial class Win32PlatformOptions
{
public Win32PlatformOptions() { }
@@ -34,6 +45,8 @@ namespace Avalonia
public Avalonia.Platform.IPlatformGraphics? CustomPlatformGraphics { get { throw null; } set { } }
+ public Win32DpiAwareness DpiAwareness { get { throw null; } set { } }
+
public System.Boolean OverlayPopups { get { throw null; } set { } }
public System.Collections.Generic.IReadOnlyList<Win32RenderingMode> RenderingMode { get { throw null; } set { } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment