Social Icons

twitterfacebookgoogle pluslinkedinrss feedemail

Saturday, January 28, 2012

Notification Control in Silverlight

We used to see a Notification tool tip in Windows 7/Vista to inform something about particular context. For example, Capslock warning will be given through a balloon tip on Passwordbox, if capslock has ON. Or sometimes low battery information will be displayed on the Taskbar.

Sunday, January 22, 2012

Silverlight RichTextBox Control For Beginners

This post is for the absolute beginner who want to use the RichTextBox control of the Silverlight in their application. So in this post I will show how you can use MVVM pattern to bind the RichTextBox to the properties of the view models and what properties of the RichTextBox are used for binding.You can see in the Image 1 that I have used two way to display text in RichTextBox control. On the left side is the simple string and on the right side is formatted string.

Monday, January 16, 2012

Touch typist’s dream keyboard comes to the Mac

Apple users who type like the wind are in luck: Das Keyboard took the wrapper off a Mac-optimized version of its impressive mechanical switch keyboard. In addition to satisfying tactile feedback, the Das Keyboard for Mac has special keys designed for Apple machines and a built-in two-port USB hub.

The Das Keyboard is basically the opposite of Apple's own typing input devices: It's glossy black, imposing and has a distinctive old-school edge, while Apple's keyboard is all lightness and aluminum. But the Das Keyboard is aimed at a particular crowd for whom the overwrought design (the company calls it "Darth Vader approved") is a selling feature, not a downside.

Das Keyboard's main draw is its use of mechanical switch keys, which make the experience of typing particularly rewarding, especially for touch typists whose fingers fly yet depend on some kind of tactile feedback. The company compares the experience to typing on an IBM Model M keyboard, a design some say has not been improved upon since. The new Mac-specific model also features dedicated deys for volume control, playback, screen brightness, disc eject, and even a sleep button for instant access to energy savings.

The built-in USB 2.0 hub should also be better than the one on Apple's own wired keyboard: Das Keyboard says it can charge and sync your iPad, which the underpowered hubs on Apple's own keyboards can't manage.

The Das Keyboard for Mac normally retails for a fairly pricey $133, but if you pre-order now via the official website, it costs $113.

Sunday, January 15, 2012

Displaying Notification Messages in a Silverlight Dashboard Application

Displaying Notification Messages in a Silverlight Dashboard Application
Nowadays dashboard applications are becoming popular in Silverlight applications. Well Dashboard applications are normal Silverlight application, with a home screen that displays some information about different modules involved in the application. Take an example of a dashboard where all Social Networking sites are in different modules and you need to see the notification or messages pushed to you by the modules. In this article we will see how we could display a notification message and further a list of notification messages. 

Read More from: Original Source

Creating and exploring a 3D maze with Silverlight 5

There's something about mazes than amazes me. They seem simple, but the math behind them can be very complicated (at least for a guy like me). Yet they have a draw that's hard to resist. Then there's the whole being inside of one, working your way out (i.e. just about every adventure game ever written?).

Today's project takes us through not only the creation/generation of a random maze, but how, using the power of the new 3D features in Silverlight 5, we can also explore our creations too.

Read More from: Original Source

WPF Data Binding Tutorial 1

Windows Presentation Foundation (WPF) is ships part of .NET frame work and Develop our GUI application 2D,3D,graphics animation and media content using in this WPF.

In advantage of WPF  to less your coding in application.and Easier animation and special effects,Inherent Scalability Inherent scalability 

The developer has to manually write the Code update each UI Elements That Display value stored in the object member .In WPF you can less your code greatly by binding the object directly with the UI using XAML syntax.A developer typically  creates a class to represent an entity (table) in the database,where CRUD operations performed by Calling methods on the objects.

I will Converting 3 different approaches for displaying data in the object onto the UI using WPF

  •    Basic of WPF Binding
  •    Using c#[INotifyPropertyChanged]
  •    Using c# and XAML[INotifyPropertyChanged and XAML]

HTML5 Demo registration form


This article gives you a practical implementation , on how to use HTML5. 

I have used VISUAL STUDIO 2010.You can use any other text editor software.

Step1: To enable HTML5 FOR VISUAL STUDIO 2010:

Friday, January 13, 2012

A WPF Custom Control for Zooming and Panning

This article examines the use and implementation of a reusable WPF custom control that is used to zoom and pan its content. The article and the sample code show how to use the control from XAML and from C# code.

The main class, ZoomAndPanControl, is derived from the WPF ContentControl class. This means that the primary purpose of the control is to display content. In XAML, content controls are wrapped around other UI elements. For example, the content might be an image, a map or a chart. In this article, I use a Canvas as the content. This Canvas contains some colored rectangles that can be dragged about by the user.

Thursday, January 12, 2012

