Showing posts with label C#. Show all posts
Showing posts with label C#. Show all posts

Wednesday, June 20, 2012

Local Data Storage for Windows Phone

Here will be a very brief recap, please go to the MSDN links that I listed in the Related topic section to get a completed understanding.

There are three ways an application can store data:

  • Settings: Store data as key/value pairs by using the IsolatedStorageSettings class.
  • Files and folders: Store files and folders by using the IsolatedStorageFile class.
  • Relational data: Store relational data in a local database by using LINQ to SQL.
For a Windows Phone application, all I/O operations are restricted to isolated storage and do not have direct access to the underlying operating system file system or to the isolated storage of other applications.

Tuesday, January 24, 2012

Enable Windows 7 taskbar functionality in WPF

The TaskbarItemInfo class provides a managed wrapper for Windows 7 taskbar functionality. If you want to know more information about the Windows shell and native taskbar APIs, see Taskbar Extensions. TaskbarItemInfo is exposed as the Window.TaskbarItemInfo dependency property on a Window. I am going to use it as my topic today.

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).

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 .

Wednesday, November 30, 2011

Monday, October 17, 2011

Using Windows Phone 7 Emulator

Windows Phone Emulator is a desktop application that emulates a Windows Phone 7 or a Windows Phone 7.1 device. Here is a list of topics that I found on the Internet and thought it is useful for me. Hope you enjoy it.

Thursday, September 22, 2011

Parallel Programming in the .NET Framework

.Net Framework 4.0 brought a new feature to simplify parallel development that runs your application on computers and workstations that have two or more cores. Still, unlike mainframe systems this is not going to enable you to run your application on a specific core (CPU). However, it does provide a lot more easier way to develop your multi-thread application. Let's see what it can do now.

Tuesday, September 13, 2011

Gesture in Windows Phone 7

Here are some  interesting information I found on the Internet.

Monday, September 12, 2011

Publish your Windows Phone 7 Apps

Here are links will very helpful for myself hope it will help you on your work.

"The Application Development Lifecycle" in Application Platform Overview for Windows Phone

Windows Phone 7 Silverlight Controls

First, check these sites for a look about Silverlight controls: Silverlight 3 Toolkit Demo, Silverlight Toolkit. This toolkit is that it’s completely compatible with Windows Phone 7 applications that use Silverlight.

Friday, September 9, 2011

Using the Bing Map Control on Windows Phone 7

 

Related Topics:

Network services for Windows Phone 7

Please take a look at MSDN documents first. I will add my thought later.

The WebClient and HttpWebRequest classes can be used for a wide range of HTTP-based programming, from general HTTP requests to programming web and data services.

A Demonstration About How to Consuming Windows Phone Services Series by using WebClint class:
Part 1 - Web Client Basics
Part 2 - HttpWebRequest Fundamentals
Part 3 - Parsing REST based XML Data - Part A - Single Result
Part 4 - Parsing REST based XML Data - Part B - Multiple Results

Another example in 31 Days of Windows Phone | Days #25: Talking to External APIs

Push Notification for Windows Phone 7

You can take a look at the related topics below and then here is a simple demonstration: 31 Days of Windows Phone | Day #19: Push Notifications