wpftoolkit

Two LineSeries with the same Y Axis in WPF Toolkit charts

你。 提交于 2019-12-10 22:26:17
问题 I want to do the following with the WPF toolkit charts: I have two line series that should use the same y axis (i.e I want them both to be on the same scale). I could give each of them the same axis definition so they would overlap (and then have one of them with collapsed visibility), but that is not my best choice. This is the solution I'm talking about: <charts:LineSeries Name="ExternalMeasureSeries" IndependentValueBinding="{Binding Time}" DependentValueBinding="{Binding ExternalMeasure}"

WPF toolkit wizard access controls from the pages in my code

早过忘川 提交于 2019-12-10 16:19:33
问题 In my XAML file, I have a Wizard defined like this <Window.Resources> <xctk:Wizard x:Key="wizard" FinishButtonClosesWindow="True" HelpButtonVisibility="Hidden"> Then, I have a 2 or 3 pages and a few controls to request input from the user. I would like to disable the next button until the text inputs are filled and I would like to access the information from the fields once the wizard is done. I tried setting the x:Name property of my input controls and then maybe do something with those but

Resize Datagrid Height after deselecting a RowDetailsTemplate

淺唱寂寞╮ 提交于 2019-12-10 14:55:31
问题 I am using RowDetailsTemplate to display a nested datagrid for a row. Now the datagrid expands in height when I select a row to show this nested datagrid. But it doesn't reduce its height when the row is deselected. Is there a way to resize the datagrid to its original height after the row details have been collapsed? Is it possible to do it declaratively? 回答1: Place detail into StackPanel and grid with this this Behaviour: public class DataGridDetailResizeBehavior : Behavior<FrameworkElement

How do I set TargetNullValue to a date?

妖精的绣舞 提交于 2019-12-10 13:52:44
问题 I'm using the WPF toolkit's Calendar control to allow users to select a date. If the date is not yet selected then the property the SelectedDate is bound to is Null. This makes the Calendar default you January 1, 0 AD. I'd like to do something like SelectedDate="{Binding UserPickedDate, TargetNullValue=Today, Mode=TwoWay}" But both "Today" and "Now" throw binding errors. Can I use TargetNullValue to set the default date to Today or Now? 回答1: Try this: xmlns:sys="clr-namespace:System;assembly

wpf toolkit line chart without points and with different line colors

佐手、 提交于 2019-12-10 12:47:44
问题 I have some chart and I want to add dynamicly LineSeries without DataPoints, just lines with some custom colors. The only way I found to hide data points is: Style style = new Style(typeof(LineDataPoint)); style.Setters.Add(new Setter(LineDataPoint.TemplateProperty, null)); var series = new LineSeries() { Title = name, DependentValuePath = "Y", IndependentValuePath = "X", ItemsSource = new ObservableCollection<FloatingPoint>(), DataPointStyle = style, }; Unfortunately when I do this all lines

Get Toolkit Style Window with WPF

a 夏天 提交于 2019-12-10 11:35:21
问题 I am using the WPF toolkit and the WPF toolkit extended and notice that when I display a message box via: MessageBox.Show("..."); I get the following... I would like to make my main application window use this styling as well. Is there a way to do it? EDIT: I've tried WindowStyle="ToolWindow" and it doesn't work. Edit: In response to the answer below, please see picture below: Also, I would like it to have a maximize and minimize button but with the same style as the button for close. Thank

how to get the wpf toolkit datagrid to show new rows when bound to dataset

拜拜、爱过 提交于 2019-12-10 11:16:22
问题 Is there a way to get the wpf toolkit DataGrid to show new rows when its bound to a DataSet ? In other words, I have a DataGrid , I've set its ItemsSource to a DataTable , and everything seems to work fine, except I can't get the grid to show rows that I add to the DataTable programatically. 回答1: You can set the datagrid.ItemsSource to an ObservableCollection<T> . ObservableCollection<YourItem> items = new ObservableCollection<YourItem>(); yourDataGrid.ItemsSource = items; Then you should be

WPF Toolkit Chart: Positions of Data Point Visualization shifted when changing data values

风流意气都作罢 提交于 2019-12-10 02:56:37
问题 I use a WPF Toolkit chart to display several line series with data points. I have created styles for the LineDataPoints that use a canvas on which symbols (like a circle) are drawn. Here's one of the style definitions: <Style x:Key="CircleDataPointStyleRed" TargetType="chartingToolkit:LineDataPoint"> <Setter Property="Background" Value="Red" /> <Setter Property="IsTabStop" Value="False" /> <Setter Property="Width" Value="10" /> <Setter Property="Height" Value="10" /> <Setter Property=

Displaying read only properties in PropertyGrid control

自古美人都是妖i 提交于 2019-12-09 17:07:18
问题 I am using the WPF Extended Toolkit to display the properties of a Team object. Now one of these properties is a collection Persons . No problem I get a nice drop down, which when I click on shows me the names and ages of each of these people. Now the problem is that I don't actually want to expose my Collection as public. However as soon as I make its setter private the property is disabled preventing the user from seeing the Person collection and the person details: How should I display my

AutoCompleteBox not found in wpf toolkit using visual studio 2012

好久不见. 提交于 2019-12-09 09:18:52
问题 This is really a wanted feature, AutoCompleteBox (not AutoCompleteComboBox apparently). However, visual studio 2012 cannot find the AutoCompleteBox control. But I have not tried in earlier version of vs, so it may not be a version matter. I installed wpf toolkit, added those extensions to my WPF project: WPF Toolkit WPF Toolkit Design WPF Toolkit Input Design WPF Toolkit Input Visual Studio Design WPF Toolkit Layout WPF Toolkit Layout Visual Studio Design WPF Toolkit Visual Studio Design.