silverlight

Silverlight and ATOM feeds that require authentication

I am building a simple feed reader application that needs to access an ATOM feed that requires authentication. I was going down the route of using the WebClient class and found a Credential property that exists but is not implemented! webclient.Credentials = new NetworkCredential("username", "password"); Question: What work around ar...

WCF Service reference from Silverlight Class Library

I have a Silverlight application communicating with the server side through WCF services. Initially I had everything in the main Silverlight application, but now I wanted to factor our some classes to a separate Silverlight Class Library project. This however gave me some odd issues... I wanted to factor the classes that does the WCF co...

How can I create a Mouse Hover State on Silverlight for a Stack Panel?

Hi There, I am trying to create a mouse hover state which it changes its opacity when a mouse is over the stack panel. I have created the state, and created a mouse_enter event for the stack panel, and on the code behind cs file, I have the following code on Mouse_Enter event. MouseOver.Begin(); Where MouseOver is the StoryBoard's na...

Integrating ASP.NET-MVC with Silverlight using WCF and Ninject as IoC/DI

I have a prototype ASP.NET-MVC website which uses Ninject as a IoC container. All service-classes and repository-classes used by MVC Controllers are properly injected by Ninject. This is great. The next thing I need to add there is Silverlight (version 3 to be more precise). Silverlight will be connecting to my server using WCF service,...

Share data types between silverlight and other applications

If I want to define a class in a common assembly, to be utilized by both a silverlight application and an asp.net web application or other type of app, can I define the data type in a standard class library or should I use a silverlight class library? ...

Silverlight 3 Out of the Browser Updates

I have a few users that are using a silverlight app that aren't recieving updates when a new release is published. Isn't this suppose to be automatic or perhaps I'm missing an option somewhere? I was also starting to think that maybe the XAP file is cached and I some how need to prevent that. Any thoughts out there? ...

WPF/XAML: Set a style with a different TargetType?

I have an external style resource in a resource dictionary I'm referencing with x:Key. It has an x:TargetType specifying a target (TextBlock). Is it possible to apply this to a control containing a TextBlock and have all TextBlock elements within that control have the style applied? Thanks, Robert ...

Why don't my scrollbars work properly when programmatically hiding rows in silverlight Datagrid?

I have a Silverlight datagrid with custom code that allows for +/- buttons on the lefthand side and can display a table with a tree structure. The +/- buttons are bound to a IsExpanded property on my ViewModelRows, as I call them. The visibility of rows is bound to an IsVisible property on the ViewModelRows which is determined based on w...

How can i pass an authentication cookie to an ADO.NET dataservice in Silverlight

I can pass a cookie into my silverlight application from another asp.net page, but i need to add it to the request header of my dataservice... This was easy in ASP.Net, but in Silverlight it seems that i can't manipulate the request header private void Authorize() { Cookie dataServiceAuthCookie = new Cookie(HtmlPage.Docu...

The Silverlight 3 Toolkit styles prevent the displaying of SL 3.0 data validation errors.

Hi, If I apply a style from the SL 3.0 Toolkit to my application the built in SL 3.0 data validation errors are not displayed on the application edit forms. If I removed the code that applies the toolkit style to the application the SL 3.0 data validation errors appear as per normal SL 3.0 behaviour? Has anyone else come across this pr...

Showing Silverlight App in Browser From batch file on Win2008

I am trying to open a web page with a Silverlight App from a batch file on a Windows Server 2008 box. If I put this in the batch file: start iexplore http://www.google.com The google page shows. If I put this in the batch file (where TestPage has a Silverlight Application): start iexplore http://www.mysite.com/Configure/TestPage.ht...

What is the best way to split an Image in Silverlight?

I am looking to split an Image into two tiles. One would be the left half of the image the other the right (so both half the size of the original Image). These will then sit next to each other before an animation will pull them apart. I have attempted to create two images and used the Clip property. This does show the correct part s of ...

center align contents of a listbox in silverlight

I have a list box which is of a certain fixed width. The number of items in the listbox varies. Is there a way to center the contents of the list box? The "Content Presenter" of the ListBoxItem ,centers each item inside its Template instead of centering it with respect to the entire listbox width. Sorry about not replying earlier. The i...

How do I add button dynamically on ArcGIS Silverlight API?

Hi All, How do I add button dynamically using C# on ArcGIS? I can create that using XAML, but I can't write that on C#, I checked on the website on ArcGIS, they allowed to add graphics dynamically, but there is no sample to show how to add controls such as button dynamically. Can anyone provide me some sample code? Thanks ...

Silverlight controls not loading

I'm working on a Silverlight 3.0 app, and about 1 out of every 10 or 20 times, a UserControl I've created won't load with the rest of the application. The rest of the application loads and functions correctly. So far, I've been exclusively launching this from visual studio, but I'd like to be sure that this isn't something that will happ...

silverlight disconnect from wcf duplex after 10 connections

hello to all I have develop a silverlight chat application. In a single window load more than one chat windows at same time and every chat windo create a new connection to wcf duplex service. But after every 10 chat windows it disconnect from wcf and work stuck off. Im code some for throttling option but they don't work. this is my code...

How many Socket connections can a server handle ?

How many Socket connections can a server handle by hosting this Silverlight Chat ? I know Silverlight has a limited port range available. Is this a parameter in my ecuation ? I own a VPS. ...

cannot load custom tooltips in silverlight

Hi,, I have created a custoom tooltip for a lineseries chart. however my problem is that this custom tooltip is never loaded..(I still get the default tooltip i.e. X-value) Is there something I should be doing differently?? page.xaml <Style x:Key="ttip" TargetType="chartingToolkit:LineDataPoint"> <Setter Property="Tem...

How to Silverlight Invoke Javascript function in a namespace?

I'm having a problem since I wrapped my javascript functions inside of a namespace. Version 1 of my code worked fine. Originally, to call the javascript from inside Silverlight I used to use this code: HtmlPage.Window.Invoke("hideMyDiv"); My javascript looked like this: function hideMyDiv() { $('#MyDiv').fadeOut(); } Now, I've r...

How to index your Silverlight application in search engine?

Well, I have a Silverlight application with many internal pages, and I want search engine to index my Silverlight content. Besides I want to manage my Silverlight content for search engine and reader effectively. How can I do Search Engine Optimization “SEO” for Silverlight? Thanks ...