silverlight-3.0

Silverlight 3 - Elements inside an element dont arrange sometimes

I have a grid/canvas that has an element (say an icon with an image and text overlayed) added to it dynamically via code. Most of the time it renders correctly when added (content is aligned properly inside it), but sometimes all the content sits in one corner. I can remove/add/remove/add/remove/add and it will eventually do it After...

Scrolling on page with object of Silverlight 3 doesn't work

Hello, I have on the aspx page some Silverlight 3 object that is pretty big. I don't want to use ScrollViewer but I want to make the page scroll. When I set up "overflow:scroll" for this object I cas see page's scrollers but they're not active. If I don't set up something like that the object is clipped stupidly if I make the browser's w...

Silverlight 3: problem with mediaelement

Hello I have 2 wmv files, the MediaPlayer plays both of them. But when I try to set up the Source for MediaElement only 1 of them was played. I would like to test this file to understand what wrong with it. How can I do find the reason? It's on the XP machine. I have loaded it and checked using silverlight.live and it's playing here. So ...

How to know when an item turns hit test visible=false

This is a simplified example. I have a canvas and a usercontrol inside it. I set the canvas to IsHitTestVisible = false How can I tell that the usercontrol is no longer hittestvisible? And preferably get a notification that it changed. I tried databinding to IsHitTestVisible on the user control but it does not change when I change...

Need to capture F12 key and Shift F12 key combination IE8

In the silverlight application if I set Windowless to true on the plugin then F12 key is not captured on KeyUp for the layout root. I am trying to do this application wide. So I need to capture F12 and Shift F12 no matter where the user types it. Currently I am trying to capture it on the Keyup event of the top level layout root. Thi...

RIA Services Custom Class

Using Silverlight 3 and RIA Services I have the following class defined in my Web project: public class RegionCurrentStates { public RegionCurrentStates() { Name = String.Empty; States= new List<State>(); } [Key] public string Name { get; set; } public List<State> States{ get; set; } } On the cl...

Treeview - Hierarchical Data Template - Binding does not update on source change?

Greetings! I ran into this problem in my project (Silverlight 3 with C#): I have a TreeView which is data bound to, well, a tree. This TreeView has a HierarchicalDataTamplate in a resource dictionary, that defines various controls. Now I want to hide (Visibility.Collapse) some items depending on wether a node has children or not. Other...

how to correctly validate linked fields in Silverlight 3

My problem is with fields whose validation logic is linked - when Field A changes, how do I get Field B (which depends on it) to re-validate? Here's a concrete example. Two DatePickers, one each for Start and End date, bound to the same data model object, as shown below. public class Model { private DateTime _startDate = DateTi...

MouseLeave event in Silverlight 3 PopUp control

I want use PopUp (System.Windows.Controls.Primitives.PopUp) control to show some context menu. After mouse leaves, should automatically close. But eventhandler for MouseLeave is never executed. Why? SAMPLE: void DocumentLibrary_Loaded(object sender, RoutedEventArgs e) { DocumentLibraryDialog documentLibraryDialog = new DocumentLibr...

Reduce XAP Size Setting - What's the Benefit ?

Using Silverlight 3, I noticed that System.Xml.Linq.dll was added to my XAP file, increasing the size from 12 to 58 k, so I checked the box 'Reduce XAP Size by using application library caching'. Publishing the app to IIS, then loading it with Web Dev Helper enabled, I see that when I open the app, the XAP file at 12k is loaded, then th...

Silverlight ViewBase in separate assembly - possible?

I have all my views in a project inheriting from a ViewBase class that inherits from UserControl. In my XAML I reference it thus: <f:ViewBase x:Class="Forte.UI.Modules.Configure.Views.AddNewEmployeeView" xmlns:f="clr-namespace:Forte.UI.Modules.Configure.Views" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" ...

How can I get a variable into Silverlight 3 control from my ASP.NET code?

I'm playing with Silverlight 3 at the mo. I'm trying to get the current user ID into the Silverlight 3 page. I've done a bit of research and initParams seems to be the right way to go. Trouble is, they seemed to use the asp:Silverlight control and that's gone in SL3. I'm stuck trying to get a variable into the initParams list, assumi...

Issue Running RIA Services on IIS 5

I'm setting up an environment for testing a Silverlight app with RIA Services in IIS 5.1. I'm getting an error message on the first service call saying "The specified resource was not found." This only occurs when I deploy the project to my local IIS 5 setup, it works fine in the Visual Studio hosted web server. I was having this issue...

two datagrid in silverlight

There is two tables in database. Tables is related with foreign key. table 1 --> datagrid 1 table 2 --> datagrid 2 datagrid 1 items is selected, Datagrid 2 shows table_2 datas. ...

10th call of .net RIA service fails with 'Login failed for user...'

I get this error only after 9 successful calls to same .net RIA service. System.Windows.Ria.Data.EntityOperationException: Login failed for user... The .net RIA service has NO EntityOperation methods, only the one ServiceOperation which returns an XElement. ...

Silverlight3: What to use: WebClient or database with RIA

Hello, I'm asking for the advice. I'm working at the Silverlight 3 application and now I should select the mean how to save the information and get it. I could save the necessary info in files (from 1 to 300K size) or I could save them in database. If I would use WebClient for accessing to separate file there's very low loading of the se...

How to make smaller points on a Silverlight Toolkit's LineChart?

By default if you take a look at the Silverlight toolkit demo site, http://silverlight.net/content/samples/sl3/toolkitcontrolsamples/run/default.html you will see on the LineChart some points wich are relatively big. As far as i know every point on the Chart is an Ellipse. For that i created the style on xaml file. <Style x:Name="C...

Where can I find a free web server to host a .xap file?

I can't use the silverlight free hosting because I can't use iframes to embed my video for my site. I can't use .html either. I just need a place to host the file, for free. No FTP either. ...

Does a Silverlight 3 out of browser (OOB) application support Bing Maps or Virtual Earth Maps?

Is it possible to use any Microsoft Map component / control to integrate a map in a Silverlight 3 out of browser (only) application? ...

Double Click Event

How to make a double click event in C# for using Silverlight3.0. In my project, i had created stackpanel dynamically, When the user double click on the stackpanel, the child window will be displayed. There is no such event in silverlight. How to make a double click event for my application? ...