Tuesday, January 24, 2012

ProgressBar in WPF

A progress is used to indicates the progress of an operation. I've searched a lot on the Internet. I couldn't find a sample on how to use it by setting its progress value. And should be the simplest and most natural way to do it.

Monday, January 23, 2012

Commanding in WPF

This topic is tended to be an abbreviated version to this Commanding Overview document on MSDN website. If you want to have a fully understanding about it, please click that link and read it thoroughly.

Commanding is an input mechanism in WPF. There are two kinds of input mechanism in WPF which .NET Framework 4.0 supports: mouse click (MouseGesture) and keyboard input (KeyGesture).

Tuesday, January 10, 2012

Advanced Format (512E) and 4K Native in Windows

I bought a new hare drive on New Year days of 2012. I don't know the hard drive I bought is made in 4K native format and I don't know Microsoft Windows OSs don't fully support the new format hard drive until I got a virtual hard drive disk-related error…..

Monday, January 9, 2012

A Code Snap About File I/O in C#

This is tend to be a reminder of mind. It was gathered from many of my practice. Therefore some of them may look like odd or not corresponding. Such as MessageBox and Console objects are not suppose to appear in the same program, but they does not affect the whole things. I don't want to revise that parts since it is not important on this topic.

Why C#'s Math.Round is not Working Correctly?

Is it a bug? Yes, in my opinion, it is. In MSDN library, Math.Round method in C# uses Round-Half-Even AKA Banker's Rounding as its default rounding method. However, a lot of people claim that it is not working as accurate as it should be. I am going to tell you how it happened and how to prevent it happens.

Friday, December 30, 2011

System.Math Class in C#

Namespace: System

Assembly: mscorlib (mscorlib.dll)

Here is a recap from Math Class in MSDN and is depend on .NET Framework version 4.5. You can switch to the other versions once you navigate to the MSND website.

Methods:

Monday, December 19, 2011

Create Your Metro Style App Package and Share It with your Friends

In this topic, I would like to talk about how to easily create a Metro Style App Package and deploy it to the other developer-enabled Windows 8 PC .