wpftoolkit

Unable to add AutoCompleteBox to toolbox or handcrafting XAML

扶醉桌前 提交于 2019-12-11 21:11:28
问题 I'm trying to use the AutoCompleteBox control from the february release of WPFToolkit. I install the toolkit using the .msi file, add the assembly reference, and only two new controls appears in my toolbox: Calendar and Datepicker. I then tried to handcraft the XAML as shown in WPF: AutoComplete TextBox, ...again, but once again, the AutoCompleteBox is missing. Also, since I've installed WPFToolkit, my toolbox has some strange behavior, like deleting all elements and not letting me add any

Why did my DataGrid styling break when upgrading from .NET 3.5 w/ WPF Toolkit to .NET 4.0?

怎甘沉沦 提交于 2019-12-11 17:30:06
问题 I just converted a WPF project from .NET 3.5 to .NET 4.0. I'm now using the .NET 4.0 DataGrid control rather than the WPF Toolkit DataGrid control. Functionally, everything is still working, but my styles are not applying as expected. As you can see from the below screen captures, the alternating row formatting, padding, bold headings, etc. have stopped working. Before (WPF Toolkit DataGrid) After (.NET 4.0 DataGrid) Here is my entire resource dictionary. <ResourceDictionary xmlns="http:/

How to I manipulate cell data being displayed in WPF Toolkit DataGrid at runtime?

烈酒焚心 提交于 2019-12-11 16:56:53
问题 The following WPF code displays the contents of FirstName and ZipCode in the WPF Toolkit DataGrid . However, I don't want to just display the data as it is but slightly modified , e.g. I might want to display all the zipcodes to display with a "-0000" on the end, or I may want to display " n/a " if a cell is blank. I could only find CopyingCellClipboardContent which doesn't seem to do what I want. I'm thinking I might need a Converter but am not sure how to go about it in this example. How

How can/could/might you bind WPF DataGrid to a List of objects each with some values in a Dictionary<string,string>?

房东的猫 提交于 2019-12-11 16:45:24
问题 major edit of a tumbleweed, may remain a tumbleweed... If I have a list of Customers and the data for each Customer is contained in a Dictionary how can I bind the list to the DataGrid so that each string key is a column? Edit: N.B. I know it's not a nice way to design a Customer class. e.g. public class Customer{ public int Id{get;set;} private Dictionary<string,string> values; public Dictionary<string,string> Values{get {return values;}} public Customer(int id){ this.Id = id; values["Name"]

scrollable gridview with fixed searched row in datagrid using wpf

谁说我不能喝 提交于 2019-12-11 14:11:37
问题 I'm trying to implement a "find" feature where the user can enter a value in a textbox (outside of the grid) then click a button to find the row that matches the search criteria. if the search item is found in the gridview that searched record has been fixed at top of the gridview and the remaining records are scrollable except the searched record . i need to show this criteria in wpf .please any one suggest me... Thank you in advance.. 回答1: You will have a data grid on your view (xaml and

Adding a TextBlock (or label) on the end of a LineSeries DataPoint of a DataVisualizationChart

旧时模样 提交于 2019-12-11 09:16:46
问题 I'm creating a User Control componente of type DataVisualization.Chart. Right now, he accepts 4 range limits (1 range minimum of accept value and 1 maximum, also 1 range minimum of warning value and 1 maximum warning range value). So far, so good. It works. But i need to add a TextBlock (or label, or TextBox, whatever) at the end of the LineSeries. This is my actual LineSeries: Now i need to make something like this: Even if the result is not the same, i need to put a label or textblock at

WPF Toolkit - how to refresh a chart

安稳与你 提交于 2019-12-11 08:03:45
问题 I just created a pie Chart with the WPF Toolkit. I wanted to create a AddIn for MS Dynamics NAV. If I call that method in NAV: public void setChart(string chartKey, float chartValue) { KeyValuePair<string, float> value = new KeyValuePair<string, float>(chartKey, chartValue); values.Add(value); } my Chart is not refreshing. My ObservableCollection is updating but it doesn't Show any Chart. If I just do setChart("AB123",60); to the constructor it works. How can I update the Chart. I also call

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

丶灬走出姿态 提交于 2019-12-11 07:34:29
问题 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. Previously i had the following solution. But here when the mouse over a particular row, the row height is doubled but the row is rendered. I don't want this concept, I want

How can you programmatically order categories in the Xceed PropertyGrid?

对着背影说爱祢 提交于 2019-12-11 04:49:09
问题 As shown in the example here, what I'm trying to achieve is ordering categories in the Xceed PropertyGrid control. As that example shows (copied here for reference), you can specify this information at compile-time by adding attributes to the class, like so... [CategoryOrder("General", 1)] [CategoryOrder("Advanced", 2)] [CategoryOrder("Other", 3)] public class MyClass { [Category("General")] public string Property1 { get; set; } [Category("Advanced")] public int Property2 { get; set; }

WPF Toolkit Datagrid Headers and Empty Source

亡梦爱人 提交于 2019-12-11 02:22:11
问题 How could I make the Datagrid display the headers in case there's no row to display? My Datagrid is "completely" read-only with: "AutoGenerateColumns ="True" "CanUserAddRows="False" "CanUserDeleteRows="False" "CanUserResizeRows="False" "IsReadOnly"="True" If there's no row, then the headers aren't displayed, if I add even an empty row, then the headers are shown! Until now, I couldn't find any workaround/solution for that! Thx all Fred 回答1: AFAIK If there are no rows then there are no columns