silverlight

Data Changed question on Dataform of Silverlight using RIA

I am using RIA service to bind with my dataform. When I modify any field of the dataform and then move the focus to other field, the data form will mark up a * next to the title of the dataform. But I found it is not worked after I using WCF RIA service, the new one. Any hints? Thanks~~! ...

Extract the stream from a Silverlight image control

Is it possible to extract the steam (or something similar) from a silverlight image control? I figured you could get the stream from the Image.Source property, but so far that has been a dead end option. Thanks. ...

Waiting for Event Triggering in Silverlight Unit Tests

I am using the Silverlight Unit Testing Framework to test some View Manager classes. Some tests require the PropertyChanged events to be fired. I'm currently using a combination of EnqueueConditional and WaitHandles Example 1 [TestMethod] [Asynchronous] [Timeout(1000)] public void TestNotificationExample() { var manager = new User...

is data caching possible in silverlight

hi is data caching possible in silverlight? if yes can anyone suggest me to find good articles for that? ...

does silverlight 3 support GUID in xaml?

I have a question similar to this - Does Silverlight xaml support Byte Data Type. Does silverlight xaml support Guid datatype. I m trying to set Guid in my xaml which is a declared as property in c# class library. is this possible? I tried using xmlns:sys="clr-namespace:System;assembly=mscorlib" and using <sys:Guid>F16095D1-1954-...

keyboard browser shortcuts doesn't work in Silverlight if some control is selected

Hi In SilverLight application when a textbox or button has the focus if the users press the keyboard shortcuts: Ctrl + y Ctrl + to get the zoom browser this funcionallity doesn't work. Is there any workaround? Huge thanks Javier ...

Determine which version of Silverlight an assembly is built under

I have a Silverlight project in which I compile to both Silverlight 2 and Silverlight 3 using the instructions here which imports MSBuild targets into the csproj file from two seperate locations holding Silverlight 2 and 3 targets respectively. The build/compilation seems to work, producing two different files, but I was wondering if (a...

Identifying Silverlight at server side

What I have? I have a web part on which I am displaying a hierarchical diagram picking the information from a List. The diagram is drawn using Silverlight and HTML. What I want to do? I want to show Silverlight diagram if Silverlight is installed on the client machine otherwise I want to show HTML diagram. What problem am I facing? ...

Error in ServiceOperation attribut in .Net RIA Service

I am just trying to learn .Net RIA Service, so i am creating one hello world example. Now in domainserviceclass i am using below code [ServiceOperation] public string SayHello() { return "Hello RIA World!"; } It is giving me error for reference, i have tried to search on the net but i am unable to identify that which namespace...

Display another View after clicking on a button

Hi all, I'm starting with prism after seeing the videos on codeplex, and I'm trying to make a very easy thing. Display a view with a button Click on the button Display another view after the click Should I use an event aggregator ? How to publish an event without parameters ? How to subscribe to this event and display the another ...

How to programmatically reference a Silverlight DataGrid cell?

Most grids use a syntax such as MyGrid[row, col] to reference a particular cell programatically. How is this done, say, in C#, for the Silverlight DataGrid? All examples I've seen thus far use only XAML. Thanks. ...

Silverlight Button Style gets stuck on fullscreen

So I have a number of buttons in Silverlight that I've made from images. In each case the button has a regular image and a hover image. I've used Blend to have the hover image fade in over .15 seconds on hover. The problem with this is that I can't figure out how to access the images anymore, since they are embedded in the style. So, I...

How to bind to a ViewBox in Silverlight?

I have used the ViewBox Silverlight Toolkit control to bind to, however Silverlight 4 add this to the Core, however it no longer has a specific "Content" property to bind to - how to I bind Content to the new ViewBox? For example I want to be able to do this (not valid syntax): <ViewBox Content="{Binding Path=Canvas}"/> Where the C...

Silverlight CMS

Hi guys. I am have started working with Silverlight and thought I would make a full futured website with a Silverlight front and are therefor looking for an Open Source CMS that takes care of the administration part and lets me worry about the presentation. This is a hobby project so I am not very intrested in spending any money on thi...

Siliverlight 3 Navigation between user controls?

Hi all, Im just starting to get to grips with silverlight 3, coming from ASP.NET and Flex. I have followed the new navigation tutorial here and read through the authentication and role management tutorials also. So, i have a main page, which has a frame, inside of the grid, and several views. These are all navigatable and working f...

Silverlight Canvas: How does it work?

Hello all, In silverlight Canvas class (with Reflector) has very simple implementation: 3 attached dependency properties (Left, Top, ZIndex) and 2 ovverides of MeasureOverride and ArrangeOverride methods which do nothing special. But if i use my implementation like: class MyCanvas : Panel { /* Top and Left dependency properties implem...

Silverlight DataGrid databinding problem

Say I have a table name is MyData, the I have a column have the same name MyData. so the table looks like MyData(ID, MyData, Col3, ....) Using EF and Ria Service to get data from DB and bind data to a datagrid like: <data:DataGridTextColumn Header="ID" Binding="{Binding ID}" /> <data:DataGridTextColumn Header="MyData" Binding="{Bin...

Silverlight data-binding - is it possible to temporary suspend

Hi I have a group of Siverlight elements that are bound to an object. I want to be able to suspend the databind (effectively freeze their current values) for some time (when the mouse hovers hover the containing panel). What's the best way to do this? There doesn't seem to be an easy way - one thought is to create a copy of the data ob...

Can Silverlight WCF client read exceptions from an ASMX web service?

I've seen no need to upgrade my services to WCF, but I have been using WCF clients for some time to access ASMX services from .NET 3.5 ASP.NET. I figured eventually I'd hit a wall in this mismatch and I just did - but with Silverlight. When using Silverlight to access ASMX web services I get an error like this in a popup : An except...

Do i *have* to use ObservableCollection in Silverlight WCF client?

When accessing Silverlight in WCF you get proxies generated with ObservableCollection Thats fine when you're databinding, but a little clumsy when you're just calling a method. For instance the following service method : [OperationContract] public SearchOrdersMsgOut SearchOrders(ShippingStatusType[] shippingStatuses, ...