silverlight-4.0

Exception in brand new Silverlight project

I am getting the following exception message when I try to run my newly created Silverlight app: An error occurred while trying to make a request to URI 'http://localhost:8732/Design_Time_Addresses/IsAProgrammer.Service/Service1/'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain p...

Live streaming with silverlight 4

Greeting, Is there a live streaming server for silverlight 4 from Microsoft like Flash Media Server from Adobe that support live streaming for Flash??? I know that there are many open source live streaming server that support silverlight 4 but I did not find some one good as Flash Media Server which support Flash!!! please tell me if M...

simple silverlight databinding listbox to List<>

It seems like this should be simple... I have a usercontrol that I am going to use on several tabs of a tab control. I want all instances of the usercontrol to be synchronized. In my usercontrol I have a list of strings: public static List<string> fonts = new List<string>() { "Arial", "Courier" }; And a ListBox: <ListBox x:Na...

Silverlight 4 DomainUpDown with embeded button - unable to fire Click event

I am New to Silverlight. Question regarding firing the click event on a button embedded in a DomainUpDown control. Why does the only event I can get to fire (when click on the button) is the MouseLeftButtonDown on the DomainUpControl and it seemly ignores any Click event directly on the button. Incidentally, if a handler is setup, the G...

Casting error for UIElement on runtime

Hi Guys, I get runtime error when I do this... I have this class... public abstract class AnnObject : DependencyObject and when I do this it compiles fine, but throws a runtime error... AnnObject aa; var b = (DependencyObject)aa; var c = (UIElement)b; The error I get is cannot cast AnnObject to UIElement.... Can someone please b...

DataBinding in an ItemsControl to a custom UserControl property

I am having major problem in Data Binding. I have a stackpanel with an ItemControl in my MainPage.xml: <StackPanel> <ItemsControl x:Name="TopicList"> <ItemsControl.ItemTemplate> <DataTemplate> <local:TopicListItem Tit...

How to animate visibility of a StackPanel in Silverlight to expand and collapse?

In my case, I would like the expand/collapse to happen from left to right and right to left respectively. The animation should happen when the visibility changes. Thank you. ...

Accordion control hides behind another control, how to bring it to front?

How can I get the accordion control which is defined in Grid row 0 go ON TOP of another panel which is defined in Grid row 1..... <Grid x:Name="MainGrid" Background="White"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition /> <RowDefinition Height="Auto" /> </Grid.R...

Silverlight merged resource dictionary outside xap

How can I have my merged resource dictionary live outside of the xap file in plain text so my clients can edit it ...

Find the path to my WSDL

I have a silverlight 4 app. When I made that it created 2 projects. My actual silverlight app and one called MySolutionName.web (not sure what that does except host my silverlight page). Based on feed back from this question I added my WCF stuff to the MySolution.web project. But when I call the service from my silverlight app the val...

How to get the binding UI to see my Objects in VS 2010

I have a Silverlight object (call it QuestionAsker.xaml) and another object I use as the data context for that silver light page/object (call it QuestionAskerVM.cs) My QuestionAskerVM instance is called QuestionAskerViewModel and is defined in QuestionAsker.xaml.cs. My QuestionAsker.xaml looks like this: <UserControl x:Class="IsAProgr...

ComboBox in Silverlight DataGrid

When attempting to use a ComboBox in the CellEditingTemplate of a column of a Silverlight4 DataGrid, the binding expression for ItemsSource is not resolving correctly. The RIA DomainDataSource I wish to use is called installerGroupDomainDataSource and the following XAML works fine at page level. The list is populated and when I bind the...

Imposing minimum times spent in a given visual state

I'm wanting to ensure a control remains in a certain state for a minimum amount of time. The control has two states: Loading and Loaded. The Loading state displays an animation and the Loaded state displays the data. There is a fade in/out transition between the two states. However, the problem is sometimes the data loads so quickly tha...

Inherit from visual statemanager

I have two user controls. One inside the other. I want to have a mouseover visual state in each. I want to change the visualstate to mouseover on the parent and also have it fire for the child. What is the best way to accomplish this? ...

Reverse highlight in silverlight

I have an items template and I want to highlight some text in a dark color. The problem is that the text starts out as black so I can't read it when it is highlighted. What is the best way to turn the text white or reverse highlight it when my mouse goes over the parent border (that is the highlight element) ...

Why doesn't this Silverlight 4 DependencyObject's DependencyProperty getting data bound?

I have no idea why data binding is not happening for certain objects in my Silverlight 4 application. Here's approximately what my XAML looks like: <sdk:DataGrid> <u:Command.ShortcutKeys> <u:ShortcutKeyCollection> <u:ShortcutKey Key="Delete" Command="{Binding Path=MyViewModelProperty}"/> </u:ShortcutKeyCollection> </u...

silverlight 4 error in .xaml

Hi I have the following code: <navigation:Page 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" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" ...

ASMX webservices with Silverlight Async confusion

I have a silverlight 4 web app that needs to communicate with a server by accessing the ASMX web service on the server. I have a list(yes, the array), of objects that I need to send(one by one) as a parameter to the service. However looping through the list and running the method(objecttosend); will not work because I need to send then ...

Is it possible to get other collection than IEnumerable<T> when using LINQ: XML to object?

So I have this huge XML file that I am converting to an object by using LINQ. And currently I am doing: var resultStories = from story in resultXML.Descendants("story") select new NewsStory { ArticleFrequency = from tag in story.Descendants("tag") ...

MVVM Light toolkit + Messenger

Hello, i have a class wich send uri to change page after login, but how can i make to send my new uri and my object "user" to the new page ?? public static class StatusUpdatePage { public static void Send(Uri uri) { Messenger.Default.Send<Uri>(uri); } public static void Register(object re...