Questions tagged [silverlight-toolkit]

Official Microsoft add-on components for Silverlight on the browser and Windows Phone released via Codeplex.

Download Silverlight Toolkit from http://silverlight.codeplex.com/

669 questions
4
votes
3 answers

How to remove one or more fields from the DataForm.Validating() event in Silverlight 4?

I have a data form that is bound to an object whose properties are decorated with System.ObjectModel.DataAnnotation attributes for validaton. The problem I am facing is that some properties of this class are only conditionally needed and do not need…
4
votes
2 answers

Issue with Silverlight 5 beta and Silverlight April 2010 Toolkit

There seems to be an issue with SL 5 beta and the SL April 2010 Toolkit. After converting a Silverlight Solution (which compiled well under SL 4!) to SL5 I get the following error: The tag 'TreeViewDragDropTarget' does not exist in XML namespace…
Thomas Mutzl
  • 715
  • 7
  • 21
4
votes
3 answers

ListPicker crash

I have a ListPicker with the following structure: toolkit:ListPicker x:Name="mListPicker" HorizontalAlignment="Right" Margin="0,75,43,0" Width="100" VerticalAlignment="Top"> < toolkit:ListPickerItem Content="5"/> < toolkit:ListPickerItem…
Amresh Kumar
  • 1,445
  • 17
  • 30
4
votes
1 answer

Remembering Position of LongListSelector

I'm developing a Windows Phone 7 (WP7) app and I'm using a LongListSelector control for a list. When the user taps on one of the items, my event handler navigates to a new page for the selected item. However, when the user clicks on the back…
cabird
  • 531
  • 1
  • 6
  • 13
4
votes
1 answer

Adding WP7 ContextMenu programmatically

I'm loading elements on a page dynamically (reading the contents of an XML file). The dynamic content is loaded into a StackPanel. Each element of the content consists of a TextBlock and one other UI element, so for each pair I create a new…
Praetorian
  • 106,671
  • 19
  • 240
  • 328
4
votes
0 answers

TreeViewDragDropTarget moves but not copy

I have a TreeView controll with it's ItemsSource bound to an ObservableCollection of my ViewModel. I have the TreeView wrapped by a TreeViewDragDropTarget, so that users can move nodes of the tree around, ala Windows Explorer. I have the…
Ralph Shillington
  • 20,718
  • 23
  • 91
  • 154
4
votes
3 answers

ListBoxDragDropTarget won't reorder elements that use inheritance

I have a very strange issue and I have no idea how to debug it. (Side note: I hate creating GUI's! Anyway... :) I have been following this guide to using drag 'n drop on Silverlight. Right now, what I'm interested in is the reordering in a list. If…
Fafnr
  • 247
  • 1
  • 3
  • 18
4
votes
3 answers

WrapPanel in Silverlight 4 toolkit

This seems like such a silly question, but I can't for the life of me figure out how to use the WrapPanel in the most recent (April 2010) Silverlight toolkit. Apparently they thought it was a good idea to change the namespaces/assemblies around, and…
Adam Rackis
  • 82,527
  • 56
  • 270
  • 393
4
votes
3 answers

How to stop the WP7 pivot control handling the Flick Gesture event in Silverlight Toolkit

I have a Pivot Control in my WP7 app that by nature responds to left and right swipes to move between the pivot items. I then want to use the Flick Gesture on a UserControl (a small UI segment on my page) for something else. My user control does…
Rodney
  • 5,417
  • 7
  • 54
  • 98
4
votes
5 answers

WP7 Toggle switch in a Pivot control?

Is there any way to control the threshold of the flick action to on/off a toggle switch so that it doesn't mess with the pivot control's navigation?
Naximus
  • 579
  • 6
  • 18
4
votes
1 answer

Get drop index in Silverlight drag / drop

This article shows how to implement a copy operation on a drop event. I'd like to do the same but I want my dropped item to appear in the collection according to where it was placed on the UI. So I need the StartIndex much like on a…
xanadont
  • 7,493
  • 6
  • 36
  • 49
4
votes
2 answers

Installing Silverlight 4 Toolkit without Visual studio 2010 (for build server)

I have just been informed that the Silverlight 4 Toolkit (latest download) requires the prior installation of VS 2010. We are setting up an automated build server for a very large Silverlight Prism project and would prefer not to do a full install…
4
votes
3 answers

How to data-bind TreeViewItem.IsExpanded to a node data objects

I have a hierarchical data classes like public class MyNode { public string Name { get; set;} public bool IsExpanded { get; set;} public List Nodes { get; set;} } I could define a HierarchicalDataTemplate to bind MyNode classes to…
Lex Lavnikov
  • 1,239
  • 9
  • 18
4
votes
2 answers

Draw a column graph with no space between columns

I am using the WPF toolkit, and am trying to render a graph that looks like a histogram. In particular, I want each column to be right up against each other column. There should be no gaps between columns. There are a number of components that you…
Andrew Shepherd
  • 44,254
  • 30
  • 139
  • 205
4
votes
1 answer

Silverlight 4 toolkit, charting and lineSeries is null

I create a Silverlight Chart, with the Silverlight 4 toolkit, the April release. Consider the following chart:
Anemoia
  • 7,928
  • 7
  • 46
  • 71