Kingdawanage
✅ Creating interactive objects in Blazor
So i decided to pick up Blazor and to that end, I decided to port a winforms game i made to a blazor webassembly app. The problem i am facing is that i am unsure how to create the objects for the game. For reference, it is a brick breaker game where there are bricks, a bat, walls and the ball. On winforms i used the System.Drawing extension to get this done, and used a collision detection on the ball to rebound when they contact any of the components. I'd like to know how i can draw these ibjects on blazor ty.
15 replies
✅ Need help understanding parent and child views
So basically, spent the past four hours learning thoroughly about the MVVM design pattern because there was a problem with my application. Although i did get some insight into it, i was not able to overcome the hurdle i have. Hence i'd like someone to help me through my situation. I saw a lot scenarios gluing views and models using view models. But did not particulary come across the problem i had. So basically, i have a main view and a child view. The child view does not inherit from the main view nor does it get any data from the main view model. The parameters in both views although are triggered by a button on the main view. I was able to contain the variables that each view needed to their respective viewmodels. I have a problem with linking the both dataupdate method calls to the button click event. But before that problem, I have problems properly displaying the data made in the child view model on the application. I'm sure it has to do with the way i'm binding the view to the main view but i am not experienced enough to determine the fault in that. Please i require some assistance :pepecry:
56 replies
Elements of my child view do not show on my main view
Basically, I have child view that is nested in my main view with text boxes and images that are controlled by a button on my main view. The controlls are properbound and the data context has been set as well. I need help figuring this out
98 replies
Event handling in different views in WPF
Hello. So I have a button in my main window, And i would like for it to change controls in a different window. How would i link the event handler of the button of the mainwindow to the secondary window. I know you're supposed to use a view model for that, but i am unsure of how to implement it
18 replies
✅ Trying to extract nested JSON data
Asthe title says, I've been trying to find a way to get weather data from the api. The JSON file has multiple nests that i am tryign to get to. I used Json.ReadFromJsonAsync to decentralize it but it keeps failing. I am out of options
8 replies
Image not showing in wpf button
I made a button theme as a resource dictionary and made a sure the content of the button is an image whose source is binded to the constructor of the button when is being made in the application. The problem is the button is not showing. Please i need assistance
134 replies