wpftoolkit

How do I change the color of Cell in WPF DataGrid based on a property of the object in itemsource?

為{幸葍}努か 提交于 2019-12-23 03:12:18
问题 I have a very simple object called CellData. Is defined as: public sealed class CellData { internal string DisplayText { get; set; } public string Color { get; set; } public override string ToString() { return this.DisplayText; } } I can get it to display using the WPF toolkit DataGrid just fine. However, I want to be able to change the background color of each cell based on what data is in the cell. I'm having trouble understanding what type of binding I need to do because I can't see to get

How do I change the color of Cell in WPF DataGrid based on a property of the object in itemsource?

孤者浪人 提交于 2019-12-23 03:12:00
问题 I have a very simple object called CellData. Is defined as: public sealed class CellData { internal string DisplayText { get; set; } public string Color { get; set; } public override string ToString() { return this.DisplayText; } } I can get it to display using the WPF toolkit DataGrid just fine. However, I want to be able to change the background color of each cell based on what data is in the cell. I'm having trouble understanding what type of binding I need to do because I can't see to get

WPF BusyIndicator on a background thread

蹲街弑〆低调 提交于 2019-12-22 13:05:07
问题 I'm using the wpf toolkit busy indicator which provides an overlay on top of my UI while a background operation is taking place. There's a progress bar in the control which is set to indeterminate which is fine while my background task is going on. Once the background task is complete, the UI needs to update which can take 1-2 seconds. This of course causes the progress bar to freeze which looks ugly. My question is, how can I spin up the busy indicator on a background thread so that the

WPF BusyIndicator on a background thread

此生再无相见时 提交于 2019-12-22 13:04:22
问题 I'm using the wpf toolkit busy indicator which provides an overlay on top of my UI while a background operation is taking place. There's a progress bar in the control which is set to indeterminate which is fine while my background task is going on. Once the background task is complete, the UI needs to update which can take 1-2 seconds. This of course causes the progress bar to freeze which looks ugly. My question is, how can I spin up the busy indicator on a background thread so that the

WPF Toolkit DataGridCell Style DataTrigger

别等时光非礼了梦想. 提交于 2019-12-22 10:59:29
问题 I am trying to change the color of a cell to Yellow if the value has been updated in the DataGrid. My XAML: <toolkit:DataGrid x:Name="TheGrid" ItemsSource="{Binding}" IsReadOnly="False" CanUserAddRows="False" CanUserResizeRows="False" AutoGenerateColumns="False" CanUserSortColumns="False" SelectionUnit="CellOrRowHeader" EnableColumnVirtualization="True" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"> <toolkit:DataGrid.CellStyle> <Style TargetType="{x:Type toolkit

How to see components in toolbox after adding a new reference?

会有一股神秘感。 提交于 2019-12-22 09:55:06
问题 In my project I add reference on the WPFToolkit assembly, restart Visual Studio and has not seen WPFToolkit components in my VS ToolBox window. What I do wrong? 回答1: Toolbox doesn't automatically pick up components/controls in referenced assemblies. It does however automatically pick up components/controls that are built in your projects. You can right click the toolbox and choose "Customize" and you will get a dialog that lets you browse to the assembly and check off any controls that you

How to turn off animations in WPF Toolkit charts

主宰稳场 提交于 2019-12-22 07:59:12
问题 Is there a way to turn off the animations in Xaml directly? The animations are really sluggish as my chart has many points. 回答1: i have downloaded the latest source code at http://wpf.codeplex.com/SourceControl/list/changesets my idea is, to remove the animation by changing the style for the different chart series (chart points, DataPointStyle) example for charting:PieDataPoint try to remove the animation for the shown data and take your own style with a given key (x:key="myStyle" ->

MvvmLight EventToCommand and WPFToolkit DataGrid double-click

拜拜、爱过 提交于 2019-12-22 06:58:31
问题 Trying to figure out how to use EventToCommand to set a datagrid double click handler for rows. The command lives in the viewmodel for each row. Just that much out of my experience, since I haven't used interactions yet. Thanks. I would have used mvvmlight tag, but I don't have high enough rep yet to make new tags. 回答1: This would be the solution if the Command lives on the "GridVieModel" and not on the "RowViewModel". <Window... ...xmlns:dg="clr-namespace:Microsoft.Windows.Controls;assembly

WPF Toolkit Datagrid - Custom Tabbing

拥有回忆 提交于 2019-12-22 04:11:29
问题 I have a WPF Toolkit DataGrid with 3 columns. Only the third column allows data entry - the first two are static (Text descriptions). Is it possible to control tabbing and navigation such that the tab and up-down-left-right buttons will ignore the first two columns and operate within the confines of the third? 回答1: You can disable tabbing on the first two columns with the IsTabStop property. Unfortunately this isn't as easy to access as some of the other WPF controls so you have to set it via

WPF Toolkit Datagrid - Custom Tabbing

蹲街弑〆低调 提交于 2019-12-22 04:11:21
问题 I have a WPF Toolkit DataGrid with 3 columns. Only the third column allows data entry - the first two are static (Text descriptions). Is it possible to control tabbing and navigation such that the tab and up-down-left-right buttons will ignore the first two columns and operate within the confines of the third? 回答1: You can disable tabbing on the first two columns with the IsTabStop property. Unfortunately this isn't as easy to access as some of the other WPF controls so you have to set it via