silverlight

Silverlight animation and collision detection questions

I saw a silverlight animation at work. It was a server rack animation. This brought about a few questions: If I have a big rectangle, which acts as a container, how can I code a rectangle to continuously drop down in smooth frames? You set the time elapsed in the storyboard and perhaps the new position of the rectangle which is dropping...

Using Silverlight DispatcherTimer - is there a better way (DependencyProperty on Animation)?

I'm animating a 'race' on a map. The race takes 45 minutes, but the animation runs for 60 seconds. You can watch the 2008 City2Surf race demo to see what I mean. The 'race clock' in the top-left must show "real time", and had to be set-up in the .xaml.cs with a System.Windows.Threading.DispatcherTimer which seems a bit of a hack. I t...

Does Silverlight use Presentation Host ?

I deal mostly with XBAP, Q1.XBAP normally uses the PresentationHost.exe to get the work done,What does SilverLight use? Q2.Are there considerable differences in moving from XBAP to SilverLight ? (Experience Based or fact based answers?) Can somebody give me a rundown? ...

Adobe Flex vs Silverlight

This is not a pure technical question, but I believe answers will help the RIA community. We are a software development company, which is working on a development of Stock trading product. We chose to use Adobe Flex (in mid of 2008) due to its browser penetration and relative maturity compare to Silverlight. we already developed the sys...

Databinding between element properties in sibbling user components

I've made two user controls A and B. Each of them has a TextBlock inside, and are places inside the root control (Page/RootVisual) How do i bind the two "Text" properties, so that the text in B changes when the text in A changes(and not from B to A) I cannot figure out the way to type this in XAML. What do i write as (x) in: Text="{Bi...

Why does implementing ObservableCollection crash my silverlight application?

Hi, I have a combobox whose ItemsSource property is bound to an ObservableCollection property and its SelectedIndex property is bound to an integer property respectively. <ComboBox Name="cmbDealt" ItemsSource="{Binding Path=DealList, Mode=TwoWay}" SelectedIndex="{Binding Mode=TwoWay, Path=DealIndex}"></ComboBox> <CheckBox IsChecked="{...

Silverlight WCF web service hosting on domain.com and www.domain.com

There's so much stuff on this online but no one seems to be able to answer this... Hopefully someone here will be! So i have a WCF web service hosted at godaddy.com. Everything works great when i try accessing it using: http://www.domain.com/DataService.svc problem is when i remove the www i.e. http://domain.com/DataService.svc Here...

Silverlight MultiScaleImage connection limit?

Silverlight's MultiScaleImage appears to only allow two simultaneous connections to request tiles, irrespective of subdomain or browser connection limits. This makes panning or zooming the a DeepZoom image really slow. How can this connection limit be overriden? Silverlight doesn't appear to support the usual app.config/maxConnections ...

How to Connect Database in Silverlight applications...

I am a newbie in silverlight. and I want to know that how can we connect our application to a Database. I am using a SQL 2005 server as a Database. and I don't want to use Linq... so please suggest me how can i make connectivity either directly in silverlight or by using a web service I don't have any problem in using webservices. Pleas...

ColumnSeries from Silverlight Charting Toolkit problems

Hi, I'm new to Silverlight development and am currently venturing into the Charting territory. I've been following several tutorials that show how easy it is to bind a ColumnSeries to a datasource using ItemsSource (http://silverlight.net/forums/t/44166.aspx). I'm programatically adding a chart to a canvas. Chart BudgetChart = new Ch...

Silverlight C#: XML Serialization: System.InvalidOperationException: <tagname> was not expected

I'm trying to de-serialize an XML Document and when the desserializer encounters a certain tag about halfway down the doc, it gives the error: System.InvalidOperationException <mytagname> was not expected. It has a [System.Xml.Serialization.XmlArrayItemAttribute("MyTagName", typeof(MediaFile))] tag right before it in the class, and...

Silverlight.createobject not working as expected?

Hi guys, I need some help with the createobject function in Silverlight. My xap file accepts a video url and loads it for playing. When I write a tag as follows, it works fine. <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%"> <param name="source" value="ClientBin/Vide...

Sorting an observable collection with linq

I have an observable collection and I sort it using linq. Everything is great, but the problem I have is how do I sort the actual observable collection? Instead I just end up with some IEnumerable thing and I end up clearing the collection and adding the stuff back in. This can't be good for performance. Does anyone know of a better ...

Best way to organize the files in my project

What is the best way to organize the files in your project? For example do you put all user controls in a separate folder or do you place them in a sub folder? Do you have business logic folder? A helper classes folder? I used to organize my projects like this: Project/User Controls/Module Name/ Project/Classes/Module Name/ Now I ...

problems reading CDATA section with special chars (ISO-8859-1 encoding)

I am trying to read a xml stream and load it into a collection. This works but Im having difficulties reading special chars. E.g. if my xml looks like this <?xml version="1.0" encoding="ISO-8859-1" ?> <persons> <person> <firstname> <![CDATA[ Sébastien ]]> </firstname> <lastname> <![CDATA[Ørvåk]]> </lastname> </person> </...

Debugging Property Settings in Visual Studio 2008 with INotifyPropertyChanged

I have a class with a property that gets set by another class. Inside this property setter the program blows up. I just need to know what class actually set the property. I thought I could just look at the stacktrace, but because I am using INotifyPropertyChanged I think it doesn't give me the full information I am looking for. He...

Vista glass effect in Silverlight 2.0

I want to create a panel in Silverlight 2.0 with the same properties and look as the Vista glass region that you get as a window border. I am especially interested in the blur and the frost effects. ...

Layered INotifyPropertyChanged

I have a class that implements INotifyPropertyChanged for a property. I have a control that is bound to that property. I have another class that listens to the propertychanged event. In the event handler of that class I change the value of the property in code. The problem I have is that I don't want to do any logic in the event ha...

Can a aspx page be loaded into a Silverlight Control?

Forgeive me if this is a dumb question, im very new to SL, just ordered 3 books which i should have tomorrow - but i cant stop thinking of the 'is it possible' stuff. Heres what i would LOVE to do, dont know if it possible: Have a SL control on a page that loads a passed in url or aspx (like the browser control for winforms) - the reas...

Why won't StackPanel put textblock on left and button on right in Silverlight?

OK, I give up: what do I have to change to this StackPanel below so that it puts the: text on far left of form button on far right of form. <UserControl x:Class="TestData333.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="400" H...