silverlight-toolkit

Silverlight 4: How to add context Menu to DatagridColumnHeader?

Can anyone give me a hint how to add ContextMenu to Data Grid Column Header in XAML? Any pointers are highly appreciated. ...

Does anyone have code to make the mouse cursor a cross/plus sign in silverlight?

Does anyone have code to make the mouse cursor a cross/plus sign in silverlight? when I click on one draw button then I want cursor as cross/plus sign do how can I implement in the silver light ? ...

How to create unit test for actualHeight in Silverlight 4?

How can I write a unit test to test the actualWidth property to a userControl in Silverligh 4? I hoped that this method would pass, but it fails. I am using the Silverlight ToolKit april 2010, and VS 2010. <TestMethod()> _ Public Sub TestAcrtualWidth() Me.MyUserControl.Width = 100 Me.MyUserControl.UpdateLayout() Assert.Is...

Flowlayout control in Silverlight 4

In silverlight 4 Beta there used to be a contol called flowlayout control. Now i am not able to see that in the silverlight 4 rc. please let me know if anything needs to be installed to get that control. ...

Silverlight 4 toolkit, charting and lineSeries is null

Hi, I create a Silverlight Chart, with the Silverlight 4 toolkit, the April release. Consider the following chart: <Grid x:Name="LayoutRoot" Background="White"> <Charting:Chart Title="Chart to test" Name="MySuperChart"> <Charting:LineSeries x:Name="MyLineSeries" Title="Something" /> </Charting:Chart> </Grid> So far so good...

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 apply when creating a column graph. (See example XAML below). Does anybody know if there i...

Should i use a trigger or Behaviors for this?

I have an abstract object called Applicant and two different types of objects that inherit from Applicant called Business and Individual. So I have three classes that look like this: public abstract class Applicant { ... } public class Individual : Applicant { ... } public class Business : Applicant { ... } Now in the DataGrid ...

How to add Silverlight 4 ContextMenu to DataGrid row using XAML?

Silverlight 4 has a new ContextMenu control in the latest toolkit. I can't find any examples anywhere on how to reliably use this ContextMenu on a DataGrid row. Theres a tonne of context menus out there but I want to use the new version from the toolkit. I'd like to be able to set context menus for rows as well as cells. The only way ...

How do I use the additional Silverlight Toolkit controls?

I've got VS2010 installed, I've downloaded the Windows Phone add-in and the Silverlight Toolkit from CodePlex, but I cannot work out for the life of me how to actually use the controls in a Windows Phone 7 application... How do I add the controls into the toolbox, or link them so that the XAML doesn't give me errors all the time? For i...

Silverlight Toolkit Drag and Drop Target

I tried to get Drag and Drop working between two ListBox Controls. But somehow picking up an item is not possible. Maybe you have a hint for me to get it working My User Control xaml code looks like this: <UserControl.Resources> <DataTemplate x:Key="ItemTemplate"> <StackPanel Orientation="Horizontal"> <Image W...

How can I stop Silverlight DataForm immediately saving changes back to underlying object?

I have a Silverlight master-details DataForm where the DataForm represents a street address. When I edit the Address1 textbox, the value gets automatically committed to the bound Address object once focus leaves the textbox. If I hit the Cancel button, then any changes are undone because Address implements IEditableObject and saves its...

Horizontal Orientation of DataGrid in Silverlight 4

Hello, I want to change the orientation of the datagrid to horizontal in silverlight 4. i.e. I want to display the headers on the left hand side and the values corresponding to it on right hand side. how can I do it? Thanks. ...

Silverlight DataForm Memory Leak

Some Background I have noticed that setting the EditTemplate of a DataForm (from the Silverlight Toolkit) can cause the DataForm to not be garbage collected. Consequently, the parent control of the DataForm cannot be garbage collected either, causing a very significant memory leak. Here's some XAML which demonstrates the case. <to...

How to create StackedBarSeries with custom tooltip without losing standard colors

I have a StackedBarSeries in Silverlight 4 charting (latest release). I have created a DataPointStyle called MyDataPointStyle for a custom tooltip. By itself this breaks the standard palette used for the different bars. I've applied a custom palette - as described in David Anson's blog to the chart. However when I have the DataPointSty...

geting information from Treeview with HierarchicalDataTemplate

Good day! I have such a template: <common:HierarchicalDataTemplate x:Key="my2ndPlusHierarchicalTemplate" ItemsSource="{Binding Children}"> <StackPanel Margin="0,2,5,2" Orientation="Vertical" Grid.Column="2"> <CheckBox IsTabStop="False" IsChecke...

Prevent DataGridDragDropTarget from Showing "Drag Shadow"

Hi, is it possible to prevent the Silverlight Toolkit DataGridDragDropTarget from starting a drag-action? What I whant is to use one DataGrid only as DragSource and another one only as DropTarget. And the DropTarget-only-DataGrid should not show this "StartDragShadow" when pressing and moving the mouse over an item. Thanks! Steven ...

Error handling for AutoCompleteBox with Silverlight 3 + MVVM Light toolkit

Hi, I'm trying to create a UserControl that contains a AutoCompleteBox. I want to use the SelectedItem property of this AutoCompleteBox to populate other UserControls with information based on which item the User selected. To prevent the SelectedItem to be fired every time a user "navigate" between items in the drop-down I've created a ...

Display dependent value on Pie chart legend.

Hi, I'm using Silverlight 4 + Silverlight 4 Toolkit (April 2010). I'd like to display the dependent value of my pie chart in the chart legend. I've tried styling the legend item however I do not know how to bind to the dependent value. Many thanks, Keith <Style x:Key="LegendItemStyle" TargetType="toolkit:LegendItem"> <Setter Proper...

Silverlight 4 Toolkit not appearing after install in Visual Studio 2010

I am running Visual Studio 2010 and have installed the Silverlight 4 Toolkit, however on creating a Silverlight Application I don't seem to have the controls in my Toolkit? Can someone please help me on this? ...

Silverlight Toolkit context menu of ComboBoxItem not showing for selected item.

Desired Result: Create a quick XAML example of Silverlight 4 ComboBox, where each ComboBoxItem is made up of multiple TextBlocks. Every Textblock in the ComboBoxItem has it's own unique (Silverlight Toolkit) ContextMenu item. Rightclicking the Textblock brings up the relate context menu. Working properly: I have successfully created t...