silverlight-3.0

partial class can't be created in ria service library

When create .NET Ria Service Class Library, VS will create two projects: MyRiaServices(client side) MyRiaServices.Web(server side) Suppose my entity model is in another project: MyData(entity framework) There is an Entity People. Then I want to use partial class to extend this entity in following way: namespace MyData { public pa...

cannot build silverlight library, what references do I need?

I am converting a normal CLR library over to a silverlight library. SqlConnection, SqlCommand, SqlClient aren't recognized. What libraries do I reference? I am working in Silverlight 3.0. ...

How to Text wrap and add ... at the end

Lets say you have this text "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa. Fusce posuere, magna sed pulvinar ultricies, purus lectus malesuada libero, sit amet commodo magna eros quis urna." put in a textblock with TextWrapping="Wrap", the textblock only supports 2 lines, so how do I add the...

Enable or Disable mutiple controls in Silverlight

What is considered the best way of enabling or disabling multiple controls in Silverlight at the same time (textbox, combobox, autocompletebox and the like)? I suppose I could bind the "IsEnabled" property of each control to a boolean property. That property only exists for interactive controls and not textblocks. I could loop through...

Silverlight high CPU usage on a Mac?

I have a Silverlight App that presents the user with a pretty straighforward form to fill in. The labels (TextBlocks) and the Fields (TextBoxes) are laid out in Grid as you might expect. We had a problem that when one TextBlock had its Opacity set to 0, the application would constantly re-render itself as verified by turning on the ena...

Has anyone used ComponentOne XAPOptimizer for a real production Silverlight Application?

In particular any experiences using it for obfuscation? How does this affect binding, etc.? ...

Silverlight 3 - binding enum to combobox from DomainServiceContext

Hi, I just started playing around with Silverlight and a supposedly simple thing like binding a Combobox is driving me nuts. I read a bunch of articles now but none really address the issue that I'm after or were made for Silverlight 2 and don't seem to work. Let's say I have an entity object "User" which has a "UserStatus" field. In t...

How to reset the position within the dropdown of a Silverlight AutoCompleteBox

Lets say I have an AutoCompleteBox with 1000 items. A user first types two characters returning a broad result set (for example, 100 items). They then scroll to the bottom of the list and... They then select the last item which closes the dropdown. The user then returns to the AutoCompleteBox and enters a more refined search returni...

Start Storyboard When Text Changes

I have a TextBlock bound to a property on my view model. I have a StoryBoard with fades the text in and out using the Opacity property. I am using this text to give the user feedback after they have performed an operation(success, error etc). How can I start the StoryBoard when the property changes from my view model? Is there a better w...

Silverlight XAML Designer

Hi, Is there a XAML designer I can use to build my Silverlight GUI? thanks Lennie ...

Silverlight Event Log in Isolated Storage

Has anyone written an event log that uses Isolated Storage in Silverlight 3? Any suggestions on implementing one? Specific questions: Should I keep a stream writer open, or should I open,write, and close for each entry? How should I remove items from the log atomically? ...

Silverlight 3 with Weborb for Java

Hi, For some reason, i can not invoke java method deployed under Tomcat/Weborb application. When i run weborb console and invoke the method from there, there is no problem. However when i tried to call from Silverlight 3 client, it does not response at all. There is one possibility which is incorrect service gateway. But i have checked ...

Switching from Silverlight to Flash for Games - Recommended Reading?

I have been working on some games in Silverlight. However, the community and portal support are still rudimentary at this point. While I expect it to improve over the next couple years, I don't plan to wait around for that. I'm coming from a .Net heavy development background. What would you suggest I read and practice to start develo...

How to get the mouse button state in Silverlight outside of button press events?

I have the following situation I handle when the left mouse button is pressed in my Silverlight app and do some things while the mouse is held down and the mouse moves. When the left button is released, I turn off the flag that's telling it to do the stuff and the mouse movement handler then no longer does the stuff. The problem is: if...

DelegateCommand Newbie Question

Good Day, I'm trying to get up to speed with PRISM and how it works with Silverlight/WPF. Is it possible to using DelegateCommands to open a new popup (Silverlight Window). If so, how would I go about doing something like this. Most of the samples I've seen so far involve using DelegateCommands to retrieve data (or some other similar...

Custom Listbox: Limit Maximum Item Count

I have silverlight 3.0 project that has a listbox that is databound to a list of items. What I want to do is limit the number of items displayed in the listbox to be <= 10. I originally accomplished this by limiting the data bound to the list to 10 items by doing a .Take(10) on my orignal data and databinding the result. The problem...

Migrating from Silverlight 2 to 3

We are considering porting a moderately complex Silverlight 2 app to Silverlight 3. Are there any potential pitfalls to be aware of? Have people had good experience doing this port? I'm aware of the MSDN guidance on porting. ...

How to write an offline silverlight application?

How to write an offline silverlight application? In which I have a database running on databse server,Application running on application server ,however if user wants to run the application in offline mode then the same ui can be seen to him in offline also all the data stored locally in the files which can be synchronised later. ...

Gorgeous Silverlight 'OSX ScreenSaver esque' Animation How-To?!

Any ideas How to recreate similar animations to the gorgeous colourful swirly thing on THIS SITE?!?! ...

Silverlight looking at wrong url for clientaccesspolicy file.

Hello Everyone, i have a silverlight app connected to a webservice over https. The webservice is hosted on mydomain.com (not localhost). When i run the silverlight, it makes https calls to webservice on mydomain.com, but also tries to access "http://localhost/clientaccesspolicy.xml" and fails obviously. Why is my SL app looking for ca...