Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
640 views
in Technique[技术] by (71.8m points)

user interface - How do I implement a chromeless window with WPF?

I want to show a chromeless modal window with a close button in the upper right corner. Is this possible?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You'll pretty much have to roll your own Close button, but you can hide the window chrome completely using the WindowStyle attribute, like this:

<Window WindowStyle="None">

That will still have a resize border. If you want to make the window non-resizable then add ResizeMode="NoResize" to the declaration.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...