silverlight-toolkit

WPF and Sliverlight toolkit vs .Net 4

I could not get answer to this question anywhere, then thought maybe educated community here can shed some light. Somewhere it was mentioned that WPF and Silverlight toolkit would be implemented as part of .Net4. So we can use their features directly from .Net4, without installing these toolkits. Is it true? Thanks. ...

3D chart in silverlight4

how to create 3D pie chart using silverlight 4 toolkit ...

SeriesDefinition not changing Visibility when bound

Hello, I am using the StackedColumnSeries from the Silverlight toolkit to display some data. I am trying to create a list of checkboxes that each bind to a specific series' visibility, but the visibility doesn't change. I have implemented the BooleanToVisibility converter, and it reports back correctly, and the object reports back that ...

Silverlight TreeView in ComboBox (or just a custom dropdown control)

Hi I was wondering if I can have a ComboxBox with a Treeview as the selector rather than a list? I note that there is a ComboBox.ItemsPanelTemplate, but I don't know what I need to do to get this to work? I could build a control 'from the ground-up' with a separate TextBox, Button and TreeView in a PopUp control, but wondered if there...

Can or should dataforms be nested

My VM looks something like this: public class PersonViewModel : ViewModelBase { public String Name { get; set; } public Phone HomePhone { get; set; } public Phone OfficePhone { get; set; } public Mailing HomeAddress { get; set; } } Of course the view model implements INotifyPropertyChanged and so the property setters i...

Silverlight DragDrop.DoDragDrop()

I am really struggling to get a simple drag and drop sample working in Silverlight 4. Here's what I have: XAML <UserControl x:Class="TestDragDrop.MainPage" Width="350" Height="200" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&gt; <Grid Background="...

MEF Silently Stops Finding Exports in Deployment Catalog?

When my Deployment Catalog contains System.Windows.Controls.Layout.Toolkit.dll MEF 'breaks'... All I'm doing is adding a reference to this file in my project and the following diagnostics code writes nothing to the VS Output Window: this.CompositionContainer.ExportsChanged += (s, args) => { var o = args.AddedExports; o.ToList()....

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? ...

Can I make a custom control similar to a ContentControl editable in Blend?

I'm trying to make a custom control in Silverlight have the same functionality as a ContentControl, notably being editable in Blend. The custom control has a property "AdditionalContent" which holds the Content that should be displayed. It is bound to and displayed with a ContentPresenter in the Xaml for the control's UI. Unfortunately...

How can I make the DataForm render the DataFields when the currentitem is null

I have a DataForm bound to the selectedItem of a listbox. Before the user selects an item in the listbox the DataForm is blank, by that I mean there is absolutely nothing displayed, no labels, textboxes or anything. Once the user selects an item in the listbox then then the form renders data as expected. How do I get the form to displ...

Silverlight Validation Not Working with Data Annotations

I have a form: <StackPanel x:Name="LayoutRoot"> <sdk:ValidationSummary /> <sdk:Label Target="{Binding ElementName=Greeting}" /> <TextBox x:Name="Greeting" Text="{Binding Greeting, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True}" /> <sdk:Label Target="{Binding ElementName=Name}" /> <Te...

Testing navigation in silverlight

I have a Silverlight application that is using a navigation frame. I am trying to write a unit-test for that application using the silverlight testing framework, however when I execute the test method I get the following error: InvalidOperationException No XAML was found at the location '/Pages/LoginPage.xaml' The unit-test method loo...

How to get a value in cell EDIT template textbox inside the gridview? (Silverlight 4 only)

Hi inside my gridview, I have a column AccountNumber. In the edit mode, i use the CellEditTemplate with a TextBox to let the user type in value. Can anyone tell me a way to retrieve the value has been typed in the cell? I need that value in order to show a popup window which will filter the corresponding available list of AccountNumb...

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 handle the event but so does the Pivot control, so it navigates to the next item. I have n...

Drawing with Silverlight in VS2010

Hi, I have a C# application developed with Visual Studio 2008 that is like a paint, where you can write using the mouse. I use the Graphics and Bitmap classes. Now, I need to do the same application but in Visual Studio 2010 and using the Silverligth Tools. Do you know what is the best way to do it? I was searching but not enough to fi...

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 not put anything on their codeplex site about this. And their samples for these control...

Silverlight ItemsPanel - WrapPanel

<ItemsPanelTemplate x:Key="lbWrapPanelItemsPanelTemplate"> <wp:WrapPanel Margin="2" Background="Beige" HorizontalAlignment="Stretch"> </wp:WrapPanel> </ItemsPanelTemplate> ..... <Grid Background="LightCoral" MinWidth="500" MinHeight="500"> <Grid.ColumnDefinitions> <ColumnDefinition Width="200"></Col...

Get Row from Index in Silverlight DataGrid

I am trying to implement reordering rows in a Silverlight DataGrid. For this I am extending the default DataGridDragDropTarget, and I need to override and implement the following method: protected override DataGridRow ContainerFromIndex(DataGrid itemsControl, int index) { } How can I get the DataGridRow from the DataGrid and the Inde...

What does RemoveNoiseFromDoubleMath do?

In the Silverlight Toolkit there is this method: /// <summary> /// Removes the noise from double math. /// </summary> /// <param name="value">The value.</param> /// <returns>A double without a noise.</returns> internal static double RemoveNoiseFromDoubleMath(double value) { if (value == 0.0 || Math.Ab...

Silverlight 4: Business Application Template

Hello, I am developing a Silverlight 4 application which is based upon Business Application Template. I am interested to ask user to login and display a login form as soon as user arrives to my site. I need to makes sure that the user cannot see/navigate to any other page of the application until he/she logs in. Could you please help ...