Click here to Skip to main content
15,887,821 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 Updated

WPF Toolkit 

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...
11 Apr 2013 by _Natula
var vPromptCharCount = MaskedtxtTaxId.Text.Count(x => x == '_'); if (count > 0 && count
5 Jan 2012 by Abbath1349
I posted two DataGrid on a form, but in the 2nd DataGrid binding does not work. The properties ItemsSource they show the same values. If one change in the second changes automatically. How do I make it work properly?
6 Jan 2012 by Abbath1349
relevant code: private void themeSelector2_SelectionChanged(object sender, SelectionChangedEventArgs e) { try { if (myDataSet.Tables["Asks"]!=null) myDataSet.Tables["Asks"].Clear(); ...
25 Mar 2013 by Abhinav S
This documentation[^] might help you.
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[^]
1 May 2014 by Abhinav S
Assign the datasource of the first datagrid to the second datagrid.This way you will have two grids displaying the same data.
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...
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[^]
6 Aug 2016 by Ali Bagherzadeh
I tried to design WPF chart same as below design imageproblem is how can make background grid same as sample image, more column line between major tick's lineI found that there is MinorTickMarkStyle, I try to make style for it not shownHere is both image of my control and design...
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...
24 Sep 2016 by Alpha21oct1989
I need to create a datagrid whose column should be bound to the piechart in such a manner that when I change the value of the column the piechart should get updated.I want the datagrid should have two columns and should populate these fruit collection values.Also most importantly the...
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
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
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
11 Jun 2012 by Anubhava Dimri
Hi Experts,I have two Radio Button(Male,Female) which i have to bind By Property (Gender). But My Gender Property Returns the Integer Value (0 For Male and 1 For Female).So Please Suggest Me how to bind the data from database to form?Thanks
8 Jan 2012 by arunkumarspiro
Hi i have one task to scanning one file by using c#,but Scanning process do not scan entire file,it will be scanned main attributes only.this main attributes Defined by developer.
5 Oct 2014 by ashok rathod
VisualStateManager class is conflicting, because it is present in specified both the dll's http://msdn.microsoft.com/en-us/library/system.windows.visualstatemanager(v=vs.110).aspx[^]
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
13 Jan 2012 by aungthu07
I want to add wpf button to wpf datagridcomboboxcolumn. How can I do this? Please help me.
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...
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[^]
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...
3 Jan 2013 by BuBa1947
I have a data grid & a Listview.The datagrid displays a table from a database vertically.and I have added a listview that shows the status of the servers.Now I have to added a new column called Delta which should display the difference between the Average column 108 & 121 from the...
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...
26 Feb 2013 by BuBa1947
first of all please do not confuse with my question title. It is a single seleteditem on Multiple datagrid ( not multipleselecteditems on a single datagrid).I have multiple datagrids ( say three ), each datagrid from the lowest depends for its data from the selecteditem from the above...
4 Mar 2013 by BuBa1947
I have a tab-control with three tab items. each tab item has a datagrid placed on it.and all these three datagrid's on their respective tab items is of Master-Detail-SubDetail form.how to navigate from first tab item's to the second tab item' when a user selects a row on the master...
19 May 2021 by Chris Copeland
Realistically, no WPF doesn't really support embedding windows inside other windows. I believe Microsoft decided that having this sort of hierarchy (MDI) was bad practise, so generally the idea is that you create user controls for the content. ...
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.
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.
22 May 2012 by Clifford Nelson
That is actually very...
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/[^]).
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...
14 Feb 2013 by D-Kishore
In My WPF Aplication,Here is one example,I am having One mainwindow and two UserControls named One And Two.In my Main window XAML code like,
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...
21 Apr 2013 by danait25
hey,I have a problem (a common one as I figured from searching the net..) - I have a wpf application (not a web app!) and I added the wpftoolkit to one of my windows xmlns:toolkit="http://schemas.microsoft.com/wpf/2008/toolkit"Maybe it's just a coincidence and it has nothing to do...
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.
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...
24 Sep 2020 by Dave Kreskowiak
Probably doesn't exist. You're best source for component outlines is probably going to be for PCB layout software like Eagle. That have large numbers of libraries of components that have outlines for the device itself as well as pad layout and...
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/[^]
3 Jul 2013 by Denis Shemenko
Use the 0000000.00 mask instead of yours, and max digits set with MaxLength property of TextBox
14 Jun 2021 by Dinesh Kudale
In MainWindow.xaml: It is a 'Block1' tab window inside...
24 Sep 2020 by DoingWork
Is there any library for WPF (XAML code) that contains Shapes or Geometries of Electronic Components like Fuse, Transformer, Wire, Resister, Diode and etc What I have tried:
30 Sep 2020 by DoingWork
I want to convert Visio Shapes to Path Data. Then I want to use these path data in Xaml (WPF) If I spend my time on re-inventing the wheel, it will take too much time Any Help ? What I have tried: I have spent very large time on Shapes and...
5 Nov 2013 by DonWim
check out my article: Export WPF page to PDF file[^]You can just add the simple chart ad control on a fixedpage, in a fixeddocument and export it into XPS and convert to PDF... no additional printers needed. Can completely be done in code, with one click !
16 May 2012 by farhan.mycom
How to have Summary row in the Datagrid control. For example I want to display the Total of some columnbelow in the Datagrid control like a summary...
15 May 2015 by Federico Barbieri
I have a problem with the datepicker. When I click on the datepicker, the month is truncated, how is displayed in the image in the link.Image of my problem[^] toolkit:DatePicker x:Name="datePickerData" Height="25" Grid.Row="1" Grid.Column="1"Help please!
9 Apr 2012 by Fistum Mekuria
I read your post about how to customize the calendar tool. Currently am working on application that requires plotting a graph by choosing a specific day from the calendar. I have sql database but I couldn't figure out how to bind the days into my database and plot the graph. Please help. Thanks.
13 Mar 2017 by friend12king
I am unable to disable if I use WindowChrome.WindowChrome style. Please let me know your input to resolve this problem. Without WindowChrome, I am able to disable context menu with the same piece of code.What I have tried:
30 Oct 2012 by gajendra_kshatriya
use twoway binding mode {Binding Path=Temp06, Mode=Twoway}"
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...
3 Dec 2015 by George Jonsson
Refer to Wikipedia page PLY (file format)[^]See the external link section.There are several C++ libraries but no C# as I can see, so you have to use pInvoke in order to connect to the library in C#.Platform Invoke Tutorial[^]You could also write a managed C++ module that you then...
30 Sep 2020 by Gerry Schmitz
You're not "reinventing the wheel" when your only other alternative is to "buy" the wheel. That's what commerce and trade are all about and why I don't make my own shoes. And if it was that easy, there comes the question of "fair use": MS could...
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;...
13 Mar 2017 by Graeme_Grant
This Google search: wpf disable window context menu - Google Search[^] has many solutions for you including this one: wpf - Disable the whole Context Menu - Stack Overflow[^]
18 Jul 2022 by Graeme_Grant
I am guessing that you are using ObservableCollection to hold your data for the grids in the ViewModel. You have two issues here: 1. Loading the data into the ObservableCollection is happening on the UI thread, effectively blocking the UI from...
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;...
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
3 Oct 2016 by Harpreet05Kaur
Hi,You can use various ChartJS's these days for displaying your data in charts.Try the following : FusionJS, CanvasJs , amCharts and many more.Hopefully it will help you.
16 May 2012 by hunain.esh
I think this would be helpful to you:http://msdn.microsoft.com/en-us/library/bb310552.aspx[^]
15 Jan 2013 by iltzortz
Is there a version of wpf toolkit for .Net 4. I cant find any and i am curious if the usage of the existing one to a .Net 4 application might cause me any problems.Any suggestions?
22 Dec 2014 by Info7410
Hi All,I am plotting the graphs using WPF Tool kit. I could able to draw the lineseries and everything works fine.But now my requirement is to display the tool tip showing the data points of the lineseries at that particular clicked point within the chart.Even i could able to display the...
9 Feb 2015 by Info7410
Hi All,I am trying to plot a graph with a LineSeries having x-axis as DateTimeAxis and y-axis as LinearAxis.I have to display my x-axis (DateTimeAxis) in the format of mm:ss (i.e, in the minutes and seconds only). Here i dont want to display the hours part of the DateTime object bbut i...
27 Mar 2013 by Irina Pykhova
you can't change collection inside foreach loop. Use something like while or for
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...
18 May 2014 by IT-discovery
I working on WPF application using MVVM pattern. the question is : How to Check wether the Textboxes content are valid or not and by the way make a Save Button Disable until all textboxes fill by valid data. I googled more and more but in all scenario the answer was implementing IDataerrorInfo...
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...
15 Jan 2013 by Jason Gleim
You can always find the most recent release (which isn't currently that recent) on CodePlex.While the current version is from Feb 2010, it should work on .NET 4.x without any issues. I've not used everything in the toolkit but what I have used worked fine on .NET 4 and .NET 4.5.
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[^]
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 ·...
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 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[^]
27 Mar 2013 by josh-jw
check this linkhttp://stackoverflow.com/questions/7272084/closing-removing-a-tab-item-wpf[^]
30 Oct 2012 by kasun.s
Here I am trying to edit / update my SQL Server DB using dataGrid.1st I load the values to datagrid.Then Trying to change any value of a cell by double clicking cell. But, after I move the cursor, previous value comes to the cell. So same value saves to DB, not the changed value I wanted to...
3 Nov 2012 by kasun.s
I found a good solution from thishttp://www.dotnetcurry.com/ShowArticle.aspx?ID=563thanx gajenda for ur solution.
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...
7 Apr 2013 by Kenneth Haugland
It sound very much like something I have done before:WPF-Drawing Canvas Control[^]
13 Feb 2014 by khurram ali lashari
Try this.. string yourvariable = dataGridView1.Rows[1].Cells[1].Value.ToString()//here i assume your combox box is in the second cell of datagrid view You can Change it Like this Cells[0]
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"> ...
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
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...
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
2 Mar 2015 by Kinna-10626331
Hello , basically I want to refresh the x axe with new values coming.Chart.xaml:
16 Jan 2013 by Kiran Naveena
How to use wpf and call web Services and database and what are the advantages of using wpf
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[^]
31 Mar 2023 by KUMAR619
Hi All, Before negative voting I would like to read my question to fully understand my situation. I am working on WPF application where we create a portable tool for specific function. My problem is that we are facing DLL Hijacking issue when...
4 Jan 2014 by kunal2u
I am having issue with DatePicker in WPF. When clicked it is showing month name cut in the height.WPF Date Picker Month Issue
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:...
16 Oct 2012 by Lacy00
This article will be very useful for you. How to Use C# to Create Excel Chart and Convert it to PDF[^]. The tool it uses is a third party, but it also has a WPF version, you can give it a try.
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.
12 Apr 2012 by lean90
Hi All I have a radGridView - WPF With
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.
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!
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 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...
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...