© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
1303 replies
Mek

✅ Trying to figure out how to loop game Avalonia

<Button Classes="GameButton" Grid.Column="2" Content="Next Question" Command="{Binding NextQuestion}" IsVisible="{Binding QuestionFinished}" />
<Button Classes="GameButton" Grid.Column="2" Content="Next Question" Command="{Binding NextQuestion}" IsVisible="{Binding QuestionFinished}" />

GameEngineViewModel.cs
GameEngineViewModel.cs
=> https://pastebin.com/36Sjrpnf

I have a button that I want to trigger showing the next question to the user. On the previous screen, they select how many questions they want to answer which is passed to the GameEngineViewModel through the
Game game
Game game
=>
game.TotalQuestions
game.TotalQuestions
parameter/variable. I'm trying to figure out how to loop the game for as many times as the
game.TotalQuestions
game.TotalQuestions
number is and have the next question shown based off of a button click. This button is only visible after the user has submitted their answer and the WinLoseText shows to the user. How would I go about doing this? Thanks
Pastebin
public class GameEngineViewModel : ViewModelBase{ public string?...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

✅ Can't figure out display error avalonia
C#CC# / help
2y ago
Trying to figure out an exercise
C#CC# / help
4y ago
✅ Can't figure out two error messages - Avalonia
C#CC# / help
2y ago
❔ Trying to figure out how to write a simple script
C#CC# / help
3y ago