silverlight

Setting the width of a Silverlight combo box to accommodate its widest item

In a Silverlight application I have a number of combo boxes with data content. How do I set the width of the combo box so that it can accommodate its widest item? I have created a hack that works in WPF, but it does not work in Silverlight – which is both unfortunately and expected ;^( I might be able to create a workaround by measurin...

Expression blend photoshop effects

Hi I'm new to using blend, I've discovered when I import my photoshop file blend takes my effects away. Can anyone tell me why blend doesn't recognize my effects? Thanks Judi ...

Read MP3 Tags with Silverlight

Hi, does someone know a library, that I can use to read MP3-Tags in Silverlight 3? In WPF I was using taglib, but obviously I cannot reference it in Silverlight projects. Thanks, Andrej ...

Hotkey commands for Silverlight in MVVM?

I'm trying to fire commands based on keystrokes in Silverlight. As I understand you cannot use AccessKey or AcceleratorKey in Silverlight. Also it looks like the might be helpful attached property InputBindings does not work either. I started looking in other places. It looked like Prism was the way to get commands working in Silverligh...

C# Silverlight with RIA Services Authentication

Hello! Does anyone have any good samples, resources, pointers etc. for C# Silverlight with RIA Services basic authentication or Roles?! All of the tutorials I've checked out aren't too great.... help appreciated greatly. cheers ...

How do I open a socket back to port 80 in Silverlight?

Is there a way to open a TCP Socket back to a non-standard Silverlight port such as port 80? I don't quite understand the restrictions on Silverlight ports. I would like to open a connection back to the server of origin using any port. I can serve a policy file from port 943 if needed. ...

How best to add classes to the structure of my silverlight project + website?

I am working on a silverlight 3 site using expression blend 3 (silverlight project + website option in expression blend). I need to add some business logic for the controls to consume (eg get ints for my gauges to pick up). If I add code to the class library, I cannot use all the namespaces and types - I assume because of the CoreCLR's ...

Silverlight changing styles based on an objects property value (ie DataTrigger)

Hi, Does anyone have a successful workaround for changing a style in silverlight based on a property of the underlying data object, in that when the value changes so does the style. I used WPF briefly and it obviously has the DataTrigger which seems to cover this but it is missing in Silverlight. I found this: http://blois.us/blog/2009...

Trouble with Pan by dragging in Silverlight

Hello, I have a Canvas inside a ScrollViewer; the Canvas will have several objects drawn on it. I would like to be able to Pan -- scroll -- the Canvas using the mouse: LButtonDown - move mouse - LButtonUp. In the .xaml, I have a TranslateTransform for the Canvas. Code: private void MapCanvas_MouseLeftButtonDown(object sender, MouseBu...

Adding easing in via timeline without apply a transform

When I add an object to my canvas in Expression Blend 3 and select it from the timeline, is there a way I can apply an easing in function to it without having to apply a transform? When I apply a transform and then select it from the timeline, the easing in option becomes available but not otherwise. Furthermore, I could add the easing...

How to be notified when Silverlight Panel's chilren are added to or changed?

Hello: I'd REALLY like to make a Panel that knows when its Children collection is being modified. It's a non virtual property, and the internal private UIElementCollection doesn't implement INotifyCollectionChanged ...so I've had to try several other techniques. The first was to wrap the UIElementCollection within an observable collec...

Duck typing library for Silverlight?

Do you know any duck typing library for Silverlight? There are a few for full-blown .Net framework but I'm looking for something lighter. ...

Load File in XAP

Hello, I had a number of CSV files embedded within a Silverlight DLL (as Resource). I need to move these into the XAP (as Content rather than resource). The trouble is Application.GetResourceStream always seems to return null when I try and access the files. I have tried a number of ways to achieve this but can't seem to do it. How ...

C# Silverlight with Entity Framework - Change Return Type On AutoGenerated EntityQuery!?

Background Currently I have a C# Silverlight business application which uses RIA Services. The application is hosted in ASP.NET using the ADO.NET Entity Framework and a domain service class to read and write to the SQL Server database. Scenario I have a server-side method in my DomainServiceClass that returns an IEnumerable list of ob...

Error when binding a Dependency Property on a custom Behavior

I am exploring the Silverlight attached behaviors mechanism in order to use the Model-View-ViewModel pattern within my Silverlight applications. To start with, I am trying to get a simple Hello World working, but I am completely stuck in an error for which I'm not able to find a solution. What I have right now is a page that just contai...

Showing lines with different colors on a Silverlight Toolkit’s LineChart?

Hy, I have a chart,wich is created in runtime,this could be Line, Bar or Pie type. Basically what i want is to have more contrast on the lines on the chart,this means i should use different colors on the lines. For Bar chart i use the StylePalette property to set wich colors will used in the chart,and it's working fine,but for Line it...

Online or free learning resources for Silverlight Styling

Hy i'm looking for these types of learning resources. One that is explaining the basics of the Silverlight styling(Basic Terms). Or some very simple collection of examples,in wich i can learn a lot. And one is that is very similar to Silverlight Documentation (ex. what property do you need to set if you want have this modification),ex...

How do I import behaviors into Expression Blend?

I'm trying to import behaviors in to blend, can anyone help me? I'm a designer not a coder so would like to know the easy import rout for this in Blend? ...

how to limit access to a silverlight-enabled data service?

Hello all. We have a Silverlight app which we wrote which calls a Silverlight-enabled data service. The Silverlight app cannot require a login, as it is required to present data to the unauthenticated public. We have some schmoe who took the time to examine our Silverlight app, one way or another figure out what service it is calling, ...

SilverLight StoryBoard problem

Hi, I am creating an animation using story board and entire thing is inside a ItemsControl,when i start the application the animation starts, but i want an ability to stop the animation as soon as we receive a value from the database. How do i get hold of a particular story board inside an ItemsControl template so that i can stop it in ...