How to set Me.DisplayName to change the Screen Name tab text?
-
Tuesday, January 24, 2012 10:59 AM
I read on the forum that is should be possible:
If I manually set the display name I can do that (Me.DisplayName="Updated Name"), it works, using IPropertyNotifyChanged.
In debug mode I see that the Empty (Me.DisplayName = "").
Can you help me with the exact way to code this in VB?
All Replies
-
Tuesday, January 24, 2012 11:35 AMModerator
It would have been helpful to have included a link to the post that you're referring to. I don't understand what you need, you already have the VB code to change the tab's Display Name.You'd put this in the screen's InitializeDataWorkspace method.Me.DisplayName="Updated Name"
Yann - LightSwitch Central - Click here for FREE Themes, Controls, Types and Commands If you find a reply helpful, please click "Vote as Helpful", if a reply answers your question, please click "Mark as Answer" By doing this you'll help people find answers faster. -
Tuesday, January 24, 2012 1:11 PM
Sorry it isn't working becouse I use the MinimalShell! In the standard shell it works fine.
Thanks!
-
Wednesday, January 25, 2012 12:49 AM
Sorry it isn't working becouse I use the MinimalShell! In the standard shell it works fine.
Thanks!
Unfortunately Microsoft does not share the source code to the Default Shell so I am unable to determine how they are able to allow you to dynamically alter the name of the tab :(When I created the Minimal Shell I fixed a number of issues to make sure that it works under normal circumstances.
However, it was not tested for programmatic manipulation.
-
Wednesday, January 25, 2012 2:32 AMModeratorWhere are you trying to use that line of code? In the screen's InitializeDataWorkspace method? Or in the screen's Created method? Or somewhere else?
Yann - LightSwitch Central - Click here for FREE Themes, Controls, Types and Commands If you find a reply helpful, please click "Vote as Helpful", if a reply answers your question, please click "Mark as Answer" By doing this you'll help people find answers faster.

