wpftoolkit

wpf toolkit rating size

佐手、 提交于 2019-12-02 09:32:20
I'm using a rating control (from wpf toolkit) in my application. Is there any way I can scale this control? The rating stars are too big for my application.. I tried setting the height or width but that just cuts the stars but doens't resize them: Rating ratingControl = new Rating(); ratingControl .ItemsSource = ratingItems; ratingControl.Width = 50; ratingControl.Height = 10; // --> this doesn't change the size of the stars Greets Daan i dont know the rating control, but if you wanna scale something in wpf you can simply use ScaleTransform <Rating> <Rating.LayoutTransform> <ScaleTransform

checkbox like radiobutton wpf c#

感情迁移 提交于 2019-12-02 08:18:44
问题 i have investigated this problem but this is solved in design view and code-behind. but my problem is little difference: i try to do this as only code-behind because my checkboxes are dynamically created according to database data.In other words, number of my checkboxes is not stable. i want to check only one checkbox in group of checkboxes. when i clicked one checkbox,i want that ischecked property of other checkboxes become false.this is same property in radiobuttons. i take my checkboxes

wpf toolkit chart rotate axis

这一生的挚爱 提交于 2019-12-02 07:29:30
How do you rotate the text in the axis from horizontal to vertical? I cant do it through xaml because I am a creating multiple series on the fly and I do not know up front how many I will have until after the control populates. I need to display the dates vertical or at a slant and not horz. Thank you again. This post explains how to rotate the labels in a manner that works for both WPF and Silverlight http://blogs.msdn.com/b/delay/archive/2010/03/06/turn-your-head-and-check-out-this-post-how-to-easily-rotate-the-axis-labels-of-a-silverlight-wpf-toolkit-chart.aspx becomes Not sure if you have

Adding events on WPF LineSeries DataPoint

南笙酒味 提交于 2019-12-02 07:13:34
问题 I am using WPF Toolkit to draw a line chart (a feature on our application). Given a Collection, I am able to plot the graph, however, when the user double clicks on the DataPoint on the graph, I am finding it difficult to get the X and Y data value (not the Co-Ordinate value in the line graph). I am able to set property using DataPointStyle, but unable to add event to it. If I use MouseDoubleClick="lineChart_ShowResults_DoubleClick" property on the LineSeries node, then it triggers an event

Unable to display data in a WPF datagrid that has a DataView instance as the items source

好久不见. 提交于 2019-12-02 06:00:35
问题 I am using a DataGrid object from the WPF toolkit. I am binding the DataGrid object to the default view of a DataTable instance as declared in the following code: WeatherGrid.ItemsSource = weatherDataTable.DefaultView; weatherDataTable has three columns. The first column is defined to contain a string data type. The other two columns are defined to contain double data types. When the application exits the function that calls the binding as expressed in the declaration, The DataGrid object

Showing busy indicator on a STA thread

谁都会走 提交于 2019-12-02 04:35:28
I have a long operation wehre I'd like to show the Extended Toolkits busy indicator. I made a previous post about this and it was fixed Wpf Extended toolkit BusyIndicator not showing during operation . However, during that call I have to interact with a UI element (canvas) and I get a "The calling thread must be STA, because many UI components require this". I understand (now) that a background worker(see code): private void CboItemId_SelectionChanged(object sender, SelectionChangedEventArgs e) { BackgroundWorker _backgroundWorker = new BackgroundWorker(); _backgroundWorker.DoWork += new

Adding events on WPF LineSeries DataPoint

╄→гoц情女王★ 提交于 2019-12-02 03:24:34
I am using WPF Toolkit to draw a line chart (a feature on our application). Given a Collection, I am able to plot the graph, however, when the user double clicks on the DataPoint on the graph, I am finding it difficult to get the X and Y data value (not the Co-Ordinate value in the line graph). I am able to set property using DataPointStyle, but unable to add event to it. If I use MouseDoubleClick="lineChart_ShowResults_DoubleClick" property on the LineSeries node, then it triggers an event when user clicks on any point. But, I need to trigger the event only if the user clicks on the DataPoint

Unable to display data in a WPF datagrid that has a DataView instance as the items source

天大地大妈咪最大 提交于 2019-12-02 00:54:28
I am using a DataGrid object from the WPF toolkit. I am binding the DataGrid object to the default view of a DataTable instance as declared in the following code: WeatherGrid.ItemsSource = weatherDataTable.DefaultView; weatherDataTable has three columns. The first column is defined to contain a string data type. The other two columns are defined to contain double data types. When the application exits the function that calls the binding as expressed in the declaration, The DataGrid object displays data for the first column, but not the other columns. When I type the following in the immediate

Changing the arrow color in WPF Toolkit NumericUpDown control?

安稳与你 提交于 2019-12-02 00:26:25
Is there a way with a style to target the arrows in the NumericUpDown control from the WPF Toolkit? I want to change the color of the arrows. You can override the GlyphNormalForeground color. you will have to add the Xceed.Wpf.Toolkit.Themes xmnls namespace to your xaml. (or WpfToolkit.Themes if your using the old version) Example: <Grid> <wpfToolkit:IntegerUpDown Margin="37,25,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" > <wpfToolkit:IntegerUpDown.Style> <Style TargetType="{x:Type wpfToolkit:IntegerUpDown}"> <Style.Resources> <SolidColorBrush x:Key="{x:Static theme:ResourceKeys

WPF DataGrid: How do you iterate in a DataGrid to get rows and columns?

本秂侑毒 提交于 2019-12-01 23:59:41
问题 How can you iterate in the rows and columns of a WPF DataGrid like with a Forms DataGridView in C# ? For example, if you have Forms DataGridView you can do something like this: for(int i = 0; i < formsDataGrid1.Rows.Count; i++) { MessageBox.Show(formsDataGrid1.Rows[i].ToString()); for(int j = 0; j < formsDataGrid1.Columns.Count; j++) MessageBox.Show(formsDataGrid1.Rows[i].Cells[j].ToString()); } Thank you for any help! **Edit: The reason I want to do this is that the DataGrid will be used by