silverlight

Could not find any resources appropriate for the specified culture or the neutral culture. - Resource file sharing problem

I have a normal class library. Recently, I localized this class library. I also have another Silverlight class library, Which is basically a linked file project <Link>Reports\Reports.cs</Link> In that, I have included the same resx file as link reference as I done for other files. While running, it throws the following exception. ...

Silverlight 4: "Invalid XAML" using Converter in DataTemplate

Hi, maybe you could help me understand why I get an unhandled exception "Invalid XAML" in Visual Studio 2010 designer when trying to do the following on a Page. I have a Converter named DateTimeConverter that converts a date into a German date string. The converter works fine. I've included the namespace and added the following to the ...

Removing the render transform of a child element

Ok, So I have a situation, where an border is being scaled (sometimes by a large amount) and translated. Inside the border is a grid, and inside the grid are two images, one is a photo and is stretched to the size of the border, and the other, I intend on being an icon, which needs to be a fixed size in the bottom left hand corner. Th...

Silverlight : Persisting application on client side

Is it possible to cache the Silverlight application .xap file so that it is not downloaded always? ...

Can Silverlight use the LAN without an internet connection?

I understand that trusted silverlight applications can communicate with each other over the LAN connection (peer to peer). Can they do this without an internet connection once installed out of browser? Do they need to first download some sort of Access Policy? If not, is there some alternative way of doing this, perhaps with some kind...

Where is the Xap file content viewer in Visual Studio?

Where can I find following viewer within Visual Studio? ...

Silverlight sketchflow: Component screen change state on click.

Hello, I have a component screen which has 2 states: show and hide. When I click some button the component moves onto the stage. Now when you click the component I want it to move back out of the stage. With normal elements this works by using activate state but with component screens it doesn't seem to do anything. Anybody know how to...

Center a polygon within a Grid control

Hello, Can anyone tell me how to center a polygon object within a given row/column of a Grid control? The example that I have tried is taken from msdn. <Grid x:Name="LayoutRoot" > <Polygon Points="300,200 400,125 400,275 300,200" Stroke="Purple" StrokeThickness="2" HorizontalAlignment="Center" ...

Handling image load exception gracefully

Hi, I'm loading user images using Silverlight 3. Everything works fine and I can set the file stream to a BitmapImage and it gets rendered OK. The problem is that if I try to load something that's not an image (like a .exe that's been renamed to .png) Silverlight crashes with a System.Exception that says "Catastrophic failure". The M...

Silverlight adding to List<T> throws Object reference not set to an instance of an object.

I'm using Silverlight 4 on IE 8. I have created a new Silverlight web part for SharePoint 2010 that I am using to read 2 external content types. One represents the Invoices in the Chinook database from Code Plex and the other is the lines of each invoice. I am attempting to display the code in a Master-Detail layout using the Telerik Rad...

SL 4: simple file upload, why is this not working?

Hey guys, I am not getting any exception in the following code, however I also don't see the file which is suppose to be uploaded to the server (in this case a localhost) - could someone please point out the mistake? As an add on, I need a simple silverlight file uploader with a progress bar, but I am having a really hard time try usin...

Receive callbacks from HtmlPage host in Silverlight

I'd like to receive callbacks from Javascript code to my Silverlight host without using ScriptableAttribute. I've seen it done before, but I couldn't work out how they did it. Has anyone got any ideas? Thanks ...

unauthorizedaccessexception for a "MessageBox" in SilverLight

Hi eberybody, I have this piece of code in my Silverlight project: private void button1_Click(object sender, RoutedEventArgs e) { string baseUri = "http://foo.bar"; HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(new Uri(baseUri)); request.BeginGetResponse(new AsyncCallback(ReadCallback),request); } private v...

Coloring Text in RichtextBox, C#

How can I color new line of text with some different colors and then add it to RichTextBox? I'm using SilverLight. ...

MVVM Silverlight Framework Choices

Which Silverlight MVVM Frameworks should I look at - taking into account these areas of functionality. 1) IoC - can I choose my own? I would like to avoid using MEF w/ Attributes. 2) Navigation 3) Callback simplification 4) "IMessageBox" type abstractions 5) Testability 6) Logging Note: mitigating a conversion to full-blown WPF is n...

WP7 / Silverlight]Binding remote images in listbox so the UI doesn't block

Hi: (Scenario: Windows Phone 7 / Silverlight) I have a ListBox that i will simplify to this XAML: <ListBox ItemsSource="{Binding Path=ImageLinks}"> <!-- ImageLinks a collection in ViewModel --> <ListBox.ItemTemplate> <DataTemplate> <Image Source="{Binding Path=ImageSource}" /> <!-- ImageSource i...

Customize the look of the Silverlight Control Toolkit drag / drop.

Is there a way to override the template of or restyle the carrot (and even completely remove as I need in one case)? The carrot being the position marker where the drop will occur. I'd also like the ability to change the icons used during dragging - I've seen an infinity symbol, an arrow, and a strike-through circle, for which all I'd li...

Accessing external static resources placed in different assembly and XAP

My prism based silveright application is divided into multiple xaps to reduce initial download size and support multi tenant application. However, I cannot access the resource dictionaries defined in external assembly (i.e. the resource .xaml file is part of an assembly that complies/ is copied into a different xap) Any suggestions ? b...

Where to Put WebRequest.RegisterPrefix()

Where does this statement go? Do I put it in my constructor or do I call it in a method each time I make an asychronous request? ...

How to open a project page in silverlight 4?

There are two pages in my silverlight project: MainPage-default page and SecondViewPage an added Silverlight page. To navigate from one to another, I've overridden the Application_Startup(...) { this.RootVisual = mainUI; mainUI.Children.Add(new MainPage()); } created a public static void GotoPage(UserControl nextPage) { ...