Code analysis using Telerik JustCode

JustCode do on the fly analysis of the code. It does code analysis when you type the code and reports you and error or warning without any further delay.
You can download Telerik JustCode 60 days-trial version with dedicated support here
To have high lever perspective on Telerik JustCode, I have just console application and put no code so far.

Wednesday, January 11, 2012

How to convert a Silverlight application to out-of-browser application?

In this article, we are going to learn how to work with Out-of-browser application in Silverlight.

Out-of-browser application

Out-of-browser application is a Silverlight application that can be installed from the running Silverlight application in the browser to the local computer.

After installation, it can be run from the local machine by clicking its icon rather than launching from browser as if it is a desktop application.

WP7 and PhoneGap - Article #6 - Make your WP7 Vibrate

Mindscape LightSpeed gives you data access how it should be: Screaming fast, Visual Studio integrated and with support you can depend on.

The Windows Phone SDK in Silverlight provides the class VibrateController which the developer can make use of it to vibrate the phone .

Read More from: Original Source

Silverlight 5 Hosting :: Basic About Silverlight 5

In this article we are going to explore the WCF Ria Services with Silverlight 5. Lets start with the basics for the first timers.

Read More from: Original Source

WP7 and PhoneGap - Article #7 - Check for Network Connections

Learn the basics of getting a minimal application packaged for the Windows platform using the Intel AppUp™ encapsulator tool. Develop HTML5 applications for the Intel AppUp center - Learn More

If you want to find out the connection information of your Windows Phone using PhoneGap you can use the connection object .

Read More from: Original Source

Tuesday, January 10, 2012

How to access a video and snap a picture from webcam in Silverlight?

In this article, we are going to learn how to interact with Audio and Video devices in Silverlight

Working with Audio and Video devices in Silverlight

Silverlight 4 allows us to easily work with the video and audio devices of the system. In order to control the audio and video devices user need to right click the Silverlight page in the browser and click and Webcam / Mic that list all default audio and video devices.

WP7 Mango Sample: Database Part 1:2

Storing Windows Phone application data is a pretty normal requirement. If you want it to persist across sessions, or even phone reboots, you really have three options:

- Save to the Cloud
- Save to Isolated Storage
- Save to Local Database

Each is correct for certain scenarios. But in this article, I will ONLY walk through the Local Database. This is an enhanced version of SQL CE – meaning your SQL skills are an asset. And, if you don't have them, they come quickly.


Read More from: Original Source

Monday, January 9, 2012

Silverlight File Manager

The Silverlight File Manager on the ListBox control based universal server handler may be working on the ASP .NET WebForms and MVC projects. All requests are sent asynchronously via helper class.

Silverlight applications have no direct access to the file system of server. To gain access to the server file system needs to be done the proxy (gateway) page.

I created a gateway class for processing requests. The class can be used in the ASP .NET WebForm and ASP.NET MVC projects.

File Manager is created as custom control based on the ListBox. The control has a method for sending requests to the server.

All requests are sent asynchronously via helper class. The helper class is optimized for File Manager, but it can be easily modified for other purposes.

Data exchange is carried out in the JSON. Is it optimal for traffic volume.

LINQ Group By with NULL database values

LINQ is fantastic for the ability to write queries that express intent much more clearly than the same SQL, or structured code. One problem that I have run into though is handling NULL database values that are part of a group by statement.

Grouping by ProductSKU

Grouping in LINQ allows you to return sets of data from a collection for a given key value. The group by clause is what the key ends up being in the result set. Let's take a grouping of the Products by the SKU.

Top 10 tips and tricks to jazz up your C# business solutions/server products

After the initial lot of tutorials and exercises, when finally I sat down to write my first professional quality C# application, I had to spend some time finding out how routine server related tasks like reading the registry, sending emails, writing to the Windows Event log, getting system information, watching folders etc. are done in .NET.

Fortunately, the rewards of the time spent were fantastic. It was wonderful to see the simplicity and elegance of the C# .NET code doing pretty complicated tasks, against the daunting C++/MFC code I used to write earlier for doing the same things.

So, I decided to compile this list of ready-to-refer tricks.


  1. Sure, you can wade through the MSDN and know all this. But this stuff is for those who are short on time and want ready-to-use simple solutions in a jiffy. You know, the ones whose boss has just yelled �Get me the results! Now!�.
  2. I have chucked out the try-catch blocks and comments from the sample code to reduce the size. Please add these life savers wherever necessary.
  3. When you will run the samples in production environment, please remember that the user-context under which your program is running will require the necessary access right to do certain things. For example, to be able to write to Windows Event Log, you will require the corresponding access rights.
  4. Use this article as a starter to do impressive things with your application, it will get you productive in no time. Once you have some free time, read up more from the MSDN and delve deeper into things.

