silverlight

Building Enterprise level Line of Business application in silverlight Pros and Cons

Hello Experts, Currently i am working on developing one Warehouse solution from scratch, i am planning to build it in silverlight (as this solution will take around 8-10 months) and the programming will start from Feb 2010. I need to develop this application for one organization. Certain parts needs to be accessed by public which we ar...

IMPORTANT: Remove this line from json2.js before deployment

I have an ASP.NET app in which I've used Vertigo's SlideShow 2 silverlight image gallery component. All was working well and the app went through testing and suddenly, after a recent deployment I get an alert box that says: IMPORTANT: Remove this line from json2.js before deployment. This pops up after the Silverlight component load...

How to hit the server that spawned me from a silverlight app?

This is probably a noob question, but I can't seem to find the answer. I am building a Silverlight 3 app that's in the browser. I want to hit a web URL on the box where the application came from. So my question is How do I get the name of the URL where the app came from? What is the proper way to hit the URL? I've seen WebClient...

Silverlight: Add same UserControl to more than one Canvas

I have a bunch of UserControls ('MyUserControl') that I want to have a user manually add to one or more Canvases. One instance of a UserControl cannot be a child element of more than one container (otherwise a 'System.InvalidOperationException: Element is already the child of another element.' is thrown). Is there a way to do this witho...

Error when rapidly calling WCF service

Hi folks, I have a WCF service, that is called from my Silverlight 3 application (with C#). The service is called for each item in a user filled listbox. When only one item is contained in the listbox, everything works fine. Multiple items cause an error sometimes. I tested a bit around and sometimes I get an error with 2 items, sometim...

Silverlight 3 Font Embedding and the Back Button Issue

I've hit an odd snag in font embedding. I've embedded the webdings.ttf font as outlined in Tim Heuer's blog article Embedding fonts in Silverlight 2 This works well but if I navigate away from the page with my Silverlight app to a non-Silverlight page (plain .aspx or html page) and then navigate back using the back button, the app no l...

How to display an image in Silverlight?

This should be simple, but... I created a folder in my solution called Images. I dragged an image into it. How do I now display this image on a Page or View? ...

WCF RIA Services, EntitySet always empty?

Hi all, A quick question here about the new WCF Ria services beta: If I do this in code-behind: EntitySet e = MyContext.Employees It seems that the entityset is always empty at runtime? I.e. if I want to loop through the Employee entityset. Also, if I'm getting the Enumerator for the entityset, I'll get an error telling me that the...

Handling ObservableCollection CollectionChanged Event

I've seen code like the following in the Silverlight toolkit and can't understand how it is safe to do: private void ItemsSourceCollectionChanged(object sender, NotifyCollectionChangedEventArgs e) { // Update the cache if (e.Action == NotifyCollectionChangedAction.Remove && e.OldItems != null) { f...

Silverlight, RIA Services, MVC2P2 = No Data

I am having trouble upgrading my current project to use RIA Services. I added all the necessary web.config changes but still no luck. I everything compiles fine but when I hit the page using the datacontext I get an error. I debugged with fiddler and I'm getting a 404 on one of the request. I am getting back headers in my grid so some co...

DocumentUri returns file path

In a Silverlight application, the System.Windows.Browser.HtmlPage.Document.DocumentUri object returns a physical file path rather than an HTTP: address. What would cause this? ...

Building a Roguelike in Silverlight (or WPF)

I've been toying with the idea of building a web-based Roguelike game using Silverlight (or maybe just a desktop game using WPF). If you don't know what a Roguelike is, it's a type of graphical RPG where the graphics are rendered using text. Because the graphics engine is relatively simple, you get to spend your time building features i...

Silverlight - Dynamic Layout

Hello, I have a Silverlight application that will run out of the browser. I want the layout to resize based on the size of the window. The layout is composed of a Grid. This Grid has a Canvas which hosts a Border, and other controls. The Canvas correctly resizes as the window resizes. However, the Border control seems to be a fixed size...

Edit and Continue in Silverlight?

Edit-And-Continue is one of my favorite debugging tools which I have previously used on C# based Winforms and ASP.NET projects. However, I'm running a Silverlight 3.0 application on VS 2008 and whenever I try to make a change (after breaking) it says "Changes are not allowed when debugging Silverlight applications". Also there isn't an "...

Managing silverlight RIA services context lifetime

Hi, I'm working on a line-of-business silverlight application and I need a piece of advice concerning managing RIA services context lifetime. Application - afer a few simplifications - is build of one big tab control. At the beginning there are 2 tabs: customer list and invoice list. These are plain datagrids with filtering/sorting and ...

Silverlight: when is ActualWidth not 0?

If I attach a callback to the loaded event of my main user control and check the 'ActualWidth' of a grid column, that value is still 0. I find it strange, given the fact that the documentation states: "The Loaded event is raised before the final rendering, but after the layout system has calculated all necessary values for rendering." B...

Can a Silverlight client talk to a C++ server?

Our company wants to transform our current user interface to a web client. We are considering to use Microsoft's Silverlight for this, but it will need to communicate with our legacy C++ server application (native C++, not C++/CLI). I am wondering whether it would be feasible to write such an IPC library by hand, our otherwise whether th...

How to wrap text in Silverlight DataGridTextColumn

I am trying to create a simple DataGrid in Silverlight 4 Beta but cannot seem to figure out how to get my Note column to wordwrap. The table represents notes made on an order, so they will be of variable length. i want the 'Note' cell to expand vertically to fit the contents. I've found numerous similar questions but no answer. Is ther...

Is silverlight 3.0 supported on a windows 2000 Box?

Hi, I've got a client with pretty old boxes which want to be sure our still-to-be-coded Silverlight-based solution will work on windows 2000 / IE6 Anyone with experience on this scheme? Thanks ...

Designing UserInterface for LOB App in Silverlight

Hi, I'd like to know what's now modern and trendy at designing user interface in business apps? My old Windows apps used modal windows very often. For instance there's a list/datagrid of invoices. User wants to add a new invoice, then empty invoice form modal window popups, then user can select an existing customer in another modal form...