silverlight-2.0

Convert WPF XAML to Silverlight XAML

I have question about using XAML across the WPF and Silverlight platforms. Background: I have a silverlight app that needs to pass the Xaml to WPF and do some calculation to update the XAML. When I run the changes in WPF, I parse the XAML and convert it to the Canvas object which does the job perfectly fine. The problem is WPF strip ou...

XAML property to start a storyboard animation on load

Well, As the title suggest: I have a storyboard and I ant it's animation to start without the intervention of code. The reason for this requirement is that I am targeting Silverlight Embedded and I am too lazy right now to recompile my application as well. And, coming to think of it, it will be easier to change the animation only in th...

What are the differences between Silverlight 2 and Silverlight 3

Can you give me a breakdown of the differences between Silverlight 2 and Silverlight 3? ...

Silverlight: How to draw images dynamically?

s.jpg added to solution with BuildAction==Resource. XAML <UserControl x:Class=...> <Canvas x:Name="LayoutRoot"> </Canvas> </UserControl> CS Image Model = new Image(); Model.Source = new BitmapImage(new Uri("/s.jpg", UriKind.Relative)); LayoutRoot.SetLeft(Model, Coor.X); LayoutRoot.SetTop(Model, Coor.Y); Model...

.Net RIA Services: Javascript callback forces full reload of the application

Hi, I've successfully implemented a Javascript call from Silverlight (i'm calling a java applet). When the user finishes using the applet, I'd like to send the data back to Silverlight; so I've created a callback function: [ScriptableMember] public void DoCallback(string svalue) { MessageBox.Show(s, "Value from Appl...

Silverlight 2: XamlParseException in Silverlight 2

I have the following problem that appears in Silverlight 2; in Silverlight 3 the same code works OK. The XAML code is the following: <UserControl x:Class="My_Discussions.ThreadListItem" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:vsm="clr-namespace:Sys...

How to convert Silverlight XAML to Resource dictionary in Silverlight 2

I am looking for the quickest and easiest way to combine two silverlight projects. Once has controls all in Silverlight XAML the other is template driven and uses a template based on a Silverlight resource dictionary. I am looking for some advice and resources on the best and quickest way to do this. One project is based on this: Silve...

Messagebox Popup to Confirm Datepicker Issue

I am using the vanilla datepicker in Silverlight 2. I bind the selected date to a value, and when that value changes I pop a messagebox to confirm that they would like to change the value. However strange behaviour ensues when I use a messagebox straight after the datepicker's value is changed. The datepicker's popup will not close, and...

Setting background images to button control dynamically in silverlight

I have a button control and i want to set some background images to it in code behind.Any help would be greatly appreciated. ...

How to add handler in dynamic datatemplate

I am successfully declaring a data template in a code behind as follows: private static DataTemplate CreateTemplate(string sortMemberPath, HorizontalAlignment horzAlignment) { const string xamlFormat = "<DataTemplate xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" >" ...

Popup on inactivity Silverlight 2.0

Hi, I have silverlight 2.0 application and which uses WCF service to get data and validate ser etc. Is there any option to check inactivity on silverlight app and then show a popup message to user saying that there is no activity going on so you will be logged out and redirect page to login page? Please advise. Also the option of havin...

.wmv player not working

So...I've got an embedded object that looks like this: <div id="vid"> <script type="text/javascript"> var cnt = document.getElementById("vid"); var src = 'wmvplayer.xaml'; var cfg = { file:'images/photostory.wmv', height:'240', width...

Disable parent window on Popup Silverlight 2.0

Hi, I have created a Usercontrol which will be displayed as Modalpopup over the parent window. I have used semitransparent to lock the full screen and then displaying a popup messagebox or control (whatever) on the rectangle.This works fine like ModalPopup or childWindow popup. Problem is when modalpopup is up and if user clicks "Tab" ...

Silverlight player not working in jquery ui tab

Hello All,I have used jquery ui tab control and within that tab i placed JW Player(free silverlight player www. longtailvideo.com/players/jw-wmv-player/ ). Now let me describe my problem...I have four tab page 1. Player 2. Participant 3. Tag 4. Share. I placed JW player in first tab page. And other tab pages will display some data on dem...

Is there any difference in x:name and name for controls in xaml file?

Hi, I am new in Silverlight. When I add some control to my xaml file with Visual Studio it set controls name with Name property, but there is also x:Name. Is there any difference and when to use each of them? Thanks. ...

How can I get element from given point on canvas?

Hi I need to get element from canvas by given point. For example I have Rectangle on Canvas, which CanvasLeft and CanvasTop values are setted to some values. I whant get element from canvas which CanvasLeft and CanvasTop vaules are for example 10 and 40. Is it possible? Thanks. ...

Are Extension methods too expensive?

How much will it cost for my programs performance if i add Extension methods to it? Will it work slower or may be will load slower? Thanks. ...

VS2010 Target Silverlight Version 2.0?

I've just upgraded to VS2010 as I was running into problems with a Silverlight project that I needed to be built in 2.0 but I also needed other projects built in 3.0. I read about VS2010's ability to specify the Silverlight Target version and figured it was time to upgrade to solve my problem. I've installed 2010 and have also installe...

Zoom in out on mouse click Silverlight 2.0

Hi, I would like to zoom in/out an image exactly where mouse click occurs. Whole image should be zoomed but current view should show the part where mouse click happened and scrollbar should be available for seeing other parts as well. I tried using scrollviewer and placed my image control inside it. On mouse click am using RenderTransf...

How can i get the source code of this beautiful animation?

Hello, How can i download this sample project ? http://www.cynergysystems.com/blogs/page/josefajardo?entry=what_a_beautiful_thou_distracting I am new to Silverlight and i found this project amazingly beautiful. Thanks in advance :) ...