locked
how to change detail tab title in lightswitch beta 2

    Question

  • i have detail screen for patient and i want to  edit Tab Title, am already used this code in beta 1:

     

     partial void PatientDetail_Loaded()

            { 

         this.Title = this.Patient.PatientExtraName  + " File";

            }

    so how can i change the tab Title in Beta 2

     

    ------------------------------------

    Jamil Bin Milhem 

    IN4ma software 

    Jordan

     

    Wednesday, March 23, 2011 11:22 AM

Answers

  • To set the tab title in beta 2, you can set the DisplayName property like so:

    this.DisplayName = this.Patient.PatientExtraName + " File";
    

    • Proposed as answer by Gberg Wednesday, March 23, 2011 5:17 PM
    • Marked as answer by Jamil MilheM Thursday, March 24, 2011 8:15 AM
    Wednesday, March 23, 2011 11:58 AM

All replies

  • To set the tab title in beta 2, you can set the DisplayName property like so:

    this.DisplayName = this.Patient.PatientExtraName + " File";
    

    • Proposed as answer by Gberg Wednesday, March 23, 2011 5:17 PM
    • Marked as answer by Jamil MilheM Thursday, March 24, 2011 8:15 AM
    Wednesday, March 23, 2011 11:58 AM
  • Thanx Tim Too much helpful answer :)

     

     

    ---------------------------------------------

    Jamil Bin Milhem

    IN4MA Software

    JORDAN

    Thursday, March 24, 2011 8:15 AM
  • There is also a new Screen.SetDisplayName method (that does all the calculating work for you) that was introduced with B2.

    Yann


    Tuesday, March 29, 2011 5:01 AM