Sunday, January 8, 2012

Let me out - Facebook Logout in a WP7 App

A while ago I implemented the Facebook photo endpoint into my Windows Phone Pictures Lab app. The implementation of the login was quite straightforward thanks to OAuth 2.0. Only the logout was way harder than one might expect. This post describes how to logout from Facebook using the Facebook API.

Add Twitter Support To Your iPhone App In 5 Steps

Do you know how easy it is to give your users Twitter support in your app. This works like the email function in iOS apps – you will be able to present your user with a model view that is pre-populated with content that will become a tweet that will appear in your user's timeline.

This is what you need to do to add Twitter support to your iOS app:
  • Add Twitter framework
  • Import Twitter.h
  • Instantiate TWTweetComposeViewController
  • Set initial text, images and URLs
  • Present TWTweetComposeViewController in a model view controller

Here is an IBAction that I coded that implements this Twitter functionality.

-(IBAction)tweetTweet:(id)sender {     NSLog(@"%i", [TWTweetComposeViewController canSendTweet]);     TWTweetComposeViewController *tweeter = [[TWTweetComposeViewController alloc] init];     [tweeter setInitialText:self.myTextField.text];     [self presentModalViewController:tweeter animated:YES]; }

How to create and consume WCF Service in Silverlight?

As we know that Silverlight (being a sandbox technology) doesn't support working directly with ADO.NET, it implies that you can't use ADO.NET code like SqlConnection, SqlCommand or SqlDataAdapter to connect to the database and fetch records or manipulate records. So the only option left is to interact with the services (either web or wcf).

NOTE: In case you are creating services in different project than the Silverlight hosting project, you need to specify the client access policy (in the client/consumer project) and cross domain policy (in the server project).

This article is the continuation of my last article in Silverlight controls series, read last article here.

WP7 Tips: How to Pin an Application to the Start Screen?

Today in this blog post, I am going to start up few Windows Phone 7 tips which will be handy for you if you are a beginner and just started exploring your device.
In this first tips & tricks, I will show you how to pin an application from your application list to the start screen of your Windows Phone 7 device. As I told, this post is absolutely for the beginners.

Friday, January 6, 2012

Binding data to the Silverlight control by hard coding in XAML file and programmatically from the code behind

Data binding is the process that establishes a connection between the application UI and business logic. If the binding has the correct settings and the data provides the proper notifications, then, when the data changes its value, the elements that are bound to the data reflect changes automatically. Data binding can also mean that if an outer representation of the data in an element changes, then the underlying data can be automatically updated to reflect the change. For example, if the user edits the value in aTextBox element, the underlying data value is automatically updated to reflect that change.For more visit here.

Thursday, January 5, 2012

iOS Development Resources

Below is a list of online resources I have found incredibly useful whilst climbing the Xcode / iOS learning curve. If you've got others please let me know in the comments!

Apple resources

  • iOS Dev Center
    This is pretty much your central bookmark for all things Apple / iOS related. You'll be given access to different types of resource depending on the type and details of your developer account (e.g. iOS Beta downloads are only made available to paid-up, confirmed developers)
  • Xcode 4.2 on the Mac App Store
    Note: you'll only be able to get Xcode from the MAS if you're running OS X Lion. If you're still on Snow Leopard then grab it from the iOS Dev Center. 
  • iOS Human Interface Guidelines
    The essential design guide for app developers. Read and digest before writing your first line of code! :-)  


Developer links and blogs. (Note: many links on this list has been sourced from this post on ClingMarks.)

Thanks and I hope you enjoy

Windows phone 7 video

Find Video series below

Episode 17 How to work with AutoCompleteBox in Windows Phone 7
Episode 16 How to Protect Password in Windows Phone 7 using Data Protection API
Episode 15 How to consume WCF REST Service with JSON in Windows Phone 7
Episode 14 How to work with Live Tiles in Windows Phone 7
Episode 13 How to work with ApplicationBar in Windows Phone 7
Episode 12 How to work with WrapPanel in Windows Phone 7
Episode 11 How to work with System Tray Progress Indicator in Windows Phone 7
Episode 10 How to work with Picture in Windows Phone 7
Episode 9 How to create Flickr Photo viewer App for Windows Phone 7
Episode 8 How to consume ODATA in Windows Phone 7
Episode 7 How to work with Page Navigation and Back Button in Windows Phone 7
Episode 6 How to Send SMS, Send Email and Make a Call in Windows Phone 7
Episode 5 How to work with WCF Services in Windows Phone 7
Episode 4 How to work with Orientation Changes in Windows Phone 7
Episode 3 How to work with WebBrowser Control in Windows Phone 7 Emulator
Episode 2 How to change Theme and Skin of Windows Phone 7 Emulator
Episode 1 How to Start developing for Windows Phone 7

