Recently Microsoft released Update 2 for Visual Studio 2012. If you installed the Update 2, you will get a new project template, under Windows Phone, Windows Phone Unit Test App. This will help you to create unit test project for Windows Phone 8 applications. Once you create the project, necessary references will be added to [...]
Posts Tagged: C#
How to use existing Database in Windows Phone
Normally in Windows Phone apps, we used to create Database in the Application Launch event, like the following And if there is any master tables you can write code to insert after database creation, like this. This approach is not feasible if you have lot of data, for example a Dictionary database. In such scenarios [...]
How to get all controls from a form at runtime in C#
Here is a code snippet which helps you to enumerate all the controls in a form. This snippet can be used for any control, to find the child controls. And you can invoke this function like this, to enumerate all the controls of a Form.
How to move a window or form without titlebar
In my current project I had to implement move for a Form, which doesn’t have a title bar or FormBorderStyle property set to None. Instead of title bar I was using a Panel with background Image. Here is the code snippet. As it is WIN32 API call, you need to import System.Runtime.InteropServices namespace.
Using Microsoft Ink Picture control
The InkPicture control provides the ability to place an image in an application and enable users to add ink on top of it. It is intended for scenarios in which ink is not recognized as text but is instead stored as ink. InkPicture control extends the default picturebox control. This post is about working with [...]
dotPeek 1.0 – Free .NET Decompiler and Assembly Browser
Today I got chance to explore dotPeek 1.0 from JetBrains. It supports decompiling .NET 1.0-4.5 assemblies to C#. You can find more details and download dotPeek from Jetbrains website.