Questions tagged [wpftoolkit]

The WPF Toolkit is a collection of WPF features and components that are being made available outside of the normal .NET Framework ship cycle. The WPF Toolkit not only allows users to get new functionality more quickly, but allows an efficient means for giving feedback to the product team.

Official site:

1022 questions
105
votes
3 answers

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…
Kilhoffer
  • 32,375
  • 22
  • 97
  • 124
96
votes
4 answers

WPF StringFormat on Label Content

I want to format my string binding as Amount is X where X is a property bound to a label. I've seen many examples but the following doesn't work:
Everything Matters
  • 2,672
  • 4
  • 25
  • 42
59
votes
13 answers

Text alignment in a WPF DataGrid

How can I align the column data to center in a WPF DataGrid?
Prashant Cholachagudda
  • 13,012
  • 23
  • 97
  • 162
51
votes
1 answer

Bind datagrid column visibility MVVM

.Net 3.5 I know that the columns doesn't inherit the datacontext and by reading other posts i thought this would work: Visibility="{Binding RelativeSource={x:Static RelativeSource.Self}, …
jrb
  • 1,708
  • 2
  • 13
  • 20
51
votes
10 answers

Changing the string format of the WPF DatePicker

I need to change the string format of the DatePickerTextBox in the WPF Toolkit DatePicker, to use hyphens instead of slashes for the seperators. Is there a way to override this default culture or the display string format? 01-01-2010
benPearce
  • 37,735
  • 14
  • 62
  • 96
47
votes
11 answers

WPF (MVVM): Closing a view from Viewmodel?

Anybody come across a clever way of closing a view in a viewmodel using MVVM? Maybe there is a way of using binding to signal the view (window) to close? I would really appreciate any input anyone has. Basically i have a loginView that is bound to a…
mark smith
  • 20,637
  • 47
  • 135
  • 187
44
votes
3 answers

How to remove DataGrid's blank row when binding to a ObservableCollection?

I'm getting nuts here with this: ObservableCollection list = new ObservableCollection(); dgEmployees.ItemsSource = list; When you debug the list variable, it's empty (list.Count =0), but then I bind it to a DataGrid…
Junior Mayhé
  • 16,144
  • 26
  • 115
  • 161
42
votes
3 answers

Windows 7 theme for WPF?

Is there any way to make a WPF app look like it's running on Windows 7 even if it's running on XP? I'm looking for some kind of theme I can just paste in. I'm aware of the themes project on Codeplex (https://archive.codeplex.com/?p=wpfthemes), but…
devuxer
  • 41,681
  • 47
  • 180
  • 292
41
votes
5 answers

How do I enable text wrapping on all column headers?

How does one enable text wrapping on all column headers of a DataGrid, without disabling the other default header functionality? Such as column resizing, sort direction indicator, etc which are needed. Is there a way to do this?
Peter Todd
29
votes
2 answers

WPF Toolkit Calendar takes two clicks to get focus

I am using the WPF Calendar that is part of the WPF Toolkit. I have two different calendars on a control. When I attempt to choose a date from one calendar and then from the second calendar, I have to click on the second calendar twice to get it to…
timothymcgrath
  • 1,318
  • 1
  • 9
  • 19
29
votes
2 answers

How can I apply a custom sort rule to a WPF DataGrid?

When the user does a column sort in my DataGrid, I want all null or empty cells to be sorted to the bottom, rather than the top. I wrote an IComparer that makes sure blanks are always sorted downward, but I can't figure out how to apply it to the…
devuxer
  • 41,681
  • 47
  • 180
  • 292
26
votes
5 answers

Pre-sorting a DataGrid in WPF

I have a DataGrid in WPF app with several columns, including a Name column. If the users switches to a particular view, I want the data to be pre-sorted by Name (and I'd like a sort arrow to appear in the Name header just as if the user had clicked…
devuxer
  • 41,681
  • 47
  • 180
  • 292
23
votes
4 answers

How do I change the background color of a cell using WPF Toolkit Datagrid

I'm using the WPF toolkit datagrid, and I'd like to set the background color of a cell, not the row, based on the content of the cell. For the sake of simplicity, lets say the column is called Foo and I'd like the background of the cell to be blue…
Jonathan Beerhalter
  • 7,229
  • 16
  • 68
  • 78
22
votes
1 answer

Freezing columns in wpf datagrid

I have some tabular data which has a lot of fields in it, and when my WPF application is resized a lot of them are cut off. However, I want to see the first 6 columns always as they are important. How can I achieve this in a grid format? I am using…
Anthony Potts
  • 8,842
  • 8
  • 41
  • 56
22
votes
5 answers

Extended WPF Toolkit - How to add reference to project?

I am new to WPF. I want to use datetime picker. I have downloaded the "Extended WPF Toolkit - 1.9.0" from below site. http://wpftoolkit.codeplex.com/releases/view/96972 I have unzip file and found two dll. One is "WPFToolkit.dll" and…
Mahesh Alle
  • 319
  • 1
  • 4
  • 10
1
2 3
68 69