Keswiik
Keswiik
CC#
Created by Temporal Nightmare on 3/26/2025 in #help
AboutView not registered?
avalonia is heavily inspired by wpf so some of the stuff you learn will translate over well enough
168 replies
CC#
Created by Temporal Nightmare on 3/26/2025 in #help
AboutView not registered?
:Blob:
168 replies
CC#
Created by Temporal Nightmare on 3/26/2025 in #help
AboutView not registered?
¯\_(ツ)_/¯
168 replies
CC#
Created by Temporal Nightmare on 3/26/2025 in #help
AboutView not registered?
I said isolate the problem, not stick with that solution forever
168 replies
CC#
Created by Temporal Nightmare on 3/26/2025 in #help
AboutView not registered?
like
168 replies
CC#
Created by Temporal Nightmare on 3/26/2025 in #help
AboutView not registered?
my first suggestion is to try and isolate the problem; ignore your commands and stuff for now. use a codebehind handler and try displaying the window within your MainWindow class
168 replies
CC#
Created by Temporal Nightmare on 3/26/2025 in #help
AboutView not registered?
struggle bus is part of the learning process
168 replies
CC#
Created by Temporal Nightmare on 3/26/2025 in #help
AboutView not registered?
and in this case viewModel could refer to a different type entirely
168 replies
CC#
Created by Temporal Nightmare on 3/26/2025 in #help
AboutView not registered?
you're DI-ing the view model
168 replies
CC#
Created by Temporal Nightmare on 3/26/2025 in #help
AboutView not registered?
there's no need to explicitly set the DataContext with an object initializer
168 replies
CC#
Created by Temporal Nightmare on 3/26/2025 in #help
AboutView not registered?
i would expect this to break something
168 replies
CC#
Created by Temporal Nightmare on 3/26/2025 in #help
AboutView not registered?
i also don't see the point of including a using block for what you're doing
168 replies
CC#
Created by Temporal Nightmare on 3/26/2025 in #help
AboutView not registered?
look at your constructors
168 replies
CC#
Created by Temporal Nightmare on 3/26/2025 in #help
AboutView not registered?
you shouldn't be requesting AboutViewModel from the service provider, you should be requesting AboutView
168 replies
CC#
Created by Temporal Nightmare on 3/26/2025 in #help
AboutView not registered?
Do you get any errors when you try to show the about view?
168 replies
CC#
Created by Temporal Nightmare on 3/26/2025 in #help
AboutView not registered?
can you, like, give a rundown on what is / isn't working right now?
168 replies
CC#
Created by Temporal Nightmare on 3/26/2025 in #help
AboutView not registered?
I am going to assume this closes the AboutView?
168 replies
CC#
Created by Temporal Nightmare on 3/26/2025 in #help
AboutView not registered?
seems fine to me, assuming it runs i don't work with wpf lol
168 replies
CC#
Created by Temporal Nightmare on 3/26/2025 in #help
AboutView not registered?
Use an interface if you need to abstract the implementation from the contract consumers will use. ILogger is a great example. You have loggers that go to files, console, external sources, etc. Consumers likely don't care which specific implementation they are using, they just need to access the basic functionality of ILogger I would not make interfaces for a view model (like delegate said)
168 replies
CC#
Created by ThunDerd164 on 3/26/2025 in #help
Rainbow using Hex vaValues
and if it wasn't clear, A=alpha (opacity), R=red, G=green, B=blue
18 replies