Advanced Forum Search Results
-
Thanks Yi-Lun, that's fixed it - simple when one has the answer. I learnt a lot about converters whilst working around the problem anyway!
With regards the mismatch semicolons in the markup I've just copy/paste my test case straight from IE into VS2008 and it worked first time. Maybe it's localisation issue on IE Happy to investigate ...
-
I've thought about using converters but this is only really useful for simple mods on individual properties, I would like to potentially have completely different xaml markup depending on the enum. The ShapeType was just a simple example, my actual needs require different xaml structures for each enum value.
My best idea at the moment is to ...
-
it's looking that way - there seem to be other similar problems with DataTemplates.
I'm looking for a workaround now, how can I vary the ListBox.ItemTemplate for each item in the ListBox? i.e. If I have a ShapeType property on the objects stored in the collection that's bound to the ListBox how do I show a square or circle in ...
-
I've created a test case:
1. create vs2008 silverlight application called: sl2datatemplateproblem
2. select 2nd option for application project: generate an html test page to host silverlight within this project
3. paste the following into Page.xaml:
<UserControl x:Class="sl2datatemplateproblem.Page"
...
-
Apologies for the confusion, I enclosed the usercontrol definition for completeness it does not represent the file structure; in my project it is in a separate file. Unfortunately Scott's examples do not include a UserControl from within the DataTemplate which is where the problems start, if I leave as is but replace the UserControl with ...
-
Hi,
When using a UserControl within a DataTemplate it fails to render, in fact sometimes it takes down any other controls anywhere on the page.
In the following example where MyListOfStuff is just a simple collection of strings the first ListBox renders fine with a single string output from MyUserControl. The second ListBox using the exact same ...
-
[quote user="coolio"]
There are some samples as well with actual XAP packages. See also: http://samples.msdn.microsoft.com/Silverlight/Silverlight_Next/appmodel/ApplicationRootVisual/clientbin/testpage.html
Won't run though, the Silverlight 2 Beta 1 runtime setup page is not in place yet.
[/quote]
This ...