wpftoolkit

Visual State Manager in WPF not working for me

Hi In a wpf project I have this XAML code <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:ic="clr-...

XamlParseException due to DatePicker from WPFToolKit

Hello everyone, Error : UnhandledException: System.Windows.Markup.XamlParseException: '/WPFToolkit;component/DataGrid/Themes/Luna.NormalColor.xaml' value cannot be assigned to property 'Source' of object 'System.Windows.ResourceDictionary'. Could not load type 'System.Windows.Controls.Primitives.MultiSelector' from assembly 'Presenta...

WPF Toolkit DataGrid Performance Issue

Hi All, I am facing a performance issue with WPF Toolkit datagrid. In my application I have created a view containing multiple Data Grids (around 25) with about 5 rows in each grid. The grids are placed in an ListView, the problem I am facing is of rendering of my view. Can anyone guide me to resolve the issue. Thanks ...

How to select all the text when the edit textbox in a DataGridTemplateColumn receives focus ?

I'm trying to get a DataGridTemplateColumn to behave identically to a TextColumn when the cell goes into edit mode (Press F2), the user can immediately start typing in the new value by default, existing text content is selected - so that you can set new values easily Got the first one done ; however selecting all the text isn't work...

WPF DataGrid default column types

Hi, I'm using a DataGrid to display 2 possible types of DataRow in a DataTable. One type has the column Parent = NULL and the other has Parent set to another DataRow in the same DataTable. The list of column in the DataTable is always different, so explicitly describing each column is not possible. I want to display a UserControl in ev...

"Input string was not in a correct format." Exception in WPF Datagrid

Hello, I have a BindingListCollectionView connected to the DataContext of a datagrid. The datagrid now shows the list of items of the BindingListCollectionView. But when I click on the last row to add a new item. I get an "Input string was not in a correct format." exception. When I step with the debugger through the WpfToolkit library...

WPF AutoCompleteBox - How to restrict it choose only from the suggestion list?

Hello, I would like to restrict WPF AutoCompleteBox (wpf toolkit control) to select an item only from the suggestion list. It should not allow users to type whatever they want. Can someone suggest me how to implement this? Any sample code is appreciated. ...

WPF DataGrid - How to move keyboard focus to newly added row after tab press

WPF DataGrid add a new row if we press tab on last column of last row. But after adding the new row, the focus is moved to top row of the grid. How can we make sure that the focus is moved to the first column of new row? ...

WPF- building a model based testing application

I want to build a model engine for a model base testing application. I assume there are some refernces that can be helpfull. I would like to use the cool features of WPF. Is there anything like this that exists? or any other helpful recommendation? ...

How do I add VisualStateManager to my Surface project?

I have a surface project and I would like to use controls designed in Blend. I added these controls to my microsoft surface project, but I receive an error when I try to compile it. Error 1 The tag 'VisualStateManager.VisualStateGroups' does not exist in XML namespace 'http://schemas.microsoft.com/winfx/2006/xaml/presentation'. Line 12...

WPF DataGrid binding to UserControl

I have a DataGrid with one column using a UserControl via a styled DataGridTemplateColumn. I can't seem to get the UserControl to 'see' the object that is in it's containing DataGridCell though. What kind of bindings can I create on the TextBox in my UserControl so that it can look up and see that object?! My UserControl and TemplateCol...

WPF toolkit data column visibility binding

I want to bind datagrid view column visibility with a property of class. I am passing a collection as ItemSource to grid. I am not able to do this. Any idea why? ...

Need to replace 3rd party WinForm controls, what's the closet WPF equivalent?

I am tired of Windows Forms...I just am. I am not trying to start a debate on it I am just bored with it. Unfortunately we have become dependent on 4 controls in DevExpress XtraEditors. I have had nothing but difficulties with them and I want to move on. What I need now is what the closet replacement would be for the 4 controls I am ...

WPF DataGrid window resize does not resize DataGridColumns

I have a WPF DataGrid (from the WPFToolkit package) like the following in my application. <Controls:DataGrid> <Controls:DataGrid.Columns> <Controls:DataGridTextColumn Width="1*" Binding="{Binding Path=Column1}" Header="Column 1" /> <Controls:DataGridTextColumn Width="1*" Binding="{Binding Path...

How can I sort a DataGridTemplateColumn on a WPF Toolkit DataGrid?

I have a WPF Toolkit DataGrid with one DataGridTemplateColumn. I've specified in a grid attribute that I wish all columns to be sortable, but the DataGridTemplateColumn won't allow it. All other columns do allow sorting. I've even tried explicitly setting CanUserSort to true for that column, but no luck. Is it even possible to sort a tem...

Date Picker Today Option In WPF

Is there any property , option available in the date picker control so that if user want to select today from any date from current date ? e.g if user is view current month of last year then he has the option to select current date ? ...

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

How can I prevent row selection in the WPF Toolkit DataGrid?

I see a few options available for row selection, but 'No Selection' is not one of them. I've tried handling the SelectionChanged event by setting SelectedItem to null, but the row still seems selected. If there is no easy support for preventing this, would it be easy to just style the selected row the same as an unselected one? That way...

How to hide border of cells in wpf toolkit datagrid?

Hi, I want to hide the borders of cells in wpf toolkit datagrid (like ShowGridLine property of WPF grid). How can I achive this behaviour? ...

Dynamcally resizing an open Accordion

I have an Accordion and the height of its content can be dynamically resized. I would like to see the Accordion dynamically respond to the child item's height, but I'm having trouble doing this. <lt:Accordion Name="MyAccordion" SelectionMode="ZeroOrOne" HorizontalAlignment="Stretch"> <lt:A...