4
Answers

Silver Light 4. disable minimize and maximize button

David Smith

David Smith

13y
2.9k
1
How do you disable the minimize and maximize out of the browser buttons.
Basically  when i am running the in browsers app and install the out of browser app
I want to have the minimize and maximize buttons disabled.

 The window does not resize when you install the out of the browser app.
Answers (4)
0
David Smith

David Smith

NA 1.9k 0 13y
. With
0
Vulpes

Vulpes

NA 98.3k 1.5m 13y
I don't think you can.

The best you can do is what I suggested in my previous post.

Before Silverlight 4, you couldn't even do that. See, for example, this thread:

http://forums.silverlight.net/p/122947/276990.aspx
0
David Smith

David Smith

NA 1.9k 0 13y
I want the default title bar. I just want to disable the minimize and maximize button. So how would you disable the default the minimize and maximize button thats already located in the default title bar. I prefer the default title bar. How would you disable?
0
Vulpes

Vulpes

NA 98.3k 1.5m 13y

In Silverlight 4, running an OOB app in elevated trust mode, you can get rid of the title bar altogether by setting the Window Style property to Borderless Round Corners which looks better than Bordlerless, IMO.

However, you'll then need to add back a custom Title Bar containing a Close button if you only want to disable the Minimize and Maximize buttons. This article shows how to do all this and, AFAIK, it's the only way to do what you want:

http://www.simple-talk.com/dotnet/.net-framework/elevated-trust-in-silverlight-4/