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
4
votes
1 answer

AvaloniaUI: Setup was already called on one of AppBuilder instances

Whenever I try to restart Avalonia application form base application, I get an exception: "Setup was already called on one of AppBuilder instances." on SetupWithLifetime() call. Application Startup code is: public static void Start() …
user15123902
  • 123
  • 4
3
votes
1 answer

Avalonia - Is it possible to have a scrollable tool tip?

I have a rich tooltip with a custom control. The custom control contains a scollviewer and I would like this to be scrollable with the mouse wheel, when the tooltip is shown. The UserControl itself is fine and scrolling works, if shown in a normal…
3
votes
2 answers

How to draw pixel-by-pixel on bitmap in AvaloniaUI?

I am trying to write a drawing application that allows users to select two points on canvas and draws a line between those points pixel-by-pixel. In WinForms that would be an easy solution - create a canvas, get its bitmap, draw on the bitmap using…
3
votes
2 answers

MacOS app notarization failed - The signature of the binary is invalid

The app is developed by using Avalonia and .net core. I notarized the app and not get any errors. But I got the following error when check the result of the app notarization: "issues": [ { "severity": "error", "code": null, …
Aaron Wang
  • 31
  • 4
3
votes
2 answers

dotnet publish osx-x64 doesn't generate executable

I have an Avalonia project I'm tried to build for mac. But when I use dotnet publish to generate the build for osx, there is no executable file generated. It generates a .dll file with the same name as the program (same name as the executable should…
Jeremy
  • 41
  • 6
3
votes
2 answers

Avalonia Get All Windows

Is there a way to get a list of all windows in Avalonia? The equivalent of this in WPF Application.Current.Windows My requirement is to activate or close a certain window based on its DataContext. If I can't access such a list; is there a way to…
Etienne Charland
  • 3,424
  • 5
  • 28
  • 58
3
votes
0 answers

Unable to Set Slider RepeatButton Template in Avalonia

I'm trying to override Avalonia's Slider theme. It's working on the Slider as a whole, and the Thumb gets updated too, but for some reason I'm unable to apply custom theme to the RepeatButtons PART_DecreaseButton and PART_IncreaseButton In this…
Etienne Charland
  • 3,424
  • 5
  • 28
  • 58
3
votes
3 answers

Avalonia DataGrid Enter handling

I'm using Avalonia.Controls.DataGrid. By default, when the grid has focus and Enter is pressed, it automatically handles the event and moves the selection to the next item. How can I prevent this default behavior? I'd like to have a custom Enter…
3
votes
1 answer

How to handle system shutdown event using Avalonia framework on both Windows and Linux systems?

I'm developing an application using C# with Avalonia framework. When system shuts down I need to perform some tasks (write logs and metadata to files) for application to complete job gracefully. Previously using WPF on Windows I used subscription to…
3
votes
1 answer

Custom Avalonia controll to render from other thread performance problem

I have a background thread, which renders some image to WriteableBitmap. I'm making a custom control, which will use this writeablebitmap and update every frame to make animation. Unfortunately, now forcing this control to InvalidateVisual(). That…
Kamiky
  • 601
  • 2
  • 8
  • 25
3
votes
0 answers

Rendering a ID3D11Texture2D into a SkImage (Skia)

I'm currently trying to create an interop layer to render my render target texture into a Skia SkImage. This is being done to facilitate rendering from my graphics API into Avalonia. I've managed to piece together enough code to get everything…
Mike
  • 309
  • 2
  • 15
3
votes
1 answer

Analogous to the abstract Adorner (wpf) class in Avalonia UI?

If in WPF a decorative element is implemented using the abstract class Adorner, then how to achieve the implementation of this object in Avalonia UI? //code wpf public class ControlAdorner: Adorner { public ControlAdorner(UIElement…
PopMal
  • 51
  • 1
  • 6
3
votes
1 answer

Resource.xaml in Avalonia

I am creating an app using avalonia which has some UI stuff in another assembly because of re-usability. Within this additional assembly, i want to have a Resource.xml file which is referenced by the application project and other projects. It…
AcidJunkie
  • 1,878
  • 18
  • 21
2
votes
2 answers

How to add iOS app icon in Avalonia UI 11?

I'm currently trying out Avalonia 11 on iOS. The dev + test experience has been great, but I can't quite figure out how to add an app icon for distribution. The Avalonia docs don't seem to cover this, as of now. In MAUI it's as simple as adding a…
2
votes
0 answers

Menu.ItemTemplate is showing className instead of assigned variable

I created a menu with a dynamic MenuItem list by doing the following:
gerrietech
  • 21
  • 1
1
2
3
17 18