C
C#2y ago
Wicked Cat

✅ Is there a way in Xaml/WPF to hide the x button or keep the player from closing the window?

Hello! So i'm building just a little rpg with xaml and as i'm opening new windows for certain events like combat I don't want the player to be able to close the window without finshing the fight. I only know Show and ShowDialog. Thanks!
6 Replies
JakenVeina
JakenVeina2y ago
not really, no not straightforwardly the truth of the matter is that if you're making a game, you shouldn't REALLY be using WPF actually, I stand corrected it's more straightforward than I recall, in WPF I must be confusing with some other framework
JakenVeina
JakenVeina2y ago
Stack Overflow
How to make title bar disappear in WPF window?
I know this has been asked before but I've tried answers: How to create a WPF Window without a border that can be resized via a grip only? How to remove the title bar from a window but keep the bo...
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Wicked Cat
Wicked CatOP2y ago
not the game as a whole but just one window, so rry if i wasn't clear Why's that?
JakenVeina
JakenVeina2y ago
Because that's not what it's designed for. It's designed for building Window-based GUIs.
Accord
Accord2y ago
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.
Want results from more Discord servers?
Add your server