Questions tagged [avalonia]

AvaloniaUI is a multi-platform GUI framework using XAML for the creation of GUIs. It has many similarities to WPF and can run on Windows, Linux, macOS, Android and iOS. Questions on Avalonia XPF should use [avalonia-xpf] tag instead.

AvaloniaUI is a multi-platform GUI-Framework using XAML for the creation of GUIs. It has many similarities to WPF and can run on Windows, Linux, macOS, Android and iOS.

It's an open source project that can be viewed on GitHub: https://github.com/AvaloniaUI/Avalonia

The same team also work on Avalonia XPF, a cross-platform WPF clone.

270 questions
2
votes
1 answer

Avalonia error: Unable to find suitable setter or adder for property PointerPressed

I'm trying to create a very simple application with a canvas that will register a PointerPressed event when the canvas is clicked but I'm getting the following error: System.Xaml.XamlException: 'Unable to find suitable setter or adder for property…
Turkeyplague
  • 67
  • 1
  • 5
2
votes
1 answer

How to know the index of the current element of ItemsRepeater in Avalonia?

I have the following code in my MainWindow.axaml :
kawwik
  • 23
  • 3
2
votes
1 answer

Can Avalonia host Window with Native handle?

There is an application which consists or two parts - WPF user interface and C++ dll with math and Opengl graphics. The WPF user interface has WindowsFormsHost with a Windows Forms Label in it. The handle of the label is used to draw graphics using…
Ilya
  • 21
  • 3
2
votes
0 answers

Registering avalonia application to a custom URI Scheme

Not too long ago I switched from MAUI to Avalonia and ran into a problem that I can't link .appxmanifes to a project to automatically register a custom url scheme in my app during local deployment (debugging). Could anyone help me with this?
Bagroy
  • 65
  • 6
2
votes
0 answers

Avalonia how using easing for color transition

I want to make pretty background filling for my buttons. Color filling want started from center (like default Android animation for click). I reading official guide, but my code dont give that effect (only smoothing change color, without easing).…
Bicqzzv11e
  • 33
  • 5
2
votes
1 answer

Button will not work, unable to find suitable setter or getter

public class MainWindowViewModel : ViewModelBase { public MainWindowViewModel() { Queue = new QueuePanelViewModel(); Merge = new MergePanelViewModel(); CurrentQueuePanel ??= new QueuePanel(); …
2
votes
0 answers

Why My Transitions do not work in Avalonia?

When I set Height or Width, the transitions do not work;