silverlight-toolkit

Staggered Column Labels in Silverlight Toolkit Chart

Hi, I need to style the chart control in silverlight toolkit to look like this http://img375.imageshack.us/img375/3758/chartstyle.png wherein the column labels are staggered. Can anybody lead me to the right direction on how to accomplish this task? Examples would be greatly appreciated. Thanks, Keith ...

Silverlight TimePicker CurrentTime

Is there any way to remove the current time that shows when TimePicker have focus in Silverlight ? TimePicker : http://www.silverlight.net/content/samples/sl4/toolkitcontrolsamples/run/default.html Category : Input > TimePicker ...

Silverlight 4 RIA Services, the SIlverlight 4 Toolkit controls and many to many relationships in database

I was looking at snippets and tutorials for quite some time now, but I can't find a complete answer - just some bits and pieces. I have a database with 3 tables: Product: id uniqueidentifier name nvarchar(50) Category: id uniqueidentifier name nvarchar(50) ProductCategory: fk_product uniqueidentifier fk_category uniqueiden...

Drag and Drop Text on Image in silverlight

I have a application in which i want that on the right there would be image.On the left there would be a textbox and button.After user enters anything in the textbox and click on the button.The text should appear on the image in the form of draggable panel by which user could position the text on the image. How could i do this? Plz h...

Silverlight 4 Unit Testing

Hi guys, I've installed Silverlight 4 Toolkit April 2010 and have VS 2010 RTM but Silverlight 4 Unit Test Project template is not installed. Is it by default for this release? If so, how can I use SL4 unit testing? Thanks. ...

Sorting a PagedCollectionView by index (using Silverlight Datagrid)

I have a silverlight datagrid which is bound to a PagedCollectionView displaying a collection of RowViewModels. Each RowVM has a collection of CellViewModels, and the datagrid columns are templatecolumns and are generated dynamically with their content bound to Cell[0].Content, Cell[1].Content, etc. This is because the rowviewmodels ar...

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<MyNode> Nodes { get; set;} } I could define a HierarchicalDataTemplate to bind MyNode classes to the TreeView. <sdk:TreeView ItemsSource="{Binding RootNodes}"> <sdk:TreeView.ItemTem...

Validation in Silverlight 4

Hello, I want to know how to apply Validations on fields in SL4. I went thorugh the sample code given for Datagrid with Master-Details and DataForm implementation on http://www.silverlight.net/content/samples/sl4/toolkitcontrolsamples/run/default.html It has validations applied on all fields but no code is written. I want to apply suc...

Reversing an animation in Silverlight on button press or any other event

Hi, How would I reverse a double animation in Silverlight on an event? For example, lets say I have an ellipse as a path and I am moving a shape along this path in an infinite loop. If I press a button, I want to reverse the direction of the spin (clockwise <-> counterclockwise). To be more specific, I am using the PathListBox object t...

Silverlight: Determine which control initiated drag'n'drop

Using the drag'n'drop features of the Silverlight 4 Toolkit, I have a drag'n'drop enabled Listbox where each ListboxItem can be dragged/reordered up and down. Each ListboxItem contains several controls (TextBlocks, TextBoxes and Buttons) and my problem is that when I click the buttons within a ListboxItem, I will occasionally initiate a...

When to use the TestProperty-Attribute in the Silverlight Unit Test Framework?

The other Attributes (aka. TestMethod, ExpectedException, etc.) i know where and when to use, but i don´t know what i can do with the TestProperty-Attribute. Why should i use it and when? Whats the reason for this attribute? I found no useful documentation on the Internet, that explains the TestProperty-Attribute. And intellisense doe...

How does Silverlight work?

Hi, Can anyone point me to a link with detailed description on how Silverlight works. I mean in the sense that, does it run as a separate process or does it run in the same process as browser? Does the silverlight plugin responsible for parsing the XAML and rendering the Silverlight run in the same address space as the browser? Basicall...

Silverlight ToolKit DragDrop problem

Hi! I have pane with two grid and there is a listbox in both grid. I'd like to add Drag & Drop feature to the pane, so the user can drag a list element in the left listbox and drop it in the right listbox. I found many great tutorials and I could add the appropriate code to my pane but when the application is running and I click on the m...

Drag starting on a click for TreeViewDragDropTarget in Silverlight

I'm using the TreeViewDragDropTarget control in Silverlight and the drag operation is starting on a click rather than a drag. I don't want the operation to start on a click, only on a drag. How do I prevent this? ...

ComboBox Binding is lost when bound item is swapped for a new item containing null for the field

I have a "User" screen where a User entity is bound. When it starts off as a new user, the values bound to the combobox is null so the combobox starts off blank and the works as intended. If I then click my "New User" button, any comboboxes that were switched from the empty null value to a value while still on the previous entity seems t...

Does the Silverlight toolkit Line Chart enable line smoothing?

I'm working on some charting, and am currently using the Silverlight Toolkit. At the moment the line series links all the datapoints with straight lines, making for a fairly jagged display. Is there a way for the chart to apply smoothing to the line series? If not, does anyone have any other suggestions? Are there other charting pack...

How to change DatePicker default 'level'?

When using the Silverlight DatePicker, it opens on days view by default. When a user has to select his birthday, it would be a lot user-friendly if he could first select the year and drill down immediately without going up the tree first. I can guess that about 70% of our users won't even figure out how to use the calendar headers to go ...

Set ClickMode for all Button-like Controls in Silverlight

I'm looking for an easy way to set ClickMode="Pressed" on every Control in my Silverlight Application (that inherits from ButtonBase obviously). The solution should also access any ButtonBase-Control that is part of a controltemplate like ComboBox of SilverlightToolkit. Do i have to create a custom theme for this? If yes, how do i reus...

Removing the MouseOver effect from a Silverlight Context Menu

I'm trying to achieve the effect of a pop-up when the user right-clicks in a Silverlight application that shows essentially a custom control. I'm using a Context Menu, and all is working great except that I'm having trouble styling the context menu so that it doesn't highlight itself when the user mouses over. Here's a snippet of what ...

Silverlight AutoCompleteComboBox - build list asyncronously?

I would like to have a textbox in a Silverlight app where the user can type in it, and after a few characters are entered the control calls a web service to retrieve a list of potential choices that the user can choose from. Essentially it is a type-ahead combobox but I don't want to keep all of the possible choices in memory I want to ...