wpftoolkit

WPF - ScrollView Confusion

孤人 提交于 2021-02-19 02:36:33
问题 I am new to WPF and the ScrollViewer is frustrating me. Either I just don't "get" it, or it is a limited control. Here are my Frustrations: Bad Horizontal Scrolling The horizontal scroll bar is only visible at the bottom of the list (I have to scroll to the bottom to see it) Bad Borders I have a ListBox in my ScrollViewer. When I start the bottom of the list has no border and when I scroll down, the top border (line) of the list box disappears. I can kind of understand this, but attempts to

WPF: One-way binding on entire DataGrid

跟風遠走 提交于 2021-02-11 05:16:52
问题 Is there a way to mark the entire DataGrid as one-way binding? 回答1: You can create a new class such as OneWayExtension that inherits binding. public class OneWayExtension : Binding { public OneWayExtension() : base() { Initialize(); } public OneWayExtension(string path) : base(path) { Initialize(); } private void Initialize() { this.Source = YourSourceOrMakeThisAParameter; this.Mode = BindingMode.OneWay; } } You can then call this by {local:OneWay PathOfData} 回答2: I know this is already

WPF: One-way binding on entire DataGrid

走远了吗. 提交于 2021-02-11 05:08:41
问题 Is there a way to mark the entire DataGrid as one-way binding? 回答1: You can create a new class such as OneWayExtension that inherits binding. public class OneWayExtension : Binding { public OneWayExtension() : base() { Initialize(); } public OneWayExtension(string path) : base(path) { Initialize(); } private void Initialize() { this.Source = YourSourceOrMakeThisAParameter; this.Mode = BindingMode.OneWay; } } You can then call this by {local:OneWay PathOfData} 回答2: I know this is already

Category Ordering In Xceed PropertyGrid

断了今生、忘了曾经 提交于 2020-04-30 05:06:53
问题 I am using PropertyGrid of Xceed to display characteristics of some elements. There are different categories for element like: General, Advanced, Others, Special. Here, I found that the Xceed's propertygrid sorts the category as well as property in alphabetical order. I was able to sort the properties inside the categories by using [PropertyOrder(n)] . I also wanted to sort the categories so, I tried using CategoryOrder like [CategoryOrder("General", 0)] but it shows the following error:

Binding update adds news series to WPF Toolkit chart (instead of replacing/updating series)

大兔子大兔子 提交于 2020-02-20 10:25:08
问题 I'm currently recoding a bar chart in my app to make use of the Chart class in the WPF Toolkit. Using MVVM, I'm binding the ItemsSource of a ColumnSeries in my chart to a property on my viewmodel. Here's the relevant XAML: <charting:Chart> <charting:ColumnSeries ItemsSource="{Binding ScoreDistribution.ClassScores}" IndependentValuePath="ClassName" DependentValuePath="Score"/> </charting:Chart> And the property on the viewmodel: // NB: viewmodel derived from Josh Smith's BindableObject public

How to make a ButtonSpinner's buttons not close the Popup in which it is placed?

最后都变了- 提交于 2020-02-07 05:21:51
问题 I have a RepeatButton inside the template of a ButtonSpinner inside a Popup. When I click it, I want the Popup to remain open but it closes. The reason for which I use this template is exactly to solve this issue. Screenshot: The OnMouseLeftButtonUp event handler marks the MouseLeftButtonUp event as handled here. I thought about using e.Handled = true in an event handler, but I am not sure about it and that the order of events is this: PreviewMouseLeftButtonDown MouseLeftButtonDown

Nested WPF DataGrids

安稳与你 提交于 2020-02-02 01:51:21
问题 I have a DataGrid (from the toolkit) and I want to nest another DataGrid in the DataGrid.RowDetailsTemplate. The trick is I want to bring back the data from one table in the main grid and then based on row selection go and get additonal detail from a different table and show it in the DataGrid in the detail template. This is easy enough to do in 2 seperate DataGrids but I am having trouble getting it to work with the nested version. Is this even possible? If so, could someone point me in the