Silverlight for Windows Phone 7
Silverlight is likely to be the main development platform for Windows Phone OS.
Read moreSilverlight is likely to be the main development platform for Windows Phone OS.
Read moreSilverlight integration is already included in SharePoint 2010 – when you try to create a new list, library, discussion board or a simple page without Silverlight installed you will find the traditional SharePoint Create page. [SharepointMonitor.com]
Read moreSilverlight’s HtmlBrush is an alternative to the WebBrowser control for displaying HTML content in Silverlight app. There are two primary differences between the HtmlBrush and WebBrowser controls :
WebBrowser can display “live” content, whereas the HtmlBrush only display static html content
HtmlBrush can have transforms applied to it, so for visual effects this is the control of [...]
Silverlight is still a maturing technology not suitable for every purpose. As such, hybrid applications are often developed where a Silverlight element is embedded in an HTML page. However, this was obviously not an option for out-of-browser Silverlight applications.
The new WebBrowser control allows for an HTML element to be embedded in a Silverlight application when [...]
New to Silverlight 4.0 – StringFormat provides a simple solution for databinding in XAML and formatting the output. StringFormat is primarily used to format dates, numbers and currency values.
For example, formatting a date in a text box:
<TextBox x:Name=”dummyBox” Text=”{Binding Path=PublishedDate, Mode=OneWay, StringFormat=’MM-dd-yyyy’}”/>
TargetNullValue can be used to set the null value for the control:
<TextBox x:Name=”dummyBox” [...]
Silverlight 4 introduces WebCam support which is probably the highlight of the Silverlight 4 release. The WebCam API is relatively simple to use, a webcam can be added, video captured and placed on the screen using the following procedure:
WebCam Video Capture Procedure
Add a rectangle plus a button.
Get a handle on the video capture device using [...]
Silverlight 4 introduces a new API for accessing the clipboard through 3 static methods – GetText(), SetText(), ContainsText() . Using these methods is very simple, for example to test if there is anything on the clipboard and then paste it to a text box.
if (Clipboard.ContainsText())
{
txtText.Text = Clipboard.GetText();
}
To place text on the clipboard:
Clipboard.SetText(txtText.Text);
Silverlight can only access the clipboard from [...]
Silverlight 4 introduces several new features for out-of-browser applications that are not available to browser-based applications, namely:
New window features including run-time resizing and always on top capability.
Offline digital rights management (DRM).
HTML hosting with the WebBrowser control.
Popup notifications using the NotificationWindow class.
Elevated trust support.
Elevated Trust is a new feature in Silverlight 4 which allows Silverlight apps to be run with fewer security restrictions. To check whether an app is running in elevated trust use the HasElevatedPermissions property.
If an app requires elevated trust, users must first consent before installing the application for out-of-browser use. Thus you will not [...]
In Silverlight 4 apps which run with Elevated Trust can access local files by using System.IO and related types that would otherwise be unavailable. This allows apps to access user files directly without recourse to the OpenFileDialog and SaveFileDialog classes. However, access is limited to the the MyDocuments, MyPictures,MyMusic, and MyVideos [...]
Read more