I’m getting this error: MainWindowViewModel.cs(55,30): error CS1061: 'Application' does not contain a definition for 'TryFindResource' and no accessible extension method 'TryFindResource' accepting a first argument of type 'Application' could be found (are you missing a using directive or an assembly reference?) I’ve read that the TryFindResource method is not available in Avalonia, which seems to be the cause. What could be the actual issue here, and how can I fix it?
Hey i got an issue with it, when i try to use it in another user control, it doesn't seem to be working ( works fine in mainWindow ), any idea what the issue could be ?
Is there a way to do all this stuff automatic from gui constuctor or something else? Not writing all gui properties, positions at code? No? At 2024 year, right?
I wanted to see how ComboBox works, so I went to the Official documentation and this is what I found <ComboBox /> Avalonia has the worst documentation ever, it's all because they want you to pay for support!
As somone who likes to follow along with examples as a way of learning, I had the following issue: I started by using the mutiplatform template. Doing this, your assembly reference may be different to the one the images are in, and as such, I updated my Assembly reference to `Assembly.GetExecutingAssembly()`
I picked Avalonia UI for a side project without the intention to spend too much time learning the framework itself. When I realised I needed to spend a bit more than planned in order to do things reasonably well, I got a little overwhelmed. Your tutorial helped me get a nice looking Split View design for my app without having to spend days learning everything from scratch, plus it taught me a few basics I was missing, as you show all the code (and I learn better by reading other people's code) Very well done !
Great stuff! Small tip: Hold control while using the arrows to navigate code, in order to skip entire words. That way you won't need to go 1 letter at a time Doing that has saved me immeasurable amounts of time
I don't have [ObservableProperty] and [RelayCommand]. I tried to add the Community ToolKit via using, but I got an error. I created a regular Avalonia project. Maybe I missed something?
First of all, I would like to say thank you. I'm enjoying the video. In this video, GeometryIcon cannot be used because the Icon link on GitHub has disappeared. So I tried to use a png file, but Bitmap doesn't work and Image doesn't work as StaticResouce. Please tell me how to load an image as StaticResource.
Is there a way to use the [RelayCommand] in the GridPageView.axaml.cs ? or is it only usabel in the viewmodel.cs? if so why cant the gridpageview.axaml bind anything to the viewmodel.cs?
Hi Mamma Mia! Thanks for the tutorial, however, I am stuck on the Binding CurrentPage. I have created the view and the model but kept saying "Not found: AvaloniaApplication.Views.HomePageView Would you have the code for this episode to see what am I doing wrong?
Plz disregard this, I found the solution. Stupid Visual Studio built the View as "x:Class="AvaloniaApplication.HomePageView"" instead of AvaloniaApplication.Views.HomePageView
Man, you are my hero! I'm an experienced C# developer, and for me, Avalonia is the way to go! Thanks for your videos, which save me really really a lot of time.
I swear to god... Every time I'm starting even a simple project I end up using this Microsoft Di and I waste about 2-4 hours because I never remember that shit... Then I promise myself to just make a template for myself on git... of course I don't do that...
I did the same on the video but for me it stills shows the message "NotFound: AvaloniaApplicationMVVM.Views.HomePageView". The files are in their folders, but on the debbug the ViewLocator just don't find it.
Hi, since this week I am started with Avalonia thanks to your videos. Thanks for the good explanation. I have a question, is it possible to make a button to switch quickly between dark / light mode? Or Dark/Light/System. I tried so many things now but without result. Hopefully you will cover this is a next video.
As a tutorial on how to do something, there was next to no explaining any of the code. I started learning C# about a month ago and wanted to work on something and found this video. I made it 3 mins in before I called it quits just due to not having any clear explanation for why things were coded the way the were. It was just me copying what you did and not learning anything from it. Thanks for the effort though.
Hey, sorry for that. I understand and, this is probably not the best video for a beginner. You should probably look for a very beginner course out there. There's plenty of them. Good luck with your new journey!
Thank you much for a guide!) I have been looking for long for such a simple, beginner-oriented series of Avalonia, and now I can complete my course project properly)
Can you help me, please? Do you understand that when I try to stock up on my project, this label appeared after adding _isPaneOpen = true; An unhandled exception. System.MethodAccessException: An attempt using the 'CompiledAvaloniaXaml.XamlIlTrampolines.MVVMProject:MVVMProject' method.ViewModels.MainWindowViewModel+TriggerPaneCommand_0!The executetrampoline command(System.Object, System.Object)' to access the MVVMProject method.ViewModels.MainWindowViewModel.Failed to execute the trigger command()'.