silverlight

How to make games with WPF or Silverlight?

How do I make games in WPF and in C#? Is there a document in PDF format that explains this? ...

What does the GetSiblingItemsAndContainers silverlight method do?

I found an extension method, GetSiblingItemsAndContainers for TreeViewItems. I cannot, however, find anything about it on msdn. What does this method do? ...

ASP.NET and Silverlight applications

I am new to Silverlight, so this question might seem pretty stupid. My question is, can an ASP.NET web application that's hosting a Silverlight application receive events generated by the Silverlight application? If not, how does an ASP.NET application communicate with a silverlight application? ...

Silverlight - sharing data between pages

I'm trying to develop my first Silverlight navigation application. This application has 2 main pages, "Data", and "Analysis". The Data page is where the user can load in a csv file into a custom datatable object :-), whilst the Analysis page is where the user can analyse the datatable. How do I expose/share the datatable on the Data pa...

How bind BorderThickness in template?

I'm trying make a simple control, with a some path in it. And binding Path's Fill, Stroke and StrokeThickness properties to template's Background, BorderBrush and BorderThickness.Left. <Path x:Name="CorePart" Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThic...

Directed graph layout engines on .NET / Silverlight / JavaScript / Flash

Hi! Who knows good graph layout engines with clear customization and managment? Flare is an cool one but it is written on Flex (may be you know how it can be customized without re-compilation and writing code?). I also know about JavaScript InfoVis Toolkit but it not good enough. ...

Firefox scales my silverlight app?

Take a look at the follwing url in FF 3.5 and IE8. In FF it will first load at the same size as in IE8, but then it will zoom in. Why does this happen and how can i prevent it, or work around it? The code is a basic Silverlight project as created by Visual Web Developer 2008 Express with only a TextBox added. The html page is also gener...

2 Events with same name in Reflectored code?

Hello, I work on a project in Silverlight and I wanted to know how does the ObservableCollection work. I was quite surprised to see this in Reflector: public class ObservableCollection<T> : Collection<T>, INotifyCollectionChanged, INotifyPropertyChanged { // Fields private bool _busy; // Events public even...

Silverlight BitmapImage

Hi When i am setting the source using the SetSource method in BitmapImage i got the Out of memeory exception in Silverlight .How to solve the problem System.Exception was unhandled by user code Message="Error HRESULT E_FAIL has been returned from a call to a COM component." StackTrace: at MS.Internal.XcpImports.CheckHResult(...

Exporting data from silverlight to outlook.

hello there, Please help me to do Exporting data from silverlight application to Outlook Calender. Thanks in Advance. Regards, Susan ...

How to create a custom field when using WCF RIA?

I have a table that have "first name" and "last name", when binding to a datagrid, I need to have column named "name", which is "first name" + SPACE + "last name" As I using domaindatasource tag in xaml, any method to bind a column "first name" + SPACE + "last name"? Is there any method like define a class to have for the table in edm...

Silverlight MVVM: how to avoid polluting my model while still implementing "add new item" for my datagrid?

I have a DataGrid. Right now it's binding to an ObservableCollection<Foo> in my model just great. But now I want to implement a user-friendly way to add a new item to the datagrid. It seems like I'll need to modify Foo to inherit from IEditableObject and INotifyPropertyChanged, which is kind of icky from a MVVM perspective in my mind---...

Are "WCF Data Services" going in the right direction?

I really like the idea of "WCF Data Services" but how does it work in a real life scenario? WCF Data Services provide just a nice way for the client to CRUD the data. However it's very limited in what you can pass and get back. So one ends up having all the business logic written on a client side. It's probably ok for small applications ...

Display default selection in silverlight comboxbox

I have a silverlight combobox inside of a dataform as follows: <dataControls:DataForm x:Name="newScheduleMasterForm" Height="350" Width="450" MinWidth="400" VerticalAlignment="Top" CommandButtonsVisibility...

Binding to a const field in Silverlight

I have a situation where some application wide values are stored as constants - this is a requirement as they are needed in attribute definitions (attributes must resolve at compile time, so even static members don't work). I wish to also be able to also reuse these values in XAML files. So if I have my constants like this: public clas...

Caliburn bad parser error for container registered command.

Hi, I have a silverlight 3 application with the latest Caliburn RTW. I have a button with the following caliburn property in XAML: PresentationFramework:Message.Attach="ContainerCommand ClassesCommand()"/> In my module.cs I have : _container.RegisterType(typeof(ClassesCommand), new ContainerControlledLifetimeManager()); _region...

Reference to a TextBox inside a DataTemplate

How do I get a reference to a TextBox that's only defined inside a DataTemplate (assuming that I've just applied this DataTemplate to some cell in a grid). So far I'm using the sender in the TextBox events to retrieve this. Thanks, rui ...

How to play *.mp4 in Silverlight (locally - no server)?

How to play *.mp4 in Silverlight (localy - no server)? I have a file How to play itr using xaml and c# ...

Make Silverlight ListBox always fill 100% of available height

I have a grid in Silverlight 3. The height of the grid row is set to "Auto". I have a ListBox in one of the grid cells. I want this listbox to fill 100% of the available space, even if it does not have enough items to do so. Currently, I have the ListBox height set to "Auto", and it will expand as items are added, and display a scrol...

Setting the background color on a Silverlight grid and still being able to edit it

The first column below works perfectly except I can't set the background color. The second column has the background color working most of the way except when using the arrow keys to move around in the grid, the cell isn't visually changing. What is the easiest way to just change the gosh darn background color on a text column? Extra poi...