Stephen Monaco
Stephen Monaco
1. Assign an `x:Class`: `"` 2. Create a code-behind file: AppStyles.axaml.cs ```cs namespace YourNamespace; public partial class AppStyles : Styles { } ``` 3. Add it to a `Styles` collection...
@grokys `Selector="TextBox[#ASpecificParentContainer.Width is gt 200 and lt 300]` > We already have a way to create layouts with complex logic: code-behind. I know people have some sort of dogmatic aversion...
I can reproduce here. I don't use any of the `.Setup` methods in my headless testing and async works fine with XUnit. Not sure if this is an oversight or...
I believe the issue is because you're trying to directly create and render controls that aren't attached to the visual tree. This means the `ControlTheme`s and various other stylings are...
~~This works ok for me in 11.1-beta1. Can you provide a specific repro?~~ This is what I'm doing (culture is en-US): ```cs public class MainWindowViewModel : ViewModelBase { public NumberViewModel?...
I'm still experiencing this with 3.2504.1.0 with Avalonia's XAML (.axaml). It's eventually going to force us to drop XamlStyler for the built-in Rider autoformatting or convince everybody to do git...
`IsPressed` is not for you to set. It's a `private set` that's calculated by Avalonia itself in response to keyboard/mouse input. If you actually run the app, you should see...
I am running the app with Rider and get the exception in the screenshot. Maybe you aren't running as debug, your exceptions aren't configured to always break execution, or something...
 If those are disabled, you should still get an exception printed to the Console. Make sure you're running the app with the Debug button and not the Run button.
Not sure why you aren't getting the exception then.. I am running a newer version of Rider: 2025.1.3 251.26094.147.