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
0
votes
2 answers

Avalonia + ReactiveUI - pharmacist for Events() generation

I'm trying to get my head around Avalonia in general, and the Reactive UI integration in particular. From googling around, I understand that Avalonia pulled away the Avalonia support in ReactiveUI, and tries to integrate ReactiveUI into Avalonia…
sergevm
  • 171
  • 2
  • 12
0
votes
0 answers

How to get the dimensions of an Avalonia window?

I'm creating a C# .NET Core 5 application that's intended to run on both windows 10 and Linux using Avalonia as a GUI. I don't want to use the reactive api. I couldn't find out how to use the notification system that avalonia supports so I decided…
pzogr
  • 424
  • 1
  • 12
  • 30
0
votes
0 answers

How to publish a C# app with Avalonia on a Mac

I am fairly new to .NET and C#. I would like to develop a native multi platform app. After a bit of research, C# with Avalonia seems to be a good choice. I am using Visual Studio on Windows and would like to compile a basic app and publish it for…
user15030432
0
votes
1 answer

AvaloniaUI - how to change the 'style' of the window (borderless, toolbox, etc)

I'm trying out Avalonia UI and I need a ToolWindow. I tried different approaches but the wpf equivalent WindowStyle seems not supported. The only thing I was able to do was to use 'CanResize', but even that allows resizing via the max button ... ...…
Geertie
  • 237
  • 4
  • 15
0
votes
1 answer

How can I register an AvaloniaProperty to set control's focus and bind in viewmodel?

I am developing an avalonia wpf application, and I registered an AttachedProperty "IsFocused" as following: public class FocusExtension { public static readonly AttachedProperty IsFocusedProperty = …
Mao
  • 31
  • 1
  • 5
0
votes
1 answer

suggestion related to dll running on linux

I am new and have a little bit knowledge in Linux. That's said, let me summarize my problem. I have a big application which is written in winforms and i want it to run on ubuntu. I used mono but after running mono migration analyzer, P/invoke was…
0
votes
1 answer

How to scroll to the new element of a ScrollViewer automatically in Avalonia?

I have a chat app on Avaloni UI. Messages are displayed in the ScrollViewer. I need to scroll the list of messages to a new message when I receive or send a message.
0
votes
1 answer

Create ReactiveUi.ReactiveCommand in Avalonia?

There is a MainViewModel that has an ActiveLayoutItem property, which is initialized only after the Add () command, that is, when the MainViewModel constructor is initialized, this property will be null. The MainViewModel has a ReactiveCommandCheck…
PopMal
  • 51
  • 1
  • 6
0
votes
1 answer

How to make button enabled in AvaloniaUI depending on Textbox value

I'm new to Avalonia, so my code should be pretty basic. I have 1 window with 1 panel in it that is:
0
votes
1 answer

Analog of DependencyPropertyDescriptor (wpf) in Avalonia Ui?

How do I implement the same behavior(wpf) in Avalonia? var leftDescriptor= DependencyPropertyDescriptor.FromProperty(Canvas.LeftProperty, typeof(SomeObject)); leftDescriptor.AddValueChanged(this, OnCanvasLeftChanged);
PopMal
  • 51
  • 1
  • 6
0
votes
1 answer

FrameworkPropertyMetadataOptions.AffectsMeasure and FrameworkPropertyMetadataOptions.AffectsRender in Avalonia

Moving the app under wpf to avalonia ui. During the transfer, I encountered something that is not in the documentation. In General there is a piece of code from wpf: public class BaseLabelElement : UIElement { public static readonly…
PopMal
  • 51
  • 1
  • 6
0
votes
0 answers

Connector for Shapes on Canvas - Avalonia

I've been trying to google connectors for shapes on Canvas but I wasn't able to find a solution which works for me. I don't know if its because of Avalonia could be so much different or just I am not able to apply it. What I am trying to achieve is…
Richard
  • 17
  • 1
  • 6
0
votes
1 answer

How to include external font in Avalonia application without installing it

I try to use a kind of Chinese fonts HGDH_CNKI.TTF. I put it into sbid/Assets/Fonts/ (my project name is sbid). And then I try it like this, I use:
0
votes
1 answer

How to support Chinese characters in .Net Core Avalonia?

The program I compiled cannot display Chinese characters normally on my friend's computer (it can be displayed normally on my Win10 and Deepin Linux), is there any font missing? What fonts need to be installed on the computer?
LauZyHou
  • 137
  • 1
  • 2
  • 11
0
votes
1 answer

Avalonia - how to create new window?

I'm trying to get familiar with Avalonia, and porting one of my projects to it. I have a problem with creating new windows - I use manual from Tutorial, and get just .xaml.cs file in my Solution Explorer: File AboutView.xaml is created in project…
u1035
  • 28
  • 1
  • 5
1 2 3
17
18