silverlight-4.0

Silverlight - fire of delayed action -

When I click on a button in Silverlight I want to run a method 2 seconds later once only for each time I click the button .. in the meantime the rest of the app keeps working .. obviously Thread.Sleep stops the whole UI .. how do I do this? ...

How to move file to ftp in silverlight

I want to move file from local computer to ftp server in silverlight when user select a file through file upload control. Im using C# and silverlight 4. Thanks in advance ...

tabitem hide show in silverlight

Tabitem hide show in silverlight ...

Install Silverlight app out-of-browser with local HTML file browsable using the Webbroser control

Hi, We developed a SL4 application wich feature also an integrated online help. This help is built as HTML files containing links to each other and shown in the Webbrowser control just within the application. Everything works just perfect when running the app inside the browser. Now we also need to support out-of-browser. So far no pro...

Data structure for a navigational sequence

I have a Silverlight LOB application that has a page that will need to be visited 4 times before moving on to the next page. I want a data structure to hold a marker to the point in that sequence. I might render a display to show where you are like this: o---●---o---o I tried an enum, but I need to associate each point with small int ...

Problem with memory and coverflow control.

Hello, I use the coverflow control from http://silverlightcoverflow.codeplex.com/ and my problem is that is going verry bad because i had very much item in it. Could someone tell me how can i reduce the number of the items and load them dinamicaly as i need them. The items are a user control in which i also have a google map and an imag...

Cross-domain scriptable Silverlight application

I'm having problems with cross-domain application hosting with Silverlight. I have an application hosted on a different domain and included with the following HTML code to the page: <script type="text/javascript"> function succ( sender, args ) { console.log("SUCCESS"); console.log(sender); console.log(args); } function err(...

Can you load a XAP from a byte array in Silverlight 4.0

I know that MEF currently supports downloading XAP files from a URI (which is awesome!), but does anyone know if it's possible to have MEF load a XAP from a byte array? Thanks! ...

How to create modules with sub regions in view of module in Prism?

I am new to Prism, sorry if this is dumbest question but here is the situation. I am workin on currently a CRUD application, typically an accounting system. Now I have a parent Shell with following modules. Application Shell -> OrdersModule -> ItemsModule Now I have got tabs for both modules, and in my orders module, I want to creat...

Silverlight: Create Tabbed browser view using Prism?

Well I have this application requirement with following design needs, My main region is Tab Control. There is a fixed (you cant close) search tab Module where I can search list of projects, but when I double click on the selected project should open on its own view in the same Tab Control, however Project Detail Module is altogether ve...

interaction b/w silverlight and javascript for Out of browser applications!

Hello. I did not find any post or tutorial related to the topic mentioned above. Basically, I am have a page viewed in webbrowser control. the page is a form . if the form is submitted successfully I get transfer to success page(using HttpContext.Current.Server.Transfer) and if I get transfered to that page , I would like some javasc...

Is there an analog to "locate.replace()" in Silverlight 4 Navigation?

If a user navigates to a page that displays an "add item" view (#/items/add), I want to basically skip that url when they click "back" after they save the item. How can I do this? Here is the behavior I'm after in more detail... if the user has navigated to and is currently on this silverlight url: #/items/list when they click the "a...

Call to WCF service and threads running at client & service end

I'm sending custom header from Silverlight application to the WCF service over HTTPS. Through the custom header, I'm sending client's CultureInfo to the WCF service and expecting the response from service in the language of the culture I have sent. I have applied custom behaviors to both client and service ends correctly by implementing...

how do I stick the scrollbars of ScrollViewer to top in silverlight?

I have an Itemscontrol in my xaml inside a ScrollViewer. <ScrollViewer Margin="0,0,0,0" BorderThickness="0"> <ItemsControl x:Name="itemsStackPanel"> <ItemsControl.ItemTemplate> <DataTemplate> <controls:UserItem Margin="0, 5, 0, 3"></controls:UserItem> </DataTemp...

How to get the width and height of canvas that has auto set?

Hello, How do i get the height and width of the canvas that has auto set? Thanks in advance:) ...

Adding Usercontrol within another usercontrol to occupy the whole space

Hello, My usercontrol that i add programmatically doesn't show up. This is my MainPage.xaml :- <UserControl x:Class="ScrollingEffect.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"...

Silverlight 4 - How can I change button background color when focused with an Implicit button style?

I'm having a great deal of difficulty trying to achieve something that should be trivial. I'm using an Implicit Button Style defined in a global XAML resource file. I just want to change the background color of the focused button to red with a ColorAnimation. I've tried a number of different combinations in Storyboard.TargetProperty and ...

What's the correct way to write an Uri ro a resource inside a Silverlight Class Library

I have a Silverlight Business Application project. I also added a Silverlight Class Library to be used from my Silverllight app (of course). Inside that library (let's call it helper) I have a folder and some small images. In that same library I have a child window with a Image control which I need to change the source info at runtime (...

Creating Custom UserControls with Custom base class, dont show up?

Hi all, I am creating a series of UserControls in silverlight, and they all need a hand full of the same functions, such as ShowControl(), ValidateInput() etc. I created an interface and which then had an abstract class inherit from it. I then changed my UserControls to inherit from the abstract instead of directly from UserControl. T...