As noted this is using the html page rather than the aspx page as the startup. Make sure that you are testing with a xap that is large enough to display the splash screen. You can add a large file …
Month: January 2012
Microsoft Silverlight – Simple Solution for Passing Data from Web Client to Silverlight
Need to find a simple way of passing data from the Web Client portion of your solution to your initial Silverlight control? By using the InitParameters inside the main *.aspx document of the Web Client, you can.
Here is an …
Microsoft Silverlight – Resize controls in a canvas within the web browser
Using the ‘Canvas.RenderTransform’ in your base Silverlight XAML, along with some resizing logic in the base Silverlight .vb class, the controls within your browser will resize as you change the size of the browser.
In this scenario, the App.xaml Application_Startup …
Microsoft Silverlight – Hidden Password Textbox
The Textbox in Silverlight currently does not support masking the text when entering for an example a password. This may be supported in the future, but for now a work around was needed. By using a couple event handlers in …
Microsoft Silverlight – Error Logging to Isolated Storage
Isolated storage location is under
C:Users*username*AppDataLocalLowMicrosoftSilverlightis
To handle error logging in Silverlight, create a clsIsolatedStorage.vb
Imports System.IO Imports System.Xml Imports System.IO.IsolatedStorage Imports MyApplication.clsApplicationGlobal Public Class clsIsolatedStorage Shared Sub ErrorHandler(ByVal mMode As String, ByVal Procedure As String, ByVal e As Exception)…
Microsoft Silverlight – Error Handling in Silverlight
If you have an unhandled error sometimes Silverlight will just disappear from IE and leave a blank screen. In the App.xaml.vb under Application_UnhandledException add
e.Handled = True
SAMPLE:
Private Sub Application_UnhandledException(ByVal sender As Object, ByVal e As ApplicationUnhandledExceptionEventArgs) Handles Me.UnhandledException…
Microsoft Silverlight – Create a global variable to keep track of which page you are on
This is my example of creating a global variable that keeps track of which page I am on.
Created a class clsApplicationGlobal.vb
Public NotInheritable Class clsApplicationGlobal Public Shared HoldThePage As String End Class
In each form, I put the following …
Microsoft Silverlight – Accessing Session Objects
You must use a web service or wcf service to access the silverlight applications host website application and session objects.
The host website needs a web service with the following code.
<WebMethod(EnableSession:=True)_ Public Sub SetText(ByVal value As String) Session("Text")…
Microsoft Zune – Could not install the software and/or bring up the software and/or play any files
Now, I can’t exactly remember what the issue was (I should have posted as soon as I found the fix), but if you suspect the issue could be DRM related, try this fix from Microsoft. It fixed license issues to …
Microsoft Visual Studio 2008 SP1 – IDE crashes while debugging and undocking windows
I had an issue one day that whenever I tried to move some of the windows around in the IDE, as soon as I docked the window somewhere, the IDE crashed.
Why me?
Anyway, I found a fix. Give it …