silverlight

Nested ItemsControl's and Height Adjustments in Silverlight

For an application I'm developing, I have a few nested ItemsControls that are used in the following layout some irrelevant items left out for brevity: ItemsControl (GroupItemsControl) - ItemPanel: StackPanel with vertical orientation - ItemTemplate: ScrollViewer with an ItemsControl (SliceItemsControl) inside - ItemPanel: Canvas* ...

Authenticate every call in WCF

Hi, I have a silverlight application that calls my wcf services so its a basichttpbinding. and we use forms authentication. I want to do a authentication check for every call that I receive except for the "AuthenticationService" (as this is the method which will do the basic authentication for login) so after user logs in and tries to c...

How to structure a 'flippable' app?

How feasible is it(and some guidance) to build a WPF(Silverlight) app in such a way that it can be flipped back and forth from Web to Desktop? Maybe some context is in order. I am a lone developer at a non-profit. I only develop in house apps that have very long life cycles with constant modifications and changes to business rules...

How to use mouse controls in Silverlight

I need to choose area in my Silverlight application and after area is chosen, it will have rectangle after mouse click is realeased. ...

Re-open the DropDown of an AutoCompleteBox in Silverlight when a user presses Enter

If a user types a few characters into an AutoCompleteBox, the DropDown is displayed as expected. If the user then clicks elsewhere on the page, this removes the focus from the AutoCompleteBox, and the DropDown disappears... also as expected. However, if a user then returns focus to the AutoCompleteBox, and wants to redisplay the Drop...

how to find out an entity in EntityCollection?

I use EntityCollection as datasource for combox as dropdown for a silverlight app with ria services. If I know the item selected in the collection, say its ID=123, then I can use this ID to find out the selected in EntityCollection. How to write the general function for this purpose? say something like: public Entity<T> GetEntity(Enti...

Silverlight TabControl Inheritance Fails in Expression Blend.

I create a basic TemplatedControl via Visual Studio. I then inherit TabControl instead of Control. It technically works (ie passes compile) but inside Expression Blend 3, I get an error " object reference not set to an instance of an object". Then if i click on the TabItem itself, the error goes away? anyone experience this? I tested ...

Can I embed a Silverlight applet in my JSP (java server page)?

I suspect the answer is yes, you can embed a Silverlight applet in a JSP, but I'm having a very difficult time finding any examples of this. Seems to me that I can just use the HTML that would go in a strict HTML file... <object width="300" height="300" data="data:application/x-silverlight-2," type="application/x-silverlight-2...

Dynamically load images from database and display in Silverlight 3 image rotator

I have a Silverlight 3 image rotator that displays approx.7 images. You can rotate it back and forth, and it will make the left or right image the selected image. The rotator is using jpg images that resides in an image folder. I would like to dynamically load image strings from the database, since I have hundreds of images available. My...

How to convert link to source to stream in silverlight?

How to convert link to source ( string containing the URL ) to stream in silverlight? ...

Shared data object between WCF service and Silverlight app

I have a custom data entity (data object) that is exposed via a WCF webservice. The WCF service lives in a web application. I then have a Silverlight application with a service reference to that WCF service. When i add the service reference a proxy is generated, and that includes a version of the custom data entity. How should i structu...

Using data services with silverlight 3?

Any thoughts on ADO.NET data services and Entity Framework with silverlight 3? It is a good pratice? ...

Why is my Twitter web request bombing out?

I've been working my way through Tim Heuer's Silverlight tuturial, in which you set up a basic interface to search Twitter. I started on the tutorial yesterday, completing through Step 3. It all was working fine. Now, though, I can't call Twitter without getting a "System.Security.SecurityException" error in the OpenReadCompleted handler...

Silverlight to RIA Service to Business Objects Causes Build Errors

I've went through the basic tutorials associated with Silverlight and Ria Services and I am now trying to branch out to a model I have used before. I have a Silverlight project that I want to use Ria Services with. Unlike the tutorials for Ria Services that I've seen, I'm wanting to have my Domain Services to use Repository objects in ...

What is the cause of intermittent Async_ExceptionOccurred errors in a silverlight app?

I have a Silverlight 3 app deployed at multiple customer sites. Customers are occasionally getting a System.Reflection.TargetInvocationException with an inner exception of Async_ExceptionOccurred. What is the cause of this? Is it just unreliability in the communications with the server? Is there any way to configure WCF to do an automat...

Silverlight passing parameters between pages using HyperlinkButton

Hi, I have a page that displays a list of users. each user has an ID and a HyperlinkButton to watch more details about the user. When pressing the HyperlinkButton, I would like to navigate to another page (called UserDetails) and somehow read the ID of the user that was pressed. How can I do that? Thanks, Ronny ...

How to export Silverlight 3.0 ListBox contents to Excel & Word?

The ListBox contains multiple ListBoxes which inturn contain many ListBoxItems. The top level ListBox does not have a ItemsSource collection bound to it, rather the child ListBoxes have ListBoxItems that are bound to individual properties in the VM. Is there a way to just dump the ListBox "contents" to an Excel file, may be by converting...

Silverlight with using of DependencyProperty and ControlTemplate

Hello everyone, I'm starting to study Silverlight 3 and Visual Studio 2008. I've been trying to create Windows sidebar gadget with button controls that look like circles (I have couple of "roundish" png images). The behavior, I want, is the following: when the mouse hovers over the image it gets larger a bit. When we click on it, then i...

How does one detect SetBinding sucess or failure in Silverlight?

Simple binding from C#: Binding binding = new Binding(SourceName); binding.Mode = BindingMode.TwoWay; BindingExpressionBase beb = SetBinding(SourceDependencyProperty, binding); I would like to detect whether or not the SetBinding was successful. SetBinding obviously knows when it has an issue because it displays in the Output w...

How to create simple blur filter with HLSL (for Silverlight)?

How to create simple Gaussian Blur filter with HLSL (for Silverlight)? Why - I want to create some complex filter for Silverlight and I do not want to apply blur filter and mine separately. What do I need? I need HLSL filter source. ...