❔ WHY is my app not running?
https://github.com/EmelieH-cloud/WPF-timer
This is driving me nuts. I have created a grid with a timer, and on run, the grid should be filled with generated buttons and the timer start. But when I try to run it, I get no window and no errors. Just completely blank. What am I doing wrong?
GitHub
GitHub - EmelieH-cloud/WPF-timer
Contribute to EmelieH-cloud/WPF-timer development by creating an account on GitHub.
16 Replies
Doesn't appear that you have a main method?
Also btw, don't commit
bin
and obj
Doesn´t this work as the main in a WPF app? (I just started out, btw)
That's just a constructor
You need a
Main
method somewhere which launches the WPF appHow would that look, like for example?
GitHub
ToDoList-WPF/MainWindow.xaml.cs at main · EmelieH-cloud/ToDoList-WPF
Contribute to EmelieH-cloud/ToDoList-WPF development by creating an account on GitHub.
I also made this app, but this one works... still I can´t see a main method here as well?
huh
I don't know a lot about WPF, sorry
I'll have a look but I'm very tired and not promising I can help okay.
One thing, do not use the designer / Margin as the primary tool of doing layout.
Use the layout controls
$rulesofwpf
Second thing, prefer using XAML instead of spawning controls from code-behind
seems to have a leak cos my cpu memory was just shooting up perma
Check line number 18 in MainWindow.xaml.cs
😛
do not give them the answer, let them find out for themselves
mb xD
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.