silverlight

Silverlight HtmlPage.Window.Navigate

void btnInfo_Click(object sender, RoutedEventArgs e) { Uri u = new Uri("http://www.google.com", UriKind.Absolute); MessageBox.Show(u.ToString()); HtmlPage.Window.Navigate(u); } I'm trying to get my app to go to a URL. I have a button which when clicked will bring up a popup box showing the URL but I can't seem to get th...

Keyed ObservableCollection in Silverlight

Hi everybody, I want to implement a keyed observable collection in Silverlight, that will store unique objects based on a property called Name. One way of doing it is to use the ObservableCollectionEx (samples in another stackoverflow post) class which subscribes to all PropertyChanged events on the contained elemens and check to see if...

Displaying a GIF in Silverlight

I have a number of gifs in a folder on my web server /dir/subdir/bla.gif etc. On that same server is a Silverlight 3 application /ClientBin/bla.xap. Is there any way to display the gifs in the Silverlight app? I've tried <Image x:Name=img" /> and then in code setting this.img.Source=new BitmapImage(new Uri("/dir/subdir/bla.gif")) with...

Advice on developing a Graph (Vertices/Edges) Selector in Silverlight.

Hello: I'd like to write an Ag control to show vertices and edges, using a spring/repulsion algorithm for layout. Before I embark on it, I'm looking around for suggestions as the best way to go about doing it. Requirements: Be able to Select Vertices. Be able to Select Edges. Be able to drag the Verices. Be bindable some how. Finally,...

Are IronPython or IronRuby well-suited for the MVVM pattern in WPF/Silverlight?

Hi all, I've been very happily using the Model-View-ViewModel (MVVM) pattern in WPF and Silverlight apps in combination with C#. Declarative XAML markup and data binding are invaluable - I just can't live without them. But, this talk by Harry Pierson on dynamic languages got me excited about learning a dynamic language, and I'd like to ...

Change when a RIA Services DataForm sends changes to the backing object

DataForms seem to update their CurrentItem as soon as the user tabs out of a field. This happens even when AutoCommit = false. The side effect of that behavior is that other controls that are bound to the data update while the user edits data instead of when the user clicks Ok to accept the DataForm changes. Is there a way to modify t...

Problem databinding a custom control in silverlight

I'm attempting to databind a custom control in Silverlight 3 and I'm getting strange problems with it. My xaml for the user control is this: <UserControl x:Class="StronicoMain.GenericSmallIcon" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="4...

How can I add an instance of an UserControl to the "stage" in Silverlight?

Hi guys. I really searched for a long time to get the clue how to add an instance of a custom UserControl Object, that I created to the Silverlight "stage", but I didn't find anything. Is there anything in Silverlight with C# like "Stage.addChild(myAweseomeObject);" in Flash? ...

Filtering a ObservableCollection by user input

I have an ObservableCollection of about 1000 objects that needs to be filtered (searched) by the end user. The user must be able to search by name or employee id. The List Control consumes FilteredEmployees and Employees is loaded up with everything on page load. I currently have it set up as such: public ObservableCollection<EmployeeS...

Hosting Silverlight without IIS

Is there a way to embed a web server, or other means, in a .NET application so that the GUI could be presented as a Silverlight application? Currently we have an application that is client/server. We are using sockets to communicate and passing messages back and forth. One thought was to rework this as a Silverlight solution. The use...

C# Silverlight - Combobox with TwoWay Binding ?

EDIT: The Answer I was looking for was.... <dataFormToolkit:DataField Label="Business Type:"> <ComboBox x:Name="BusinessType" SelectedItem="{Binding BusinessType, Mode=TwoWay}" > <ComboBox.Items> <sys:Stri...

Slow linq enumeration

I've been working on a silverlight application which generates various graphs. It requires a bit of number crunching as well as getting a decent amount of data from the database. For my db communications I created a web service which uses Linq2SQL. To overcome the issue of my web service blowing up, I chunk up the data which results in...

Silverlight data access

Hey folks, I'm working on a silverlight reporting tool which draws up all sorts of fancy graphs based on client data. The issue I'm having right now is a good way to get all the data I need from the database to my silverlight app. Sofar I have a web service which chunks up my data into groups of 1000 and ships them back to me. I need a...

Is it possible to fake blocking Connect with Silverlight sockets?

Hi, In Silverlight all socket calls are restricted to being Async - I have an API which I share between .NET and Silverlight and its based around blocking socket calls. Is there any way to fake or wrap the async socket calls in Silverlight to make them behave like blocking sockets? ...

Silverlight ProjectionPlane Oddity

I have this panel in my app which is 10400 pixels wide. I have my CenterOfRotationX and CenterOfRotationZ = 0.5. I have the GlobalOffsets configured so that the rotation of the panel is visible on the screen. This video shows the RotationY being set from -180 to 180. http://www.youtube.com/watch?v=zDrETOueb-w Its really weird at Rot...

Expression blend (silverlight) using behaviors for header tabs? Fluid move behavior?

Hi I'm trying to create a menu in my header. I have imported my design from photoshop into expression blend and the layout works wonderfully. Now I want to add some effects and links to my objects. I understand I have to make this into a usercontrol tab. I'd like a white tab behind the menu text to move horizontal like an animation wh...

C# Silverlight - Defining a join between database tables?!!?

Currently I have a c# silverlight business application. The application is hosted in Asp.net using the ADO.Net entity framework and a domain service class to read/write to/from my sql server database. The structure of the database is as follow. I have three tables. Job, Audit & Image. One Job can have many Audits, and One Image can have...

Accessing child and parent elements in Silverlight styles on different states

I'm currently styling a Silverlight combobox. The designer wants the combobox to turn black on "pressed", a state that is not supported by the combobox itself, but is available on the togglebutton ("DropDownToggle") within the combobox. So I edit the template for the togglebutton, and make it black on "pressed". No problem. The problem ...

Expression blend tutorials?

Hi Can anyone suggest the best video tutorials for learning expression blend? Thanks Judi ...

Silverlight PRISM, displaying/hiding modules question

Hi, I have created a project using the PRISM framework. I have a few modules that I can register and display in the shell and this works fine. What I need to do is dynamically display and hide the modules when a particular event is received from the event aggregator. I fire off a DisplayModule event that should be received and hide an ...