wpftoolkit

Emptying WPF datagrid in codebehind

In WPF, I am using the DataGrid from WPF toolkit.Can anyone tell me how can i empty the data in the datagrid in codebehind ? ...

Binding DataGridComboBoxColumn ItemsSource to RelativeSource FindAncestor doesn't work

Hello, I'm trying to use WPFToolkit's DataGrid control (and C#/.Net 3.5) to display a ComboBox per record. With the below code, the ComboBoxes show up but their drop-downs contain no items: <wpftkit:DataGrid ItemsSource="{Binding TransactionToEdit.SisterTransactions}" AutoGenerateColumns="False"> <wpftkit:DataGrid.Columns> ...

DataGrid - Displaying Running Total From Top of Grid Through Current Row

Hello, How would I display a running total for a particular column of each record that is displayed in a DataGrid? I'd like to keep the computation logic in the view model. Desired Output: Value | Running Total 25 25 10 35 -2 33 Thank you, Ben Edit: Keep in mind that when a user-triggered DataGri...

WPF Toolkit Accordion - How To Data Bind

Hi I have been trying (and failing) to dynamically create an accordion using databinding. I have a collection called MenuGroups, which contains a string 'ModuleName' and an IList collection called MenuItems. I wish to bind the MenuGroups to the headers and the MenuItems to the content. The closest I have managed so far uses this XAML:...

WPF datePicker need help..

Hi do we read a value entered manually from keyboard in Datepicker of WPF toolkit ?i have tried .text property but it capture the last value entered by datepicker calender ...thanks ...

Is the “VistaBridge” compatible with Windows XP?

Hi everyone, I'm wondering if VistaBridge is compatible with Windows XP? I'm running Windows 7 so I can't test it. Have you tried it on Windowx XP? Please let me know. Nam. ...

How to turn off animations in WPF Toolkit charts

Is there a way to turn off the animations in Xaml directly? The animations are really sluggish as my chart has many points. ...

File uploader in WPF

Hi All, I'm trying to create a custom file upload control in WPF 4.0 and I'm stuck in one point. I'm not able to save file in my solution folder after browsing the file. Below code I'm using for Browsing private void btnBrowse_Click(object sender, RoutedEventArgs e) { // Create OpenFileDialog Microsof...

WPF - how to change XAML and get an immediate view of the affect in VS2010 without compiling/running?

Is there a way to get an immediate feedback/view of the impact of changing XAML in a WPF application? i.e. without having to recompile/run? In VS2010. In particular I ask this as I'm using the Charting from the WPF Toolkit library, and I'd like to be able to see the change in the UI I make after changing various charting sytles et...

I can't reach to bind an object to a datagrid

Hello, I'm a begginer in WPF and c#. I have a simple WPF application in which there is a datagrid. I want to populate it when I click a button: private void buttonTest_Click(object sender, RoutedEventArgs e) { File files = new File(this.textBoxScegliSorgente.Text, datePicker.SelectedDate.Value); this.dataGridEl...

How can we use datagrid in wpf?

How can we use datagrid in wpf? I can not see the datagrid control in framework 3.5. ...

DatePicker day colors WPF 4

I have the following style for the text block in the dictionary <Style TargetType="{x:Type TextBlock}"> <Setter Property="HorizontalAlignment" Value="Left" /> <Setter Property="VerticalAlignment" Value="Center" /> <Setter Property="Margin" Value="5,0,0,0 "/> <Setter Property="Foreground" Value="White" /> </Style> after...

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

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 u...

Updating an ObservableCollection in WPF causes screen flicker; How can I prevent it?

I have an ObservableCollection bound to a WPFToolkit DataGrid in an MVVM pattern. Every 30 seconds I have a background thread that is querying a service for some data. When it returns, it marshals it to the UI thread and updates the ObservableCollection by first calling Clear() on the collection and then calling Add() for each item. When...

How to increase the particular row height in the WPF DataGrid when mouse is over that row.

Hi, I want to increase the particular row height to twice in the WPF DataGrid when mouse is over that row but the remaining rows height should not be changed. When the mmouse moves over on the another row only that row height should be double and the previuos row height should become normal. Please let me know how to do this. Previous...

Sort of LineSeries WPF Charting Control

hi, i am plotting a LineSeries in the WPF Charting Control. by default the dataPoints in the LineSeries are sorted based on x-Axis value. how can i disable or change to it to some custom value? Thanks Naresh ...

How to set row Background color for WPF DataGrid Programmatically (WPF & C#) based on the value in the DataGrid

Hi, I have a WPF Datagrid binded with list of interface objects. Consider, ClsEmployee class implements I_Employee interface with properties Empl_Id, Empl_Name, Department, Address and City_name. List _emplList; consider, _emplList has 10 items. dgEmployeeGrid.ItemsSource = _emplList; Question: Now, if the user clicks on a button, t...

Validate DataGridTextColumn with ValidatesOnExceptions=True after converting data from String to Integer

Hi, I have a WPF DataGrid With a Text Column. DataGrid is binded with a LIST<> and DataGridText Column is binded with a String Property but the value in this property can be only Numeric. But the Numeric validation on the DataGridTextColumn can't happen with the String value. So i have converted the value from String to Integer using a ...

Controls available on WPF tab are not getting displayed

I am new to WPF and facing some wierd issue. I have designed a screen having a tab control. Tab control has two tabs and each tab item has few controls on it. The issue is; When I open same solution from different machine I am not able to navigate between these two tabs in design time but on machine (on which I have designed screen) it ...

WPF Toolkit's DataGrid sort, change reflect to the data source ?

Hi, When I sort one of the columns (click the header column) in DataGrid, does the change on UI (the row order) reflected back to the data source ? I use List object as source. ...