wpftoolkit

Limitations of using .NET 2.0 (Windows Forms) controls in WPF?

与世无争的帅哥 提交于 2019-12-21 17:40:13
问题 I want to start a new application on WPF. The new User interface in WPF needs DataGridView control and PropertyGrid Control. But it looks like that these two controls won't exist in WPF and I want to host these two controls using WindowsFormsHost . However, if I do that, is there any limitation anybody forsee with this approach? 回答1: The main limitation is that you loose all the powerful features of WPF: Data binding , ControlTemplates and DataTemplates , Infinite sizing, Zooms/Rotations,

How to animate the background of a textblock when changing the value of the bound property?

那年仲夏 提交于 2019-12-21 16:58:43
问题 I have a pretty simple wpftoolkit:datagrid to show stock market bid and ask. My grid is bound to an ObservableCollection<PriceViewModel> . My PriceViewModel implements INotifyPropertyChanged . The grid correctly updates and I have managed to get the background color to animate but it is intermittent in apply the animation. Below is the XAML and snippet of the view model class. The idea is just to color red when a price update is lower than the previous and green when it's higher...nothing too

Why can't I bind the WPFToolkit DataGrid ItemSource to DataTable?

不打扰是莪最后的温柔 提交于 2019-12-21 04:27:11
问题 In a Telerik control, I was able to bind a DataTable directly to the ItemSource , but when I switched to the Codeplex WPFToolkit Datagrid : <dg:DataGrid Name="theGrid"/> --- theGrid.ItemsSource = dt; I get this error: Cannot implicitly convert type 'System.Data.DataTable' to 'System.Collections.IEnumerable'. How can I bind the DataTable to the WPFToolkit DataGrid ? 回答1: You'll have to project your datatable into something that implements IEnumerable as that is waht the DataGrid expects. The

Is it possible to rearrange tab items in tab control in wpf?

冷暖自知 提交于 2019-12-20 10:39:23
问题 Is it possible to rearrange tab items in tab control in run time? For example I have 3 tab items which are about cars and 4 tabs about house. I want to be able to rearrange them using drag and drop. Is it possible or it is something fantastic? I have Tab Control here is XAML. <TabControl x:Name="tc" Visibility="Collapsed" GotFocus="Focus" AllowDrop="True" > </TabControl> Tab items will be added in runtime. Thanks for helping me! 回答1: found a solution in the MSDN forum. Here is the link:

The type toolkit:BusyIndicator was not found

大城市里の小女人 提交于 2019-12-19 18:18:47
问题 I'm working on a WPF project with the beginning of a UserControl defined as: <UserControl x:Class="" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:converters="clr-namespace:.Modules.Converters" xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended"

The type toolkit:BusyIndicator was not found

北城余情 提交于 2019-12-19 18:18:09
问题 I'm working on a WPF project with the beginning of a UserControl defined as: <UserControl x:Class="" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:converters="clr-namespace:.Modules.Converters" xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended"

WPFToolkit DataGrid: Combobox column does not update selectedvaluebinding immediately

眉间皱痕 提交于 2019-12-19 07:49:11
问题 I'm using WPF Toolkit DataGrid and DataGridComboBoxColumn. Everything works well, except that when selection change happens on the combobox, the selectedvaluebinding source is not updated immediately. This happens only when the combobox loses focus. Has anyone run into this issue and any suggestions solutions ? Here's the xaml for the column: <toolkit:DataGridComboBoxColumn Header="Column" SelectedValueBinding="{Binding Path=Params.ColumnName, UpdateSourceTrigger=PropertyChanged}"

WPF DataGrid: How do you get the content of a single cell?

ぃ、小莉子 提交于 2019-12-19 06:55:27
问题 How do you get the content of a single cell of a WPF toolkit DataGrid in C#? By content I mean some plain text that could be in there. 回答1: Following what Phillip said - the DataGrid is usually data-bound. Below is an example where my WPF DataGrid is bound to an ObservableCollection<PersonName> where a PersonName is comprised of a FirstName and LastName (both strings). The DataGrid supports automatic column creation so the example is quite simple. You'll see that I can access rows by their

How do I Get a WPF DataGrid to Save Changes Back to the DataBase?

◇◆丶佛笑我妖孽 提交于 2019-12-18 15:55:04
问题 How do I get a WPF DataGrid to save changes back to the database? I've data-bound my DataGrid control to a DataTable object, and populated that table with a very simple SELECT query that retrieves some basic information. The data shows up just fine in the control. But when I use the control to edit the data, the changes are not pushed back to the DB. Does anyone know what I'm missing? 回答1: Performing Updates When the user edits the Customers data within the DataGrid, the bound in-memory

DatePicker.SelectedDate not changing when Text is input

冷暖自知 提交于 2019-12-18 15:05:24
问题 When my users select a date via the Calander control within the DatePicker, the value gets correctly bound to the underlying object. BUT, if the user types the date within the DatePicker, then clicks a button, the text is not set to the SelectedDate property. The user has to remove the cursor from the TextBox within the DatePicker for the bound object to be updated. <toolkit:DatePicker Name="_dpField" Grid.Column="1" MinWidth="100" ToolTip="{Binding Path=ToolTipText}" TextInput="_dpField