What is Garbage collection?

Garbage Collection:

The .NET Framework uses automatic garbage collection to manage memory for all applications. When you use the new operator to create an object, the object's memory is obtained from the managed heap. When the garbage collector decides that sufficient garbage has accumulated that it is efficient to do so, it performs a collection to free some memory. This process is fully automatic, but there are a number of factors that you need to be aware of that can make the process more or less efficient. To understand the principles of garbage collection, you need to understand the life cycle of a managed object:

1. Memory for an object is allocated from the managed heap when you call new. The object's constructor is called after the memory is allocated.
2. The object is used for a period of time.
3. The object dies due to all its references either being explicitly set to null or else going out of scope.
4. The object's memory is freed (collected) some time later. After the memory is freed, it is generally available for other objects to use again.

The managed heap can be thought of as a block of contiguous memory. When you create a new object, the object's memory is allocated at the next available location on the managed heap. Because the garbagecollector does not need to search for space, allocations are extremely fast if there is enough memory available. If there is not enough memory for the new object, the garbage collector attempts to reclaim space for the new object.

To reclaim space, the garbage collector collects objects that are no longer reachable. An object is no longer reachable when there are no references to it, all references are set to null, or all references to it are from other objects that can be collected as part of the current collection cycle.
When a collection occurs, the reachable objects are traced and marked as the trace proceeds. The garbage collector reclaims space by moving reachable objects into the contiguous space and reclaiming the memory used by the unreachable objects. Any object that survives the collection is promoted to the next generation.

The garbage collector uses three generations to group objects by their lifetime and volatility:
● Generation 0 (Gen 0). This consists of newly created objects. Gen 0 is collected frequently to ensure that short-lived objects are quickly cleaned up. Those objects that survive a Gen 0 collection are promoted to Generation 1.
● Generation 1 (Gen 1). This is collected less frequently than Gen 0 and contains longer-lived objects that were promoted from Gen 0.
● Generation 2 (Gen 2). This contains objects promoted from Gen 1 (which means it contains the longest-lived objects) and is collected even less frequently. The general strategy of the garbage collector is to collect and move longer-lived objects less frequently.

The CLR provides two separate garbage collectors:
● Workstation GC (Mscorwks.dll). This is designed for use by desktop applications such as Windows Forms applications.
● Server GC (Mscorsvr.dll). This is designed for use by server applications. ASP.NET loads server GC but only if the server has more than one processor. On single processor servers, it loads workstation GC.
Server GC is optimized for throughput, memory consumption, and multiprocessor scalability, while the workstation GC is tuned for desktop applications. When using the server GC, the managed heap is split into several sections, one per CPU on a multiprocessor computer. When a collection is initiated, the collectorhas one thread per CPU; all threads collect their own sections simultaneously.
The workstation version of the execution engine (Mscorwks.dll) is optimized for smaller latency. Workstation GC performs collection in parallel with the CLR threads. Server GC
suspends the CLR threads during collection. You might sometimes need the functionality of the server GC for your custom application when hosting it on a multiprocessor computer. For example, you might need it for a Windows service that uses a .NET remoting host and is deployed on a multiprocessor server. In this scenario, you need to develop a custom host that loads the CLR and the server GC version of the garbagecollector.

What is Constructor Chaining in C#?

Constructor chaining is an approach where a constructor calls another constructor in the same or base class. You can't call constructors inside other constructors. A constructor can only chain another constructor to be called directly before it

First I would like to explain why need to Constructor chaining. Let take an example with Employee class.

class Employee {
    string _employeeType = "";
    string _id = "";
    string _fName = "";
    string _lName = "";

    public Employee (string id)

            _employeeType = "<employee_type>";
        _id = id;


    public Employee (string id, string fName)
            _employeeType = "<employee_type>";
        _fName = fName;
        _id = id;


    public Employee (string id, string fName, string lName) {
        _employeeType = "<employee_type>";
        _id = id;
        _fName = fName;
        _lName = lName;

This code is not used the constructor chaining but here is the issue with duplicate code. This is where constructor chaining is very useful. It will eliminate this problem. This time we only assign values in one constructor which consists of the most number of parameters. And we call that constructor when the other two constructers are called.

class Employee {
    string _employeeType = "";
    string _id = "";
    string _fName = "";
    string _lName = "";

    public Employee (string id)
        this(id, """") {


    public Employee (string id, string fName)
        this(id, fName, "") {


    public Employee (string id, string fName, string lName) {
        _employeeType = "<employee_type>";

        _id = id;
        _fName = fName;
        _lName = lName;

There was an error in this gadget
Get Twitter Fan Box Widget

Like Us On Facebook and Receive All Updates!

You can also receive Free Email Updates:

Powered By Tutorails