Click here to Skip to main content
15,868,016 members
Everything / WPF Toolkit

WPF Toolkit

WPF-Toolkit

Great Reads

by WyoMetz
Simple and easy paging of a WPF DataGrid with DataTable and LINQ queries
by Wade Harvey
This article shows how to use Winforms, WPF and C# to create a File Explorer Clone with Tabs and an extremely fast parallel file search utility.
by Peer Adi
A WPF application base solution using Castle Windsor and commonly used utilities.
by Mohamed Kalmoua
This article describes how to create a UWP application that uses a Window Runtime Component.

Latest Articles

by WyoMetz
Simple and easy paging of a WPF DataGrid with DataTable and LINQ queries
by Wade Harvey
This article shows how to use Winforms, WPF and C# to create a File Explorer Clone with Tabs and an extremely fast parallel file search utility.
by Mohamed Kalmoua
This article describes how to create a UWP application that uses a Window Runtime Component.
by Peer Adi
A WPF application base solution using Castle Windsor and commonly used utilities.

All Articles

Sort by Score

WPF Toolkit 

9 Apr 2012 by VJ Reddy
It seems you want to ask the above question to the author of this Code Project articleExtending the WPF Calendar Control[^]For this purpose if you post your query in the message board of the articleExtending the WPF Calendar Control - Comments and Discussions[^]using the Add a Comment...
16 Oct 2012 by Clifford Nelson
The easiest is just to use wpf printing (for example see http://www.switchonthecode.com/tutorials/printing-in-wpf[^]), then all you have to do is install something like cutepdf and let the user pring to a pdf file (http://cutepdf.com/[^]).
10 Dec 2012 by Jason Gleim
If you have added the converter and have not built the project, you will get that error. Any new classes you add to the project must be built before they will be picked up by the xaml interpreter.Secondly, make sure you don't have a namespace problem. For example, if you created a behaviors...
27 Mar 2013 by Irina Pykhova
you can't change collection inside foreach loop. Use something like while or for
28 Jan 2014 by Sergey Alexandrovich Kryukov
This is not as easy as it may seem. This is the short article starting with the phrase "Writing code for printing has a bad reputation." (true!): http://programming-pages.com/2012/06/12/printing-in-wpf[^].This open-source product can help you: http://wpfprintengine.codeplex.com[^].There...
11 Aug 2014 by Dave Kreskowiak
Just by the error message it is impossible to tell you what's wrong. There are a thousand different ways for you to run the machine out of memory.But, usually, this is because you either: A) Allocated objects but never released all references to them and continued to allocate more...
17 Dec 2022 by Graeme_Grant
LiveCharts - LiveCharts2[^] is very simple to use. The documentation is very good with code samples given. From their documentation, ref: samples.bars.withBackground - LiveCharts2[^] 1. ViewModel using CommunityToolkit.Mvvm.ComponentModel;...
1 Jan 2012 by Rajeev Jayaram
See this similar answer[^]
9 Feb 2012 by Christian Graus
First google hit[^]. If the newest version does not work, there's older ones for download on the right.
16 May 2012 by hunain.esh
I think this would be helpful to you:http://msdn.microsoft.com/en-us/library/bb310552.aspx[^]
22 May 2012 by xakpc
Hello.I need WPF DataGrid with 10 columns, where columns 5-10 have more than one subrow in the row. It should look like thiscol1| col2 | col3 |----|--------|--------|row1|subrow1 |subrow1 | |--------|--------| |subrow2 |subrow2...
16 Jan 2013 by josh-jw
check this link:How to Consume a Web Service in a WPF Application?[^]advantage of wpf:http://www.bbconsult.co.uk/Expertise/WebApplications/WhyWPF.aspx[^]
26 Mar 2013 by Lance Contreras
I have an ObservableCollection which I would bind to the ItemsSource and I have a property type of Tag which I will bind to the SelectedValue. Whenever I want to change the selected tab, I just set the selected value. Here's my dirty code. I hope this will help you with your problem.
7 Apr 2013 by Kenneth Haugland
It sound very much like something I have done before:WPF-Drawing Canvas Control[^]
8 Jul 2013 by Raman Midha
I Hope following solution will help youKey Features:1) DataTable : to store data from database and to bind this data with data grid2) ValueConverter : Convert column value to specified image source3) DataTemplate : Template for grid column having image type 1) DataTable : here i...
17 Dec 2013 by BK 4 code
Please go through this URL http://software.intel.com/en-us/articles/how-to-creating-your-msi-installer-using-visual-studio-2008[^]
13 Feb 2014 by joginder-banger
try this link a complete information how to bind.........DataGrid Template Columns creation in Runtime (using C#) and DataBinding[^]
18 Apr 2014 by Shai Vashdi
Hi Shashank,Maybe you don't need MVVM. You should use MVVM only when you are writing a Business-Logic + UI and you want to separate them.If you are writing a control with UI-Logic you don't need to use MVVM! For example, lets say I've created a "Property Grid" control that reflects...
6 Nov 2014 by Maciej Los
Think of it! It's quite simple. There are needed two lists (type of GetFile): 1. for source dgv and 2. for destination dgv.Fetch data from first dgv into GetFile class, add to the second list and remove from first one.Try!
9 Oct 2015 by Richard Deeming
A context menu is the menu that appears when you right-click on something. The color-picker's popup isn't a context menu, which is why the ContextMenuOpening event doesn't fire. And unless you've explicitly set the ContextMenu property, it will return null, which is why you're getting a...
13 Aug 2020 by John Whitmire
I built a WPF app in VS 2015 that includes a custom UserControl. Then I installed the MaterialDesignXAMLToolkit package (from nuget) and followed the instructions in Getting Started · MaterialDesignInXAML/MaterialDesignInXamlToolkit Wiki ·...
5 Jan 2012 by Shmuel Zang
Did you validate that the properties that you want to bind to, realy exist in the DataContext. It's the first time I see properties which their names are in language other than English...
13 Jan 2012 by aungthu07
I want to add wpf button to wpf datagridcomboboxcolumn. How can I do this? Please help me.
13 Jan 2012 by Wayne Gaylard
Your best bet would be to use a DataGridTemplate column and create your own DataTemplate like this:-
30 Jan 2012 by steven8Gerrard
How to plot a linegraph in wpftoolkit using serial data . I have doen the following . 1)Added dynamic data display to reference.Used this coding and it shows error
7 Feb 2012 by MohammadIqbal
can anybody give me a sample code (which include the relevant namespace ) which uses the WPFToolKit extendedRegardsIqbal Thanks in advance.
9 Feb 2012 by MohammadIqbal
Unable to install WPFDataGridExtended it gives error "Unable to Run the Application.the Application require that the assembly WPFToolKit version 3.5.40128.1 be installed in the global assembly Cache(GAC)first".but even i could not find WPFToolKit version 3.5.40128.1 anywhere in the net.any...
2 Apr 2012 by ravithejag
I am writing a program that requires an angle between the 2 hand joints .Please help me in writing this code
12 Apr 2012 by lean90
Hi All I have a radGridView - WPF With
17 Apr 2012 by Deepak_Sharma_
Hi,Read reply marked as "Answered" in the following link:http://social.msdn.microsoft.com/Forums/en-US/kinectsdknuiapi/thread/8516bab7-c28b-4834-82c9-b3ef911cd1f7[^]Useful link for Kinect:http://raychambers.wordpress.com/tutorials/[^]
5 May 2012 by Sajjad.Ahmad
HI Wayne,I found this sample project from you on the code project.I am using the same idea in one of my project.But I feel one problem i.e. when I try to use reportviewer control using the winform host, it is not visible in the window so the window appear as blank and the report viewer...
10 May 2012 by Member 8313767
How to show the positive and negative values in chart control specially on y axis. The x axis must be positive values only. And type of series is line series. I am using WPFToolKit chart control. I need both +ve and -ve values to be displayed in 'Y'- axis and only +ve values in 'X'-...
22 May 2012 by Clifford Nelson
That is actually very...
30 May 2012 by Anubhava Dimri
Hello Everybody,I need a Charting Control for Showing the Result in Chart form in Windows Mobile 7.So Please suggest me the software or Location for that purpose.Thanks
20 Jun 2012 by Sravanthid28
i want checkboxlist in Wpfusing xaml i got the checkboxlist in design but i don't know how to use this in code this is my xaml code ...
20 Jun 2012 by Roman Lerman
Sample code here http://www.c-sharpcorner.com/uploadfile/syedshakeer/checkboxlist-in-wpf/[^]and here http://social.msdn.microsoft.com/Forums/eu/wpf/thread/a355a085-2650-45b6-a75b-b6a298e3f20d[^]
20 Jun 2012 by Adam David Hill
Here's a working example, based on your XAML:First of all, the code-behind:using System.Collections.Generic;using System.ComponentModel;using System.Windows;using System.Windows.Documents;namespace WpfApplicationCheckBoxList{ /// /// Interaction logic for...
20 Jun 2012 by Oleksandr Kulchytskyi
Hi.First of all create and bind entity to your UI.Let assume that you create model like this:public class MyModel{public bool IsChecked{get;set;}public string Name{get;set;}}Define for your listBox template for item: ...
21 Jun 2012 by ClockEndGooner
Greetings, eg_Anubhava;I found that Item #358 – Binding a RadioButton to an Enumerated Type at http://wpf.2000things.com/2011/08/05/358-binding-a-radiobutton-to-an-enumerated-type/ from Sean Sexton's "2,000 Things You Should Know About WPF" to be of tremendous help. In both his example and...
29 Sep 2012 by Sandip.Nascar
Have a look to the following...
15 Oct 2012 by Jorge Heriberto
Hi I'm using a simple chart with the chartingToolkit in System.Window.Control.DataVisualization.Charting in WPF & I want to export the chart to a PDF format. Do you have any sample to do it.Greetings...
16 Oct 2012 by Maciej Los
Probably you need to use iTextSharp[^] free software.Please, see these:WPF and iTextSharp[^] - similar question on social.msdn site.Creating-PDF-documents-with-iTextSharp[^] - excellent article on CP site.
16 Oct 2012 by Rupali Jadhav
Like the paint application there are user controls to draw shapes (rectangle, circle, lie etc.). But when i drag and drop that control on page view all other controls are working properly except line control. In case of line when i drag & drop control it displayed very large on screen and i m...
30 Oct 2012 by gajendra_kshatriya
use twoway binding mode {Binding Path=Temp06, Mode=Twoway}"
3 Nov 2012 by kasun.s
I found a good solution from thishttp://www.dotnetcurry.com/ShowArticle.aspx?ID=563thanx gajenda for ur solution.
10 Dec 2012 by BuBa1947
I have created a datagrid which displays a Table of records populating from a Database& would like to animate the cells of the datagrid when certain condition is met.For this I created a converter class named **BlinkConverter** that inherits IValueConverter.to put this converter into...
10 Dec 2012 by Daskul
Are you using VS2010? I also experience that sometimes, and check what I am actually missing, but I guess VS is experiencing bug. Try to rebuild and ignore the intellisense it will be recognize later on.
10 Dec 2012 by Shahare
I ran a test:I added a converter to each property and found that the order of the propertieswhen writing the control in xaml is the order how they are bound.My control was written as follow: Once I inverted the...
12 Dec 2012 by Gurpreet_Fusion
How to put a frame containing image on a webcam viewer so that i can capture the imagewith frame image applied on it
19 Dec 2012 by sreekanthjo
HI,We are developing an application in WPF using MVVM pattern , our application has a MainDtatgrid with 10 columns , and we want to customize the grid columns.For that we have created another CustomDatagrid with template column and we placed checkbox inside temaplate column and binded...
3 Jan 2013 by Christian Graus
If you can't ask us here, we're not likely to answer on another site that we may well not use.
9 Jan 2013 by BuBa1947
Hello all, My goal is to display my database table values ( I have two columns as Total and Used) on a pie chart. I used the WPFToolkit for the chart control and created a pie chart structure.but I am stuck with binding the chart to the datasource. Any one can pls suggest me a...
9 Jan 2013 by Krunal Rohit
Hello, please take a look over here, it could solve your problem, perhaps : http://blogs.msdn.com/b/alexgor/archive/2009/02/21/data-binding-ms-chart-control.aspx[^]
16 Jan 2013 by Kiran Naveena
How to use wpf and call web Services and database and what are the advantages of using wpf
12 Feb 2013 by vinothezhilan m
I have a datagrid (wpftoolkit v3.5.40128.1).can any one suggest me how to get ride of this problem....if vertical scroll bar is visible the last column of a data grid is moved left to a size of scroll bar column.I need my last column header overlaps the vertical scroll bar.pls give me...
14 Feb 2013 by aliwpf
Hi it's very easy.it's not suitable raiseEvent in userControls.you can do this.your mainWindow.xaml must be like following:your mainWindow.cs must be like :private void...
3 Mar 2013 by vinothezhilan m
By editing the default template of the datagrid this problem can be solved.
3 Mar 2013 by vinothezhilan m
By editing the default template of the datagrid this problem can be solved.http://msdn.microsoft.com/en-us/library/cc278066(v=vs.95).aspx[^]use the datagrid default template from above link.find "VerticalScrollbar" is scrollbar.you should alter the grid.column = 2 to grid.column =...
25 Mar 2013 by Manu Thalasseril
Can anyone help me to use the application menu in fluent ribbon. I cant find a single sample showing how to use the Application Menu in Fluent Ribbon after one day full search.Thanks in advance
25 Mar 2013 by Abhinav S
This documentation[^] might help you.
25 Mar 2013 by Manu Thalasseril
I got the solution , actually it is very simple
26 Mar 2013 by Manu Thalasseril
I want to remove all tab items when i click the logout button.My code is given below foreach (object item in mainTab.Items) { TabItem ti = (TabItem)item; if ("welcomeTabItem" != ti.Name) { mainTab.Items.Remove(item); } }But this will...
27 Mar 2013 by josh-jw
check this linkhttp://stackoverflow.com/questions/7272084/closing-removing-a-tab-item-wpf[^]
28 Mar 2013 by Max Holder
Easy Solution here:IEnumerable items = mainTab.Items.Cast().Where(x => !x.Name.Equals("welcomeTabItem"));foreach (TabItem item in items.ToList()) mainTabs.Items.Remove(item);First cast as IEnumerable, after that you do a Where query that excludes...
7 Apr 2013 by danait25
Hi,First of all - I need my project to be in WPF .. and it's my first one.(I mostly develop web systems)I have a form with a grid in it, that split the window to 2 rows / 1 column.On the second row I added a canvan with a background image that display several items and there's a...
10 Apr 2013 by _Natula
This is my masked textbox from the WPF Extended Toolkit I don't want the user to enter incomplete value eg 45-781____ but it can be empty like __-_______I need to force the user to enter all 9 digits or leave it...
10 Apr 2013 by Ashwin_Nikam
You need to check the Length of Value entered in the MasketTextBox.Something like If ( MaskedtxtTaxId.Value.Length 0 ) Then 'display message "Value entered cannot be incomplete"End if
11 Apr 2013 by _Natula
var vPromptCharCount = MaskedtxtTaxId.Text.Count(x => x == '_'); if (count > 0 && count
18 Apr 2013 by babuatcha
Hi Friends, I have doubt in wpf printing....i am printing text...but in textbox.text is good alignment...whenever printing i am usinf flowdocument..with flow document the alignments are chamging ...idonot know y it is happening.........i want only textbox data onle...can...
12 May 2013 by suhas kalambe
i am working on WPF datagrid and want to fix view after insert row at top, whenever row insert at top view scroll down by 1 row, i am using following code int i = 0; DataTable dt = null; private void UserControl_Loaded(object sender, RoutedEventArgs e) { dt =...
15 May 2013 by VuduDog
Solved Myself,The ZIndex for the Crosshair was higher than the ZIndex for the Chart's Plot Area Grid.Once that was changed all worked.Thanks
15 May 2013 by Thomas Duwe
Hi,so what's preventing you from making the inserted row either the selected item and/or using the created row to call ScrollIntoView?So it should be enough to write:void dt_Tick(object sender, EventArgs e){ DataRow dr; dr = dt.NewRow(); dr["Col1"] = i; dr["Col2"] =...
2 Jul 2013 by Gordubal
Hello everyoneI'm working with the WPF-DatagridI need to add an image field to datagrid from database. Image stored in table in string type - this is file name only('*.png'). I have to convert it to bitmap and add to datagrid with other text fields from table. any suggestions?(.NET 3.5;...
2 Jul 2013 by KCS1986
i am using masked text box i want the mask textbox to take max 7 digits and two decimals.for e.g 1234567.12.Currently i use mask as "dddddddddd".in my table the decimal precision is 9,2.so the user can able to put 8 digits so the arithmatic overflow exception is coming.can anybody suggest...
3 Jul 2013 by Denis Shemenko
Use the 0000000.00 mask instead of yours, and max digits set with MaxLength property of TextBox
15 Aug 2013 by r0seBa
Hello,I've followed this article (which is great) : A WPF Pie Chart with Data Binding Support[^]But I'd like to change the colors of the pie chart which are actually defined like this : ...
11 Oct 2013 by Member 8840306
I want to insert data into new rows and edit existing rows of data grid in db table.I have set in datagrid CanUserAddRows="True" in xaml .Here is my sqlite code for connecting with datagrid: SQLiteCommand comm = new SQLiteCommand("update Security_details set...
5 Nov 2013 by Ranjan.D
Here's one - http://wpfthemes.codeplex.com/[^]PS: I really don't understand why peoples don't do a simple Google Search
13 Nov 2013 by Santosh Mohanty
In WPF toolkit chart, can x-axis labels displayed align to tick marks
22 Nov 2013 by Member 8920414
I am using Visual Studio 2012 and developing wpf application and i need to use grid view control .I search grid view by :right clicking toolbox -> choose items ->in tab WPF Components .But it is present and already checked in adjacent tab "Windows XAMAL component". After closing that i right...
22 Nov 2013 by Member 8840306
I am using Visual Studio 2012 and developing wpf application and i need to use grid view control .On right clicking toolbox and selecting Show all, Common xaml controls appear along with grid view.But they not active for use.why? Can any body tell me how i can use grid view in wpf form ?Thanks
23 Nov 2013 by Tesfamichael G.
You don't need to go through toolbox -> choose items ->in tab WPF Components.Actually the components are available by default. However if the current window is code windows (a window were you can not drop a control into), the case you have mentioned could happen.Please explain it to me.
23 Nov 2013 by Tesfamichael G.
You don't need to go through toolbox -> choose items ->in tab WPF Components.Actually the components are available by default. However if the current window is code windows (a window were you can not drop a control into), the case you have mentioned could happen.Please explain it to me.
24 Nov 2013 by Irina Pykhova
Common XAML tab is for Windows Store applications and can't be used in WPF. It was hidden intentionally. When you selected to show hidden tabs, all the stuff which can't be used gets disabled. The same thing will always happen if you show something inappropriate for the current application.You...
17 Dec 2013 by kingsa
Hi, I want to make project as setup ,which i was developed in wpf with mysql can u guide me or send snippets in visual studio 2010
18 Dec 2013 by kingsa
Hi, Below like i want to add one more column Delete option in grid view , how can i acheive this can u guide or send snippets, I am using wpf 3.5 versionStackPanel Margin="320,0,0,0" Grid.RowSpan="2"> ...
4 Jan 2014 by kunal2u
I have created one custom control for paging data grid in WPF but it is not working. Please help me.I am using my custom control as follows:...
28 Jan 2014 by kingsa
Hi, I have frame it contains large number of controls and I want to print whole frame data and controls can you guide me or send snippets
29 Jan 2014 by kingsa
HI, I have a frame i want to add button in navigation bar of frame can u guide me or send snippets
29 Jan 2014 by Ahmed Bensaid
Take a look at this MSDN thread ;)http://social.msdn.microsoft.com/Forums/en-US/bc609cbd-0179-4d15-9bbf-9975aac0e7c8/how-to-add-a-custom-button-to-navigation-tool-bar-inside-frame-control[^]
10 Feb 2014 by ankitkamdar
How can I get DataGrid cell value At Execution Time in WPF.Actually Problem Is That I Take To Columns in datagrid one is string and another column is Combobox and I cant get Combobox value so how can i get Combobox value???? i want to store it in a variable
12 Feb 2014 by kingsa
Hi, I have menu control i have to nagivate different pages using menu control, menu items bound from database can u guide me or send snippets
12 Feb 2014 by kingsa
Hi all , i have dynamic menu control in wpf from each menu item should having usercontrol namefrom their i need to navigate i have tried it not workin g converting string control can u guide or send snippets public void MenuBuilder() { MenuItem...
16 Feb 2014 by andrew578
Hi, I am trying to find a way to style a line graph from wpf toolkit. I had a look at this post http://www.codeproject.com/Articles/32880/Styling-a-Silverlight-Chart.However I can't get it to work. Regards, andrew
16 Feb 2014 by Pete O'Hanlon
If you have an issue with the code on a particular article, then you should raise the question on that article. When you do so, please make sure that you provide more detail than you can't get it to work. You need to be specific and tell him exactly what is wrong.
22 Feb 2014 by Pankaj Nikam
What you can do is create a Menu in XAML and name it something which you can refer to. In the code behind, you can create MenuItem as per your database records. And set the tag to identify what the MenuItem is - lets suppose you assign ID of the record to it. Handle the Click event of it and get...
24 Feb 2014 by kingsa
HI, I have Datagrid with check box column , if any child row unchecked of check box column the main header column also be unchhecked how can i acheive this can u guide me or send snippets
24 Feb 2014 by Abhinav S
TryAdd checkbox to WPF Datagrid[^]CheckBox Checked and Un-Checked Events in Data Grid Header[^]WPF DataGrid CheckBox Single Click Checking/Unchecking[^]
25 Mar 2014 by snprani
I got initial help for propertygrid control from this link to launch and display sample data. My requirement is based on an event, i should change the property grid's SelectedObject value from its viewmodel.My XAML contains Usercontrol which has Extended wpf toolkit's PropertyGrid...
30 Mar 2014 by Ganesh_verma
HI ,I draw a Bar Chat using WPF toolkit.Like Average and Total there are two bar in bar chart But I want to draw Other sub Bar chart on Clicked Bar..Like when I clicked on Average or Total bar then plot another bar chart for Average or total.Please any one suggest...