silverlight-3.0

Compiling Silverlight runtime question

I have created a Silverlight project which also contains a Web project. I have a few class files in my web project which use System.Windows.Point and System.Windows.Size data types and I am getting compile errors when I try to pass either of these types in a List like List<Point> in the Silverlight project. If I try without the List<> ...

How to create Silverlight 3 Themes?

The new Silverlight 3 features page says: Developers can now theme applications by applying styles to their Silverlight 3 applications and changing them at runtime. But I can't find any information about this. I would like to create a theme for may app to define button styles/etc... Can someone let me know how to do this or point m...

Silverlight: MouseLeftButtonDown timer to repeatedly fire an event

I am trying to create a custom scrollbar and am using images as button. For now a simple I can handle the MouseLeftButtonDown and Up event just fine but what I'd like to do is while its held down, every so many millisecond trigger an event is fired. I tried something like this but it isn't quite working. Suggestions? public delegat...

How can I separate Visual State Managment from Custom Control template?

How can I separate Visual State Management from a Custom Control template? I have one Custom Control, but with several different faces placed in templates. All templates must have same state-based visualisation. Is there any way to set my VSM once only? Otherwise I need to copy the VSM code in each template. ...

Combining .NET RIA Services and MVVM in Silverlight 3.0

When using .NET RIA Services and MVVM in Silverlight 3.0 is there a difference between the Metadata type from RIA Services and the ViewModel from the MVVM pattern? Are these the same thing or should they be keep separate? The metadata type is a sealed internal class to the partial Entity class. There doesn't seem to be a proper separati...

Silverlight child windows in MVVM pattern

Hello, I am trying to find the right way to get the data from a ChildWindow/popup using a MVVM pattern in Silverlight (3). For example: I have a main page with a data entry form and I want to open a popup with a list of customers. When user selects a customer I want to transfer selected customer into the main page. This is what the (exam...

Silverlight cutting off text/ wrapping it and not displaying correctly

Please help me understand the issue behind this and it's fix, I'm having agood deal of trouble getting the behaviour I want with text display. With certain lengths of strings the TextBlock wraps around, but does not update the control to show the second line, in effect making part of the text dissappear. This works fine in XamlPad, but...

"Inheritor of the ResourceDictionary is expected" - What's mean this error?

In App.xaml I have code: <Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="FJW.App"> <Application.Resources> <!-- Resources scoped at the Application level should be defined here. --> <ResourceDictionary> <Resourc...

Are there any real issues in Silverlight 3 beta?

In my silverlight application I am trying to get the actual dimensions of a png image that I am loading into an image control. After scowering through the internet for a while I learned that in silverlight 3 there is an attributes called PixelHeight and PixelWidth. So I was wondering if it is feasable to upgrade to Silverlight 3 since...

Is there value in using a Silverlight framework?

I'm three weeks into designing a Silverlight 3 LOB application and I've decided to go with Entity Framework, RIA Services, and the MVVM pattern. Now I'm looking into all the glue. I'm checking into behaviors, ICommand, dependancy properties, IoC, etc. There are a number of frameworks for Silverlight as of this writing. Silverlight.FX ...

Scale a canvas inside a templated usercontrol

Hi geeks, I created a templated usercontrol from a button in order to use common states etc. What I dont get is how to scale a canvas inside the template. I created a little drawing with lines but they do not scale/transform with the control when I use it. Most interesting would be if that is possible using xaml element binding (I am pl...

Silverlight

Hi How to handle the WCF fault exception in Silverlight 3.0 .Any in built object model support for fault exception handling?.Please give me details Thanks Sekar ...

Silverlight (3) best practices

Hi there, I'm planning a greenfield project using silverlight 3. I was wondering if there are anything like the "smart client software factory" for silverlight... Cheers, Ali ...

Data Annotations in VB.NET

In learning the Silverlight technologies, I came across Mike Taulty's tutorial videos on using Silverlight3.0 DataForms (Click Here to check it out), and was particularly interested in the way he used data annotations in C# to do some data validation. I have found a lot of samples on using annotations this way, but all in c# - very li...

Does anyone use Silverlight.FX with Silverlight 3?

I started looking at Silverlight.FX by Nikhil Kothari to replace Prism/Unity with our Silverlight 3 project. So far I like the code layout and structure. It looks well thought out. But I can't get a lot of the samples working due to a System.Reflection.AmbiguousMatchException. Anyone else seeing this? Should I not be using this framewo...

Silverlight 3 - Accessing TreeView Item's parent object

I'm using a TreeView along with a HierarchicalDataTemplate to display a Hierarchical listing returned from a webservice. Depending on search criteria, this listing can get to be very long and several nested levels deep. It would be useful to display a "map" of sorts to the user so that they can see where in this listing they are relati...

What's the difference between Start Debugging and Start Without Debugging in Silverlight Application?

I have a problem wherein I get an AmbiguousMatchException in some of the samples from the Silverlight.FX samples. The TaskList.aspx sample for example demonstrates this problem when I run Start Debugging the exception gets hit on line 202 in ListView.cs FrameworkElement uiItem = itemTemplate.LoadContent() as FrameworkElement; Except...

Silverlight 3 - TreeView: Scroll to a particular item

In Silverlight 3 I have a TreeView bound to an ObservableCollection in my ViewModel. The items are formated with a Hierarchical Data Template. When the collection is populated from a WebService and the TreeView displays that collection, it scrolls to the bottom of the list. How would I go about finding a particular item that might b...

Silverlight (3.0) - Data-grid - User adding data via data-grid

Hi, I've only been using Silverlight for a little over 24 hours. So I am still finding me feet. I'm Currently using Silverlight 3 (Beta) (I require its great offline mode feature) When using the data grid that is bound to a data source, is it possible for users to add data via the grid? Or is the data grid just limited to displaying ...

Where is the best place to put Business Rules in a Silverlight MVVM RIA Services application?

Where is the best place to put business rules in an RIA Silverlight application? I thought the Domain Service would be a good spot except it seems to only share Data to the client tier. I don't think the ViewModel is a good idea since we should have Business Rules in the server tier. In shared code? *.shared.cs? Where do you put your ...