Announcement

All important changes of my site and my blog will be announced here.

Computer security

This is my hobby. I spend my freetime for it. I am not professional in this area. But I like it very much.

Everything Else

Which doesn’t belong to other categories will land here. It maybe about my daily life, entertainment, music, game … or something like that

Programming

This is my job. That means everyday I must sit before the monitor. Tip something, be annoyed by bugs,… but I simply like it.

Tutorial

When I found something interesting, I would like to share it to everyone. That is the reason for this category comes.

Home » Archive by Tags

Articles tagged with: wpf

C# – Host Microsoft Chart in WPF application
Friday, 18 May, 2012 – 0:00 | No Comment

How we provide our customers the way to display their data is a important feature of every software for data management. Maybe the users want to use Bar, Line, Pie, Pyramid chart… someone wants to display as 2D and the other wants 3D for his plotting. The financial prefer Kagi, Renko, Point and Figure chart… meanwhile the statisticians maybe use Bar and Column, Cylinder or just simple Line chart. Because of these numerously different requirements …

C# – Insert Images and Hyperlinks into RichTextBox in WPF
Friday, 26 Aug, 2011 – 0:00 | No Comment

Like the name of control, the RichTextBox inheriting from TextBox control, allows user to enter and edit text. However it also provides more advanced formatting features than the standard TextBox, for example inserting rich media objects like images and hyperlinks. The objects (text, images, hyperlinks…) can be assigned directly to the control or can be loaded from a rich text format (RTF) file. We can also load data from an already opened data stream, edit …

WPF – Use ZedGraph in WPF application
Friday, 7 May, 2010 – 0:00 | One Comment

Maybe you already know about ZedGraph. ZedGraph is a set of classes, written in C#, for creating 2D line and bar graphs of arbitrary datasets http://sourceforge.net/projects/zedgraph/ . If you need some basic samples for using this library you can read a useful article at CodeProject http://www.codeproject.com/KB/graphics/zedgraph.aspx . However this library now only supports Windows Form Application. If you want to host a graph on WPF application, you can follow the steps in this blog below. …

C#, WPF – Webservice Part I
Saturday, 20 Mar, 2010 – 0:00 | No Comment

When I studied WCF Services and wrote some examples for training, I would like to make some basic review about Web Services therefore today I decide to write some simple examples working with Web Services. I know that there are a lot of examples with Web Services on internet but I want to write my own one so that I can use it later. Anyway reading and understanding my own example and explanation is faster …

C#, WPF – Windows 7 Thumbnail Toolbar
Tuesday, 16 Mar, 2010 – 0:00 | No Comment

During learning to develop myself a gadget for Windows 7, I would like to use some features of Windows 7 for my application. One of these features is enabling thumbnail of our application on toolbar as following
You can see in image above that I have a custom beautiful thumbnail with 4 buttons to navigate through the image gallery. To apply this feature in our application, I need a library called Microsoft API Code Pack http://code.msdn.microsoft.com/WindowsAPICodePack …

C#, WPF – Copy files with progress bar by CopyFileEx API
Friday, 12 Mar, 2010 – 0:00 | 4 Comments

When we copy a lot of files to a folder we would like our program showing the copying progress with useful information, for example how does the copying run or how many file left to be copied. The managed function File.Copy does not allow us to monitor its process by providing any callback function. There are already in internet many articles show us how to copy files with progress bar in Windows Form. Therefor in …

Silverlight, WPF – ListBox Drag and Drop
Sunday, 28 Feb, 2010 – 0:00 | No Comment

During my development I need to implement the drag and drop feature in Silverlight. It’s pretty easy to make this feature work in Windows Form but it’s not simple to enable this feature on control in Silverlight. Therefore the developer team of Silverlight has developed a Silverlight toolkit to help us to alleviate our work. The Silverlight Toolkit is a collection of Silverlight controls, components and utilities made available outside the normal Silverlight release cycle. …

C#, WPF – Play swf in wpf application
Sunday, 14 Feb, 2010 – 0:00 | 6 Comments

When I was trying to extract the first frame of SWF file into image I discovered that there is a small problem when we try to host a SWF file in WPF application because WPF does not allow us to integrate ActiveX control directly in its application. To enable interaction through ActiveX control, we must do a walkthrough with WindowsFormsHost. In this small example below I would like to guide you step by step to …