Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
43 views

The ItemTemplate for my ComboBox is like this: new FuncDataTemplate( typeof(object), (item, _) => new TextBlock { HorizontalAlignment = HorizontalAlignment.Stretch, Text ...
zacoons's user avatar
  • 371
1 vote
0 answers
55 views

How can I pre-load a NativeMenu instance on a TrayIcon? Here's a code sample I have tried running (I ran it after the MainWindow got instantiated): _trayIcon = new TrayIcon { Icon = new WindowIcon(...
Quickz's user avatar
  • 1,896
0 votes
0 answers
58 views

I'm trying to style an Avalonia Expander control but I'm unable to fully figure out how to style the header. My main difficulty is styling the chevron button. I'm not sure quite what you call it, but ...
Colin Mackay's user avatar
  • 19.3k
0 votes
1 answer
64 views

In my Avalonia app, I need to create controls dynamically from a user control's code-behind so I can add them to a StackPanel inside that user control. I know the names of the viewmodel properties to ...
Eric Eggers's user avatar
0 votes
1 answer
115 views

So I had this big question about how to change the color of a XAML element from the C# code directly but I managed to stumble upon a solution that works in this question by using SolidColorBrush() to ...
lbo_22's user avatar
  • 11
-1 votes
1 answer
59 views

If I set a right-align style for my DataGridCell : <Style Selector="DataGridCell.right-align"> <Setter Property="HorizontalAlignment" Value="Right" /> &...
Enhakiel's user avatar
  • 314
0 votes
1 answer
133 views

I want to create a companion app for a video game. Windows only. It's supposed to be always on top and act as an additional UI element. I want to do it w/ Avalonia. so that means: no obvious window: ...
boop's user avatar
  • 7,922
0 votes
0 answers
135 views

In Telegram docs, https://core.telegram.org/bots/webapps#initializing-mini-apps, To connect your Mini App to the Telegram client, place the script telegram-web-app.js in the <head> tag before ...
Dmitriy's user avatar
1 vote
0 answers
59 views

In my AvaloniaUI application I have a user control that's basically a PathIcon with a TextBlock caption, the contents of which are bound to dependency properties. One DP is IsActive, which when true ...
Eric Eggers's user avatar
2 votes
1 answer
168 views

I am building a custom Calendar Date Picker in Avalonia in JetBrains Rider. Unable to modify the calendar popout. I need to remove the empty space on the right hand side. Here is the code. <Style ...
Athang Tikekar's user avatar
0 votes
1 answer
162 views

I am using Avalonia with CommunityToolkit MVVM. When I change the Property (integer) within the original VM, where it is defined, it does update the view. When I change the Property from a child class,...
Martin's user avatar
  • 1
0 votes
0 answers
32 views

I want to create my own style for a radio button in Avalonia, but when I want to set an image using a binding, the image doesn't load. If I try to load the image directly as an image source, it works. ...
svisc's user avatar
  • 1
0 votes
0 answers
98 views

I'm using Avalonia 11.0 and I need to accomplish the following behaviour on a custom Autocompletebox control: If the input text is empty the dialog should show all the items of the collection the ...
Fiabio's user avatar
  • 33
-1 votes
2 answers
203 views

I have Custom control, looking like this: using Avalonia; using Avalonia.Controls; using Client.Attributes; using Client.ViewModels; namespace Client.Controls; [ViewModel(typeof(...
Aleksa Ristic's user avatar
0 votes
0 answers
75 views

I'm trying to vertically align the square/tick box of an Avalonia CheckBox within its contents automatically, but apparently it's not that trivial for some reason. Here's the code: <UserControl .......
Yves Calaci's user avatar
  • 1,138
1 vote
1 answer
100 views

I want to design a template control of button in my project. The AXAML markup and C# code are: <Styles xmlns="https://github.com/avaloniaui" xmlns:controls="using:...
WhackC's user avatar
  • 13
0 votes
0 answers
56 views

I'm currently developing a macOS application using Avalonia. This application displays information in the UI (specifically in a TextBlock with ViewModel), and at the same time, it writes the same ...
Su Tony's user avatar
  • 11
0 votes
0 answers
57 views

So I found this button animation trick on StackOverflow: <Button.Styles> <Style Selector="Button"> <Setter Property="FontSize" Value="14" /> ...
Ali-Muhammad Zakaryaev's user avatar
0 votes
0 answers
46 views

We've got a macOS Avalonia problem when trying to package multiple builds for different cpu architectures in the same macOS .app bundle. We are attempting to place the entire x64 and arm64 build ...
Jason L.'s user avatar
0 votes
1 answer
352 views

I'm having a little bit of trouble with an Avalonia TabStrip. I want to style it without tab headers, the background color from a bound value and not too high. The whole idea is that this tab strip ...
CameO73's user avatar
  • 103
2 votes
0 answers
215 views

I set up Fedora Linux with the KDE desktop environment and installed Rider. I also downloaded the necessary templates and plugins. After that, I created a cross-platform Avalonia UI app in Rider, but ...
Ali-Muhammad Zakaryaev's user avatar
0 votes
0 answers
34 views

I have this C# console application that I have built a GUI around using Avalonia. When debugging using JetBrains Rider, I get my expected behavior from the app where it calls a Python script using zsh....
Aaron Pascua's user avatar
0 votes
0 answers
35 views

I have a simple app that contains a button, and the content of that button changes after it is pressed (Avalonia for app and Avalonia Headless Tests for UI tests). I'm trying to make my UI tests ...
Kojer Defor's user avatar
0 votes
1 answer
96 views

I'm trying to plot a Histogram in Avalonia with C# using Livecharts2. However some empty space occurs between the columns. How to avoid this empty space between columns? For example in two column ...
Hossam Alzomor's user avatar
0 votes
0 answers
53 views

Long story short, I have an Avalonia project where I'm using the SimpleRouter library to achieve routing. The code is very similar to the full code example, using a ServiceCollection and I can access ...
Sei's user avatar
  • 13

1
2 3 4 5
10