silverlight

get ip address (when no ASP.NET available (on linux server))

I can't find the ip address without the aspx page (so on a linux server). If it can work through wcf then its also good. ...

.NET / Silverlight: DataContractSerializer Byte Array and Sockets: Unexpected EOF deserializing.

Hello I am currently using sockets to try and send messages between a Silverlight 3 client and a .NET3.5 service. I can set up the TCP connection fine, and send data across, but my issue comes with serialising and deserialising DataContracts. Currently we are using WCF PollingDuplex binding to do this work, but we are not happy with i...

.NET RIA Services - DataService problem

I downloaded an example of the application based on the .NET RIA services from the article: http://blogs.msdn.com/brada/archive/2009/07/22/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-6-poco-and-authentication-provider.aspx from the "download the full demo files" link. On my PC (MS VS 2008, SP1, NET ...

Why Count() is not work for null record of "Var" or "iQueryable" class?

[Invoke] public List<string> GetConCurrentContractId(string identity, string empId, string payMonth) { List<string> _rtn = new List<string>(); IQueryable<mContract> query = this.ObjectContext.mContract; IQueryable<mContract> query2 = this.ObjectContext.mContract.Where( q => q.wEmpId == em...

How to do Selection Alignment using the RichTextBox in Silverlight 4?

I cannot seem to figure out how to do a Selection Alignment in the new RichTextBox, I have an idea that I need to convert the selection into the Paragraph type which supports alignment, but cannot seem to figure this out. None of the Silverlight examples have this, but I'm sure it is possible. I have this code, that does not work - as I ...

Silverlight - how to auto begin a Storyboard inside a <ListBox.ItemTemplate>

I'm trying to display a list of bound data in a then get a Canvas to animate behind each row. I'm having trouble getting a Storyboard to Begin when I place it inside a template. Here is an example of the XAML I have so far: <ListBox x:Name="MyListBox" Background="Transparent" Foreground="White" Height="200" Width="400" BorderThic...

Can JavaScript be a viable alternative to flash and silverlight?

Take a look at http://www.chromeexperiments.com/ I think JavaScript is very close to have everything that RIAs can offer. What's missing from or for JavaScript to make it a viable RIA development alternative? ...

SSO for Silverlight 3 and WinForms application

Hi, I need Single Sign On for two types of application: Silverlight 3 and Windows Forms. Do you have any advice about how I could implement this? Windows authentication is one possible solution. Any other? Thanks Best regards ...

Create ToolTip on Silverlight DataGridTextColumn that is different from the bound cell contents

I have a DataGridTextColumn in a Silverlight 4 DataGrid and I want to set a ToolTip value on the column that is different from the bound value. I know I can do this with a templated column quite easily - but it adds a huge amount of extra XAML and makes it cumbersome to read and maintain. This works, but is a lot of extra code - especi...

What features of WPF are excluded in Silverlight 3 ?

Hi, What WPF features were removed from Silverlight 3 ? I have found resources on graphing algorithms in WPF and am wondering how much of that I can transfer to a Silverlight application. Thanks, Scott ...

silverlight 3.0 grid row selector color

is it possible to specify the color for the row selector in silverlight grid ...

Is it possible to Fit-to-page with Silverlight 4 Print API?

I have a silverlight control that prints to about 1.5 pages. I'd like to try and scale to fit onto a single page. I'm using the new Printing API in Silverlight 4. I've modified the docToPrint.PrintPage handler as follows : var renderHeight = item.RenderSize.Height; var printableHeight = args.PrintableArea.Height; var scal...

What is faster Flash or Silverlight?

What is faster Flash or Silverlight? So I mean there is working Flash quake and Silverlight quake (not totally working yet) So what is faster after all? Or Are they all same speed? really need to know to get an idea on what it’s better to start my cool programming project. ...

WPF ItemsControl IsMouseOver not working as expected.

I have the following code in the Window.Resources of a WPF window. What it is basically doing is creating an item that represents a grid with a label positioned on the left and a button on the right. When I mouse over the label or the button the row changes color as expected but I want it to also change color if the mouse is over any o...

How to get Title Description and URL from Filckr for a set of photos

So I have a photo viewer that I am creating to learn Silverlight and I want to be able to get all of the photos from flickr for a specific user/set. I see that I can easily get the information in an atom feed but I can't easily get the description as the atom feed combines the Title/description etc and outputs it as html. Is there any...

Receiving NotFound CommunicationException in Sliverlight 3 WCF client

I'm getting a very unhelpful CommunicationException when attempting to call a WCF service from Silverlight 3. The message of the exception is "The remote server returned an error: NotFound." Each inner exception parrots that same message. Is there a problem with my setup that could be causing this issue? Here's my setup. The WCF ser...

WCF assembly causing circular dependencies.

I have a silverlight library which I have added a wcf service reference. Call this library A.dll. This library contains other functions and I prefer to have the wcf code in another library. I now have created another silverlight class library which I have added the same wcf service reference (call this library B.dll) and want the first...

Silverlight: Define a custom ControlTemplate in C# instead of XAML

I believe I'm using Silverlight 3.0... I just downloaded it this week. Assuming the charting namespace references the System.Windows.Controls.DataVisualization assembly in the Silverlight Toolkit, please help me create the DataPointStyle using C#, as it's expressed in XAML below: <charting:Chart Title="Simple Column Annotations - B...

Implementing a timeline slider using silverlight or ajax ?

Howdy everyone! I want to ask you for direction for creating a timeline slider similar to the one in Plurk. I want to arrange my events on a timeline and make the user slide through this time line to navigate the events. I just want to know weather I can do it using silverlight or not ? or any other feature in the .NET platform. Than...

VB.NET - ThreadPool and delegate in c# to VB.NET

Hey, how this is written in VB.NET? This was an example I found on http://www.codeproject.com/KB/silverlight/SynchronousSilverlight.aspx. ThreadPool.QueueUserWorkItem(delegate { var channelFactory = new ChannelFactory<ISimpleService>("*"); var simpleService = channelFactory.CreateChannel(); var asyncResult = simpleService.BeginGetGre...