silverlight

how to get the region name?

using Silverlight & Prism. i create a new scoped region inside a TabControl like so: IRegionManager regionManager = tabControl.Add(viewRegions, UNIQUEID, true); then from the TabControl SelectionChanged event i want to get the name of that region. so i go: TabItem item = e.AddedItems[0] as TabItem; FrameworkElement view = item.Conten...

Silverlight 4.0 - Deploying the XAP via a custom installer and configure it for OOB + Elevated permissions

Is it possible to deploy a XAP using a custom installer (much like deploying a desktop app), and configure it to run as OOB with Elevated permissions? Bottomline is, when the app is started, it should run in Elevated permissions + OOB, with out any user intervention at all after the installation. ...

Automated Silverlight Unit Testing with CruiseControl.NET

What is currently the best solution to automate running unit tests against silverlight applications within CruiseControl.NET? Preferably I would like to run MSTest unit tests however as these aren't officially supported for silverlight yet I am open to suggestions that use other testing frameworks. ...

Good framework for a C# developer to use for visually stunning presentation layer

I am about to write a front end app, which will be used as a media center app. It will plug directly into a high definition TV. Essentially transforming my laptop into a media player. While this concept is not new, I want custom functionality, so this is why I am not reusing existing products. I'm a C# developer, so the app should idea...

Binding ColumnDefinitions in Silverlight

I have two separate Silverlight usercontrols containing grids and i want these to share a set of columndefinitions. The columndefinitions must be created dynamically. How can i do this? ...

Is Silverlight able to change a file on a local user's computer?

I considering writing an application in C#/.NET that will programmatically alter an XML file on a user's computer and I trying to determine if Silverlight (and which versions, in what modes) will work for this task. Here's the workflow: User selects file Application modifies file Application saves file, overwriting original file Is ...

Silverlight: VisualState Animation Being Overridden Somehow

I've got a rather complicated custom control that would boggle your mind if I showed you all of the code. ;) In general it's a panel displaying multiple controls. You can think of it as a custom list box. (Please don't tell me to use a listbox, I've been there and it doesn't meet my needs completely). So, I set some animations in a...

Two-Way Binding Of VerticalOffset Property on ScrollViewer?

I have a View and a ViewModel in Silverlight 3.0. The view contains a standard ScrollViewer, which contains dynamic content. Depending on the content within the ScrollViewer, the user could have scrolled half way down the content, and then performed an action that causes the ScrollViewer to load new content, but the ScrollViewer does n...

stackpanel trim off excess children

I have a stackpanel(vertical orientation) with fixed height, i put in it n children with variable height, how do i remove child elements that are "pushed" out by newly added child. ...

Silverlight RIA Services - Unable to connect to SQL Server database

Hello, I am trying to get started with Silverlight. I have created a new Silverlight Business Application. The first thing I need to do with this business application is authenticate a user using the ASP.NET membership provider. I have already created my user via the Web Site Administration tool accessible through Visual Studio (Project...

XBAP childWindow control available similar to Silverlight 3 ChildWindow?

The Silverlight 3 toolkit has a ChildWindow control for model popup like functionality. This is great. Anyone aware of a similar control that can be utilized via XBAP? http://silverlight.codeplex.com/wikipage?title=Silverlight%20Toolkit%20Overview%20Part%204&referringTitle=Silverlight%20Toolkit%20Overview%20Part%203 The assumptio...

Removing a border line in Silverlight Border control (kind of like border-style-bottom:none in css)??

Hi, I'd like the ability to have something that looks like a border but I don't want the bottom to show. in CSS I could accomplish this by going border-style-bottom:none I'm wondering if Silverlight has a similar functionality for the Border control. If not, I'm wondering what other control I can use to accomplish this? thanks ...

Is there an event to tell when a WCF auto generated proxy is performing an async operation?

I'm creating a Silverlight application and I have a couple of issues with the autogenerated proxy (by going add service reference in Visual Studio 2008) When the proxy is generated on the client the async methods are generated and I can call them and that's fine. But what I would really like to do is have a 'busy' or 'async loading' an...

Is the System.Web.Silverlight reference needed?

We are just getting into Silverlight development at my workplace. Somehow two of our dev machines have been configured differently. I noticed that one of them has access to System.Web.Silverlight in the reference list, and the other doesn't. Both can create and run Silverlight applications from scratch. What does System.Web.Silverlight ...

Why does silverlight exist?

Why not to empower WPF or ASP.NET instead of creating a new product? ...

How to create "hovering" buttons in Silverlight?

I saw a Silverlight effect the other that I quite liked, and I was wondering how to reproduce it. The main screen of the app had 5 or 6 large buttons that were gently moving up and down a few pixels, as if they were hovering. Could someone provide me with some XAML to achieve this effect? ...

Create TreeView with buttons that behaves like Blend's objects tree

I am trying to create a TreeView control that would behave in a similar fashion to the object tree in Blend (pictured below). I would like to have a button displayed all the way to the right side of the TreeView for each tree item. By massaging the templates, I've been able to get buttons to appear all the way to the right. This is ver...

Silverlight -> WCF -> Database -> problem

Hi there, I have some silverlight code that calls a WCF service which then uses the Entity Framework to access the database and return records. Everything runs fine but ... when I replace the Entity Framework code with classic ADO.NET code I get an error: The remote server returned an error: NotFound When I call the ADO.NET code ...

What is App.xaml used for in Silverlight?

The default Silverlight project template creates a file called "App.xaml". What is this file used for? ...

LINQ expression works in LinqPad but not C# Silverlight Application

Hello, I have been working with a Linq query in a Silverlight application which returns only the row of a table which contains the max value of the field OptionARMRunId (identity). When executed in LinqPad, the query runs fine and returns the correct row. However, when used in my Silverlight application, the application never moves pas...