silverlight

why breakpoints don't work when debugging Silverlight app?

Hey, I debug my Silverlight application and when I put breakpoint in push button even, it don't invoke when I push it. Don't You know why it is ? Why then my app don't pause and I don't move to code to iterate through line of code? ...

HLSL Shader to Subtract Background Image

I am trying to get an HLSL Pixel Shader for Silverlight to work to subtract the background image from a video image. Can anyone suggest a more sophisticated algorithm than I am using because my algorithm isn't doing it correctly? float Tolerance : register(C1); SamplerState ImageSampler : register(S0); SamplerState BackgroundSampler...

UnauthorizedAccessException: Invalid cross-thread access in Silverlight application (XAML/C#)

Relatively new to C# and wanted to try playing around with some third party web service API's with it. Here is the XAML code <Grid x:Name="ContentGrid" Grid.Row="1"> <StackPanel> <Button Content="Load Data" Click="Button_Click" /> <TextBlock x:Name="TwitterPost" Text="Here I am"/> </StackPane...

Creating image from base64 encoded string (Silverlight 4.0)

I get a Catastrophic Failure error when I try to create an image from a base64 encoded string sent in an XML file. I have the back-end guy who says it works but he uses WPF and Silverlight is different. The code: void TagCloudImageCompleted(object sender, WebApiTagCloud.TagCloudImageCompletedEventArgs e) { String cloud...

play video in silverlight?

How do yo play a video with silverlight? does Visual Studio come with a video player component build in? or do I need to make a video player? ...

How do I integrate a Silverlight DataGrid into an ASP.NET MVC View?

I'm new to Silverlight and I've used it to create a simple datagrid that I'd like to include as part of a view within an ASP.NET MVC View (while using the existing master page layout). What's the best way to do this? I haven't been able to find any examples... ...

Find the items matching any condition from the generic list

I have collection of patient in a lists named lst_Patient. And this is method where i get the info from user: public Patient[] GetPatientsBySearchParams(DataPair[] dataPair) { //return the array patients that match any of the criteria //Right Now I ma doing this didn't get any success : List<Patient> P = new List<Patien...

Create new instance of a page and obtain URL

Hi, i'm a beginner web programmer. I've been coding desktop applications primarily. Right now, i have created this web app, in Silverlight, that uses a web service of my own for querying the database. The thing is, one of the app functionalities is the ability to open PDF files. I know that silverlight won't let you do this, but using a...

Upgrade to Silverlight4 Issues

Hi All, I am new to the Silverlight. ANd right now stuck with the one issue. Before we are using Silverlight 3 and telerik silverlight controls version 2009.3.... Currently we want to upgrade our project to Silerlight 4 and telerik to 2010.1.... I am getting one issue regarding GridView. It is showing totally blank even in the collecti...

Binding to Source property of Frame doesn't work after Frame.GoBack

Hi, I have three pages, and to navigate to each page, I'm binding a property to the Source property of the Frame. It works pretty fine if I just navigate the pages normally, but after calling the GoBack method, the Frame suddenly stopped working. If I set a uri to the Source property directly instead of using binding, it works fine thou...

Using excel type viewer on database tables with Silverlight

Hi, I know in Silverlight 4 excel spread sheets can be read but I need to somehow have Excel type functionality (with filters etc) built into my silverlight application but using the data from my database. Is this possible and/or are the any 3rd party components to do this? JD. ...

What is to FromFile and ToFile equivalent for BitmapImage?

The System.Drawing.Image has the easy to use methods for FromFile and ToFile. What is the equivalent for the Silverlight BitmapImage? I am trying to load and save a jpeg image as part of a unit test. The bytes must match exactly for it to pass. Here is my current guess: //I am not sure this is right private BitmapImage GetIm...

Cascade deletion in WCF Data Services

Hi all, Is it possible to delete persistent objects graph by the single command using WCF Data Services in Silverlight? I've started with this walkthrough and added code for deletion of selected order (which contains details): private void deleteOrder_Click(object sender, RoutedEventArgs e) { Order deletedOrder = (Order)ordersGrid....

What is the best way to establish communication between silverlight controls and ASP.NET

I thought I ask the more exprienced Silverlight users about what they think is the best way to embed Silverlight user controls into an ASP.NET page - in special regards to stablish an easy way of communication between the conrols. I have heard about services, query strings, etc. but I'd like to find out what has worked for you the best ...

MVVM for Web Development

I've been reading up on MVVM and so far have found it very interesting. Most of the examples I've found, however, are for Windows apps, as opposed to Web apps. I've also seen a lot of mention of MVVM used with Silverlight, and I know Silverlight can be used for either Web or Windows apps. So my question is - is MVVM a valid pattern for ...

Scrolling vertically grid content

Hello. I'm developing a Windows Phone application. I have a phone page with a big textblock and a picture inside on a stackpanel. Because the textblock is big the picture isn't visible. I set VerticalScrollBarVisibility="Visible" on stackpanel but I can't see the picture. How can I use a scrollbar to see the content bellow the textblo...

Exporting Silverlight animation

I have a silverlight animation, is it possible to have a button that once clicked will start the animation and once finished export it to wmv? ...

setting Bing Maps Silverlight Control Property From Code Behind

Hi, I need to set the CredentialsProvider from code behind prior to load the control on page. I have "ApiKey" dependency property in code behind and binding it to Bing Maps silverlight Control but it doesn't work. It gives an error "invalid credentials" at run time. Code Behind public static readonly DependencyProperty ApiKeyProperty ...

Bing Maps Route Service CalculateRoute returns "An error occurred while processing the request."

I've written a Silverlight class to consume the Bing Maps Routing Service. I'm creating an array of Waypoint objects from lat/long data that I have stored in a database, and sending that to the CalculateRoute method of the webservice in order to get a route back, but I am unable to successfully get a route back. The response always con...

Silverlight 4 out of browser application not opening

I have developed a silverlight 4 application and set it up to run out of browser. As is always this case it loads and runs fine from my machine and my testing environments. I can install it on my clients machine but it will not load once I try and launch it, basically nothing happens. Any advice on how to proceed or test this issue. ...