I am trying to find out how to set the windowless parameter to true, but not in the object tag, but directly in the Silverlight Application. I don’t know if that possible, but i thought maybe this can be done in the app.xaml?
any ideas?
Christian
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That parameter can not be set after the Silverlight Application has loaded. You can check the parameter with
Application.Current.Host.Settings.Windowless, but it is a read-only property.If you need to programmatically decide whether to set windowless mode, you will have to do it in the page that hosts the Silverlight XAP. Your best bet is probably to use a
StringBuilderto generate the entire<object>tag in the code-behind of your ASPX page (or even wrap the entire object tag up as a CompositeControl) and pass anisWindowlessbool in as a parameter.