I'd like to insert the application version number into my Lightswitch application title bar, but I haven't found anyway to programatically set the application title. Has anyone had any luck doing this?
Asked
Active
Viewed 881 times
2
-
There is a Title property in Application.Current.Details, but it doesn't seem to have any relationship to the actual application title. It appears that the Application Name, which is set in the project propoperties and controls the title, is not accessible in code. Good question! I hope there's an answer to this in the release version. – Paul Keister May 12 '11 at 17:17
2 Answers
0
I've never used Lightswitch before but in regular VB.Net you'd just add this to your Form Load event:
Me.Text = Me.Text & " " & Me.ProductVersion.ToString()

Chris Haas
- 53,986
- 12
- 141
- 274
-
I expect that this would probably work, but Lightswitch solutions hide many of the underlying silverlight events. I'm currently trying to find this event so I can test this. – Sam Johnson Apr 25 '11 at 15:15
0
If your app is an OOB app, the title can be set in OutOfBrowerSettings.xml
See here:
And for sizing options as well:
If the application is hosted inside a web page, so you just need change the title of the web page to whatever you want (from a post from Microsoft's Lifeng Lu).
Yann

Yann Duran
- 3,842
- 1
- 24
- 24