Form_Load equivalent from C#.Silverlight
-
This may sound a bit Armature but here it is. What is the Form_load equivalent for a C#-Silverlight. I have to Add shapes based on the available data. 1. I tried Putting the code in the MainPage() that does not work as the canvas actual height is NAN. 2. UserControl_Load() doesn't Work too. I have to add any number of shapes so I can't add add them on design time. Please Help Thanks
-
This may sound a bit Armature but here it is. What is the Form_load equivalent for a C#-Silverlight. I have to Add shapes based on the available data. 1. I tried Putting the code in the MainPage() that does not work as the canvas actual height is NAN. 2. UserControl_Load() doesn't Work too. I have to add any number of shapes so I can't add add them on design time. Please Help Thanks
Application.Startup
[^] is the standard starting point in an SL application. In any case, http://jbarkes.wordpress.com/2010/01/03/drawing-dynamic-shapes-in-silverlight-3/[^] might help you.WP7.5 Apps - XKCD | Calvin | SMBC | Sound Meter | Speed Dial
-
This may sound a bit Armature but here it is. What is the Form_load equivalent for a C#-Silverlight. I have to Add shapes based on the available data. 1. I tried Putting the code in the MainPage() that does not work as the canvas actual height is NAN. 2. UserControl_Load() doesn't Work too. I have to add any number of shapes so I can't add add them on design time. Please Help Thanks