silverlight-4.0

Silverlighr bridge installation

I am using Configuration ConnectionStringSettings StringSettings = null; Configuration WebConfig = WebConfigurationManager.OpenWebConfiguration(HttpContext.Current.Request.ApplicationPath); StringSettings = WebConfig.ConnectionStrings.ConnectionStrings["SiteSqlServer"]; but unfortunately it throws Failed to map the path '/' error. ...

Define Global variable In SilverLight with Prism Pattern?

HI Let me explain about my problem: I have a Silver-Light application developed base on Prism. In This app we need to use User/Password (Authenticate Our user`s) for separating permission levels. So for Doing this We wrote method in Service App (WCF web service) for detecting user and if User is valid-one, user can use App. After tha...

Deploying COM dll as part of Silverlight application

Hi, I have a legacy delphi dll. I created a class library that imports the dll and registered it for COM interop. I have an experimental Silvelight 4 application that calls the COM object and it works. The problem is: how do I deploy the COM component (and dependent delphi dll) and register the COM object on a client machine? ...

Silverlight 4: Application_Exit

How do I call a webservice in the Application_Exit event? private void Application_Exit(object sender, EventArgs e) { TestWSSoapClient.ReleaseUserCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(TestWSSoapClient_ReleaseUserCompleted); TestWSSoapClient.ReleaseUserAsync(UserToken);} The m...

Right-click on a Listbox in a Silverlight 4 app.

I am trying to implement what I used to take for granted in Winforms applications. I am a Silverlight noob, so hopefully all this is elementary. I have a listbox in a Silverlight 4 app. I'd like to do the following: Right-click on the listbox Have the item under the location where I click highlight itself I'd like a context menu to ...

ListView control for Silverlight 4?

It seems like Silverlight 4 does not have a ListView control, unless I am missing something. Or a control that's basically replicates its function (e.g. re-sizable column headers, etc...). Is there an example of how to create something similar? I am after a setup like this: ...

RIA service needs dummy public, non-attributed methods to compile

I am implementing a Silverlight application with a WCF RIA service in the server side and I am experiencing a very strange behavior. At this point the service is very simple and only has a few methods, all of them marked with the [Invoke] attribute. These methods are something like this: [Invoke] MyEntity DoWorkAndReturnEntity(string s...

Databinding Button Content to a static resource fails

I am trying to design a set of icons in a Silverlight 4 User Control's ressources, and then display these on a button. I have <UserControl.Resources> <Rectangle x:Key="Icon1" Fill="Black" Width="10" Height="10" /> </UserControl.Resources> and <Button x:Name="Button1" Width="50" Height="50" ...

Why doesn't xbutton.PerformClick() work in silverlight ?

I need Button.click from another class but doesn't work pickButton.PerformClick()? [Category("Özel")] [DefaultValue(null)] public Button pickButton { get; set; } protected override void OnKeyUp(KeyEventArgs e) { base.OnKeyUp(e); if (e.Key == Key.F10) { if (pickButton != null) { //pickButton.Perf...

How to test a Silverlight Application

Hi all, I have a Silverlight 4 application, and I am wondering how can I see if my .xap file will cause or not a crash. You will tell me that I can put it into a asp web server and launch Firefox but I would like to stay offline, just with a command line... Do you have some idea ? Thanks a lot ! I hope i was clear enought ! ...

Problem in using Telerik RadGridView

Hi, I am trying to use Telerik RadGridView. I add reference of "Telerik.Windows.Controls.GridView" But still I am enabled to use RadGridView. Why it is happening? ...

How can I get Outlook 2003 data in Silverlight 4 application

Is it possible to use Automation for Outlook 2003 with Silverlight 4? Or maybe there are some different way to use Outlook 2003 MAPI in Silverlight application? I'm using Silverlight 4 and I'm trying interact with Outlook in this way: dynamic outlook = AutomationFactory.GetObject("Outlook.Application"); For Outlook 2007/2010 all works...

Assigning each property of every single item of IEnumerable Collection to different textboxes

Elaboration of what I want to achieve : I have an collection of an object in my itemsource.Suppose there are three items in my itemsource and i want each property of every single item to be assigned to different textboxes, how can i get this ? textbox1.text = // assign the first value of an item to this textbox2.text = // assign the s...

In Silverlight, is it possible to honor the ToString() method of a domain object returned from a service call?

In our domain, we override the ToString method on all our domain types. However, when returning those domain objects in response to a Silverlight service request, the functionality of ToString is lost. ToString() just returns the namespace description of the object as it is imported from the service. My guess is that the domain prox...

Confirm Box from within Silverlight 4

Hello, I am having trouble getting the following code to work in FireFox (3.6.4), however, it works perfect in Chrome (5.0.375.70) and IE (8.0.7600.16385). Operating system is Windows 7 32 Bit. Silverlight Version(4.0.50401.0) System.Windows.Browser.HtmlPage.Window.Confirm("Are you sure you would like to Remove this?") As a matter...

Refreshing a silverlight ListBox

I am trying to buid a forum in silverlight. I am using RIA services, EF4 and silverlight 4. I have a datagrid with topics. When the row is clicked on, the threads for that topic are added to a listbox. Everything is working correctly with one exception: When a new thread is added, the listbox does not update its contents unless I click...

Visual-state in SilverLight? (how we use that)

Hi I wrote simple template in xaml for button s.(for silver-light 4) So when I try use "ControlTemplate.Triggers", I found that is impossible in silver-light, and we must use Visual-State in Silver-Light so I wrote first ControlTemplate with Visual-State but it not work fine.(here is code) <Style x:Key="NextButtonStyle" TargetType="B...

Is serialisation/deserialisation possible with Silverlight ?

Hi all, I realize easily serialisation and deserialisation of my objet with XML file. I am wondering if it is possible to do that with binary file. Thanks ! ...

Update Combobox values without rebinding

Hi I have an Combobox which is poplated with data that is time sensitive. My setup is a bit hard to explain so lets assume that the Combobox has a itemtemplate containing a textblock. The textblock is databound to a property returning DateTime.Now, I would like to rebind the value of the textblock (not the whole combobox). Is there a way...

How to update a dynamic field using ObservableCollection on a Silverlight datagrid

This problem could be bad class design or ignorance - please bear with me: I have 2 classes - Chip (which implements INotifyPropertyChanged and represents a single poker chip) and ChipSet, which implements INotifyPropertyChanged and has an ObservableCollection of Chip. I have a Datagrid which is bound to the Chip ObservableCollection a...