wpftoolkit

WPF toolkit DataGrid - space after the last row on Scrolling

╄→гoц情女王★ 提交于 2019-12-13 16:08:31
问题 I am creating a wrapper for Datagrid. Main point is to have possibility to set summary/footer rows at the end. Generally I've solved this task, but I have a space between the last row and the datagrid's footer (only if I have more rows than can be displayed without scrolling). Of course I can set ScrollViewer.CanContentScroll="False" but it will cause performance problems. Is it possible to configure datagrid to scroll smoothly to the last row? and here no problem if we are not at the last

WPF Datagrid. Get the values of each cell of the selected row

a 夏天 提交于 2019-12-13 15:12:55
问题 I'm using the WPF toolkit DataGrid. How can I get the values of the cells of the selected rows? 回答1: In WPF rows represent objects in a list and columns are object's properties. It depends on what DataGrid.ItemsSource is.If your ItemSource is an array of BindedClass you could get selected object by: BoundClass bc = (BoundClass)dataGridControl.SelectedItem; var prop1 = bc.Prop1; var prop2 = bc.Prop2; 来源: https://stackoverflow.com/questions/1570929/wpf-datagrid-get-the-values-of-each-cell-of

Gridsplitter in a Grid with an ItemsControl

微笑、不失礼 提交于 2019-12-13 14:32:18
问题 I'm trying to make a PropertyGrid Custom Control. The PropertyGrid will be very similar to the PropertyGrid used in Visual Studio. I've tried using the PropertyGrid of the Extended WPF Toolkit but you have to specify the category of a property with an attribute and we need to change the categories runtime. Which as far as I know is impossible with attributes. So I'm making the PropertyGrid myself. This is my code so far: The Generic.xaml: <ResourceDictionary xmlns="http://schemas.microsoft

How to align WPF Toolkit Color Picker position just below Toolbar control

好久不见. 提交于 2019-12-13 03:49:47
问题 Question : How can we align famous WPF Toolkit Color Picker position just below to WPF's Toolbar control? Or, could we include Color picker in the toolbar itself? The idea is to let the Color Picker appear when user clicks on the "Color" button shown in the toolbar below, but that I can accomplish using C# code. So far, I've gotten this close by using the XAML shown below: XAML : <Window x:Class="WpfApp_ExceedToolkit_test.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml

WPF toolkit charting Lineseries styling

房东的猫 提交于 2019-12-13 02:59:35
问题 Is it possible to change the thickness of the LineSeries? Is it possible to show LineSeries as dashed lines? I have othe question about AreaSeries, no matter what all my Area Series are drawing from x-Axis. What I want is that I can draw let say a area for these four point (2,2), (2,6), (8,6), (8,2). How can I manage it? 回答1: For setting the thickness and dashed line style of a LineSeries, use a Style like the one shown here: <Window.Resources> <Style x:Key="DashedPolyLine" TargetType="{x

DateTime picker C# format

耗尽温柔 提交于 2019-12-12 15:22:51
问题 I have a DateTime picker to add arrival time to a list, I have 2 questions about it: How can I get it to show dates like 12-Jan-2012 Instead of 12/01/12 ? How can I get it to show the time after the date but not the current time, as thats what is shows atm. My current code is not very advanced its just: theVisit.ArrivalTime = DateTimePicker1.Value 回答1: Something like this will display the date and time: DateTimePicker1.Value.ToString("d-MMM-yyyy hh:mm:ss"); To override the default

WPF Toolkit DataGrid Multi-Select: How to get SelectedItems out?

ぐ巨炮叔叔 提交于 2019-12-12 10:37:03
问题 I'm using the WPF Toolkit's DataGrid. I've enabled the property on the DataGrid to allow for multi-selecting of rows. How do I get the SelectedItems out? I'm using an MVVM framework to bind my ViewModel to my View. Thanks! 回答1: Taking Bill's answer, merging options 1 and 2, adding a sprinkling of attached properties as an alternative to writing code-behind, I came up with a Behavior. Firstly, we have the behavior: Public Class SelectedItemsBehavior Public Shared ReadOnly

Visual Studio Hangs in WPF Design View - “.NET Runtime version 2.0.50727.3053 - Fatal Execution Engine Error (7A2E0F92) (0)”

六眼飞鱼酱① 提交于 2019-12-12 04:55:33
问题 I've encountered an issue where Visual Studio hangs in WPF design view. I've read through similar posts and I believe my issue is similar, but different. The errors I see in Windows Event Viewer are below. Hanging application devenv.exe, version 9.0.30729.1, hang module hungapp, version 0.0.0.0, hang address 0x00000000. .NET Runtime version 2.0.50727.3053 - Fatal Execution Engine Error (7A2E0F92) (0) I've noticed that the issue only occurs when I have the Properties window open during design

wpf toolkit datetimepicker how to change color of spinner

给你一囗甜甜゛ 提交于 2019-12-12 04:05:42
问题 How can I change the color of the spinner-arrows for the DateTimePicker from xceed WPF Toolkit? I cant find a Property where the set the color for the arrows. Do i need to override the whole ButtonSpinner to do so? If yes how can I do that, I still a beginner at WPF and if I simply try to copy the sourcecode from the ButtonSpinner reference page Visual Studio complains that the term "ResourceKeys does not exist in the namespace" of themes 回答1: I have written spinner button style as follows

WPF Toolkit DataGrid - Finding only visible/currently viewable rows

谁说我不能喝 提交于 2019-12-12 01:58:55
问题 I'm using the WPF Toolkit's DataGrid to display a set of search results. As per then scenario in my other question I want to be able to pre-fetch secondary results for each of my viewable (that is, within the visible scroll area) rows in the datagrid. I want to be able to: Query "viewable" rows Raise an event when rows become visible (via vertical scrolling) NOTE: Possible duplicate? [But without validated answer/outcome] - Anyone have any links/code samples to achieve this? 回答1: I have