silverlight

How To Edit Supported Cultures In a Silverlight Project

Is there any way to edit list of cultures supported by a SL project in Visual Studio 2008 using GUI? Currently I'm doing this by changing content of <SupportedCultures> node in the .cproj file manually. For example: <SupportedCultures> en, de, es, fr, ja, zh-CN </SupportedCultures> Thank you. ...

Validating method arguments with Data Annotation attributes

The "Silverlight Business Application" template bundled with VS2010 / Silverlight 4 uses DataAnnotations on method arguments in its domain service class, which are invoked automagically: public CreateUserStatus CreateUser(RegistrationData user, [Required(ErrorMessageResourceName = "ValidationErrorRequiredField", ErrorMes...

Can I remove duplicating events in EventAggregator?

Hi, I have a quite simple scenario that I cannot get to work correctly. I have 2 views, CarView and CarWindowView (childwindow) with corresponding ViewModels. In my CarView I have an EditButton that that opens CarWindowView (childwindow) where I can edit the Car object fields. My problem is that the DisplayModule method in my CarWindow...

Using Silverlight common code base for data intensive web and windows application

Hello. Recently in a conversation, someone suggested me to make use of Silverlight if I am targeting a web client and a windows client for the same application. This will cut down my effort for supporting the contrast in both presentation layers. Mine is a product, that will be deployed in enterprises. Both web and windows clients are d...

Prevent DataGridDragDropTarget from Showing "Drag Shadow"

Hi, is it possible to prevent the Silverlight Toolkit DataGridDragDropTarget from starting a drag-action? What I whant is to use one DataGrid only as DragSource and another one only as DropTarget. And the DropTarget-only-DataGrid should not show this "StartDragShadow" when pressing and moving the mouse over an item. Thanks! Steven ...

Possible to use zxing in Silverlight (for windows phone)

Hello, is it possible to use the c# port of zxing in a Windows Phone 7 project? I've tried a couple of things but zxing makes use of System.Drawing.Bitmap while that doesn't exist in Silverlight. ...

Draw screenshot of Silverlight application using Visio?

Is there any way I could draw screenshot design of Silverlight application using Visio? Or any other tool I could use to draw screenshot of Silverlight application? Thank you. ...

What are assembly references for GetValue/SetValue for creating DependancyProperty

I have a hard time setting up a Silverlight Class Library project. In this project, I am trying to create a dependancy property. The code requires to use SetValue and GetValue methods -- the project cannot resolve these methods. What do I need to reference to access these methods? Thank you for help. ...

Access external data from Silverlight application running in a webpart in Sharepoint 2010

I can read the SP lists fine and pull data out of the SP context, but I am trying to get data from an external database as well and I don't know exactly how to do that. Is is possible to add WCF communication to the webpart that will allow the Silverlight app to communicate to a WCF service? If so, any examples on how to do this? Or is ...

Tap into tooltips

I made my own overlay... worked great... but then I noticed that it was appearing off the screen (cut off). I know silverlight has a tooltip control that auto positions itself on the screen instead of letting itself be cut off. how can I tap into this control? or is there a better way? ...

Mark a Silverlight DataForm.DataField as invalid?

Ok, this should be a really simple thing to do, and I'm either missing something, or going about it wrong. Facts: Silverlight 4, using the Toolkit and using DataForms / DataFields, but NOT using a validation summary. Using a Templated Dataform, simple new / edit user form with usual fields like username, firstname, etc, plus Password ...

Any suggestions for Silverlight book, from fundamentals to version 4?

Hello. I am new to Silverlight. I'd like to use Silverlight 4 in my project. Can someone suggest me a book on Silverlight that can help me learn the technology fundamentals inclusive of Silverlight version 4? I fear that the Silverlight 4 books available in the market right now are incremental (they assume knowledge until Silverlight 3)...

Copy silverlight out of browser application

Hello, After a user installs a silverlight app out of the browser, can they copy the application to another computer? If so, are there any good strategies to avoid this? Thank you. ...

Is it bad karma to use Silverlight 4 but keep using .NET Framework 3.5?

Question is in the title, thanks for your help! ...

[Prism-v2] How to passing parameter to constructor when Resolve a View..?

my View constructor: public View1(IRegionManager regionManager, IUnityContainer container, bool myParam) { } How to set myParam when I do Resolve<View1>()? Thank you. ...

Commit Focused Element in Silverlight

I need code that will force Silverlight to commit the focused element (in my case a TextBox, but it could be anything). In WPF I use public static void CommitFocusedElement() { UIElement element = Keyboard.FocusedElement as UIElement; if (element != null) { TraversalRequest request = new TraversalReq...

Testing Silverlight install detection

I have implemented a silverlight install process inline with the best practive approach described in Microsoft's "Installation Experience White Paper - Apr 2009". I want to test out the following user scenarios Old version of Silverlight No Silverlight Cross browser In the past I have seen tools for uninstalling and installing di...

How to determine if the user clicked OK or CANCEL when exiting Silverlight?

Based on http://mark.mymonster.nl/2009/02/28/integration-of-browsers-unloading-with-silverlight/ I know when the user closes a browser window containing Silverlight, by use of javascript. This basically creates a popup window, where the user can stay on the page(by clicking CANCEL), or exit the page (by clicking OK). I am interested in ...

Silverlight clipping UserControl when parent column width is set to GridUnitType.Star

Hi, I have a user control that contains an ellipse. The ellipse is translate transformed to the right until it lies partially outside its parent control. I put the user control into the middle column of a 3 column grid. If I set the column width to GridUnitType.Auto I can see the ellipse overflowing the column. If I set the column...

Error handling for AutoCompleteBox with Silverlight 3 + MVVM Light toolkit

Hi, I'm trying to create a UserControl that contains a AutoCompleteBox. I want to use the SelectedItem property of this AutoCompleteBox to populate other UserControls with information based on which item the User selected. To prevent the SelectedItem to be fired every time a user "navigate" between items in the drop-down I've created a ...