Tag: silverlight 3
-
“Invalid FORMATETC structure” error on control drag n drop
Today when I was developing Silverlight app using Telerik RadControls, there was an error “Invalid FORMATETC structure” prevented me to complete the drag n drop of RadControls to the XAML editor. I didn’t have any idea what was caused it because I could still drag n drop the Button control to the XAML. I thought…
-
Working with Image.Source on Silverlight 3
Below are some options to work with Image.Source 1. Embedded in the .xap file as Content Note that the Build Action is “Content” XAML <Image x:Name=”imgContent” Source=”/Assets/Images/2.jpg” /> Code (C#) imgContent.Source = new BitmapImage(new Uri(“/Assets/Images/2.jpg”, UriKind.Relative)); 2. Embedded in the .xap file as Resource Note that the Build Action is “Resource” XAML <Image x:Name=”imgResource” Source=”/SilverlightApplication1;component/Assets/Images/1.jpg”…