wpftoolkit

Could not load type 'System.Windows.Controls.Primitives.MultiSelector' from assembly PresentationFramework

I'm trying to use the Grid from WPFToolkit, but I'm getting the error: DisplayDataMapping.xaml (9,89): errorMC1000: Unknown build error, 'Could not load type 'System.Windows.Controls.Primitives.MultiSelector' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Line 9 Po...

C# How to set a flexible base for altering controls from assembly later?

Hi @ all :) I'm still new with C#, and I'm working on a project where we also use WPF, and the WPF DataGrid Toolkit (See at CodePlex), which hasn't yet been released into the framework. Due to the nature of the project, it's 100% sure we will be altering some controls of the assembly later. My co-workers have decided to redefine every ...

How do I create a new row in WPF DataGrid when it is bound to an XmlDataProvider?

I have a project with an XmlDataProvider bound to a WPF DataGrid control. I have the bindings on the DataGrid set up as follows: <dg:DataGrid ItemsSource="{Binding Source={StaticResource XmlData}, XPath=Root/People/Person}" AutoGenerateColumns="False"> <dg:DataGrid.Columns> <dg:DataGridTextColumn Header="ID" Bin...

Converting a WPFToolkit DataGrid from 1D list to 2D matrix

Hello - I am wondering if anyone has attempted the following or has an idea as to how to do it. I have a WPFToolkit DataGrid which is bound to an ObservableCollection of items. As such, the DataGrid is shown with as many rows in the ObservableCollection, and as many columns as I have defined in for the DataGrid. That all is good. Wha...

How do I set TargetNullValue to a date?

I'm using the WPF toolkit's Calendar control to allow users to select a date. If the date is not yet selected then the property the SelectedDate is bound to is Null. This makes the Calendar default you January 1, 0 AD. I'd like to do something like SelectedDate="{Binding UserPickedDate, TargetNullValue=Today, Mode=TwoWay}" But both "T...

WPF DataGrid Styling

Does anybody know/have an example of how to change WPF DataGrid layout to be something like card-view or anything else, not just stack of rows? ...

WPF ComboBox not updating source

I'm trying to get a WPF combobox working (inside the WPFToolkit Datagrid), and I'm having trouble getting all the pieces aligned correctly. I'm using Linq to Entities, and I'm setting the overall datacontext to the results of a Linq query: private void LoadDonationGrid() { donationGrid.ItemsSource = from donations in entities.Don...

Can you swap VisualStateManager for MultiTrigger in WPF?

This really relates to creating a library that works across both WPF and Silverlight. The WPF Toolkit includes an implementation of the VisualStateManager included with Silverlight, and if the VisualStateManager can do what the MultiTrigger in WPF does, that solves my problem. I just found an article on MSDN Blogs discussing the use of ...

WPF toolkit datagrid

Hi all, I want to show datagrid content (rows,columns) in XPS document.I have 20 columns. When i sent datagrid to XPS with XPSDocumentWriter.Write method ,it just show some columns not all of them.How can i show all columns and rows in xps(like Xceed datagrid xps exporting) Thx ...

Using WPFToolKit's DataGridHyperlinkColumn

I'm using WPFToolkit's Datagrid control. I can populate the datagrid, but I'm having trouble with the DataGridHyperlinkColumn. I would like it to visually display the link as the Person's name, but for the link to go to whatever UriLink's value is. How can I do this? What am I doing wrong? Xaml: <dg:DataGridHyperlinkColumn Header...

Wpf Toolkit. Bind DataGrid Column Header to DynamicResource

I'm trying to bind DataColumn Header to DynamicResource using following code. <Window.Resources> <sys:String x:Key="HeaderText">Header Text</sys:String> </Window.Resources> <Grid> <tk:DataGrid> <tk:DataGrid.Columns> <tk:DataGridTextColumn Header="{DynamicResource HeaderText}" Width="100"/> </tk:DataGr...

WPF Datagrid zoom issue

I'm working with the WPF DataGrid from the WPFToolkit and I'm having issues with trying to zoom the entire datagrid. My initial thought was that it was going to be really easy and I would just apply a scale transform to the grid and animate the ScaleX, ScaleY properties when the used clicked a button. This did not work however because ...

Silverlight Toolkit: Why can't I change ItemsSource on Chart.Series?

I'm starting to experiment with the new chart controls in System.Windows.Controls.DataVisualization.Charting (from the Silverlight 3 Toolkit) I want to bind a data table that contains a list of budgets (name & value column). It works when I first load my page: <v:Chart x:Name="BudgetChart" Title="Budget Distribution"> <v:...

WPF DataGrid - Setting RowDetails programmatically

I'm using the WPF DataGrid, and I'd like to know if there is any way I can access the DataGridRow's RowDetails programatically. For example, when the user selects the row, I'd to grab some data from somewhere (say, a database), and display it in the RowDetails. All of the examples I've seen tend to just display some extra bound data t...

How can I load WPFToolkit assembly in Powershell

I have installed WPF Toolkit: Location: C:\Program Files\WPF Toolkit\v3.5.40320.1\WPFToolkit.dll Name: WPFToolkit, Version=3.5.40128.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35 Type: Library I can load it by full path: [System.Reflection.Assembly]::LoadFrom("C:\Program Files\WPF Toolkit\v3.5.40320.1\WPFToolkit.dll") But c...

Can not add rows to WPF DataGrid in PowerShell

I am using DataGrid from "WPF Toolkit" from PowerShell. The problem is that I can't add new rows using GUI. dialog.xaml <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:dg="clr-namespace:Micro...

DataGridComboBoxColumn is empty if text does not exit in the dropdown

I am using the WPF Toolkit DataGrid bound to Person collection. The LastName is represented by the ComboBox with wellknown names. <x:Array x:Key="knownLastNames" Type="sys:String"> <sys:String>Johnson</sys:String> <sys:String>Williams</sys:String> </x:Array> The problem is that if I set LastName to "Brown" (missed in knownLast...

PowerShell WPF DataGrid: Exception thrown commiting emtpy row

I get exception trying to commit empty DataGrid row. System.NullReferenceException: Object reference not set to an instance of an object. at MS.Internal.Data.PropertyPathWorker.DetermineWhetherDBNullIsValid() at MS.Internal.Data.PropertyPathWorker.get_IsDBNullValidForUpdate() at MS.Internal.Data.ClrBindingWorker.get_IsDBNullVal...

Problems with DataGridTemplateColumn with ComboBox

I have a DataGrid template column with ComboBox. When I select a value and press enter the bound data is not updated (I see empty cell). XAML: <Window x:Class="WpfGrid2.Window2" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;...

WPF decomposition - DataGridTemplateColumn

I am trying to move custom DataGrid column definition into a UserControl. MyComboBoxColumn.xaml <dg:DataGridTemplateColumn x:Class="WpfDecomposition.MyComboBoxColumn" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:dg="clr-namespace:Microsof...