This Forum is ARCHIVE only
For LightSwitch questions,
please use the official forums at:

http://social.msdn.microsoft.com/forums/en-US/lightswitch/threads


The right way is to use model API instead of parsing lsml file
Last Post 04 Oct 2011 05:18 AM by admin. 0 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Michael WashingtonUser is Offline
Send Private Message
Posts:1313
Avatar

--
04 Oct 2011 05:18 AM
    public partial class Application
    {
        partial void Application_Initialize()
        {
            IApplicationDefinition appDef =  this.Details.GetModel();
            foreach (var screen in appDef.GlobalItems.OfType())
            {
                // write your code here for each screen definition
            }
        }
    }

    By
    Bilal Waheed [MSFT]
    From:
    http://social.msdn.microsoft.com/Forums/en-US/lightswitch/thread/65b146d3-2bee-44ed-a4e6-e54383627756/
    -----------
    Michael Washington
    http://LightSwitchHelpWebsite.com
    You are not authorized to post a reply.


    Microsoft Visual Studio is a registered trademark of Microsoft Corporation / LightSwitch is a registered trademark of Microsoft Corporation