May
14th

How To Add a MouseDoubleClick Event To Any WPF Control

Posted by Amit |
Filed under .Net, WPF |

Last week I was faced with a problem. I needed to implement a MouseDoubleClick Event on a WPF Grid. I said Ha, easy but as i went on to implement it i realized that the Grid has no MouseDoubleClick Event! So how am I supposed to implement it? I came up with 2 solutions and so here goes:

  1. the first thought i had was to create a User Control that held only a grid and implement the MouseDoubleClick on the User Control itself so what you will get is this Xaml code:
  2. <UserControl x:Class=”CustomDoubleClick.GridWrapper”
        xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation”
        xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml”
        Height=”300″ Width=”300″>
        <Grid>
    
        </Grid>
    </UserControl>
    Since the Grid takes the…

    Continue Reading...
May
6th

11 More Visual Studio Shortcuts You Should Know

Posted by Amit |
Filed under Visual Studio |

Visual Studio Keyboard Shortcuts Since we got so many comments with lots of useful information on our Visual Studio Shortcuts post we decided to use those comments and some other shortcuts we found and compile another list so lets get going

 


Continue Reading...
May
2nd

Blog Stats for April 2008

Posted by Amit |
Filed under C# |

cool_graf copy copy

April is gone and we are definitely on the go!

During April we have hit the 50 posts mile stone and the traffic has increased substantially. We would like to thank all our readers and hope for a better month in May, without further due, here are the stats (again, last months numbers are in brackets):


Continue Reading...
Apr
29th

A Great Visual Studio Add-on You Must Have

Posted by Amit |
Filed under Utilities, Visual Studio |

Recently I found out this great add-on for Visual Studio 2008 called PowerCommands. PowerCommands Extends the functionality of Visual Studio 2008 by adding some features which we all want built into Visual Studio. PowerCommands provides the following:

My favorite: Copy Reference, very useful indeed, and you all know it, just right click on the reference you [...]


Continue Reading...
Apr
21st

A Bug in WPF Static Resources?

Posted by Amit |
Filed under C#, WPF |

Yesterday I played around with WPF resources and stumbled on a very strange behavior. It seems that the order of the elements in the resources have some importance as to how the application handles them. A few code examples are attached


Continue Reading...
Apr
17th

10 Visual Studio Shortcuts You Must Know

Posted by Amit |
Filed under Visual Studio |

This is a list of 10 great shortcuts me and my co workers use frequently, we thought you all should know too. Here they are:

CTRL + “.”: This is actually a shortcut for a shortcut. it is the same as CTRL + SHIFT + F10 which opens the smart tag window and allows you to [...]


Continue Reading...
Apr
15th

How to Create a Word Like Font Selection in WPF ComboBox

Posted by Amit |
Filed under C#, WPF |

If you are writing an application that uses font you will find this post very useful. Making a font selecting ComboBox that shows a preview of the fonts in WPF is very easy, here is how to do it:
First we will have to create the ComboBox Code, this is a regular ComboBox we have all [...]


Continue Reading...
Apr
9th

Is It Possible? .NET Applications for iPhone?

Posted by Amit |
Filed under .Net |

According to this site It seems that Yes!
The Linux Project Mono was recently converted to the iPhone platform. Pay close attention that this is only the start but it seem that the day when we will see .NET applications running on iPhones is not far away… The question is will the iPhone still be around [...]


Continue Reading...
Apr
1st

Blog Stats for March 2008

Posted by Amit |
Filed under Technology & Internet |

Hi all
Another month is over and here are the stats again.
First i would like to Welcome Shahar and Shahar who have joined forces here with me at Dev102. We will all be running Dev102 together to provide more and better content to all of you. And now to the stats (last month stats are in [...]


Continue Reading...
Mar
30th

5 Firefox Extensions Any Web Developer Must Have

Posted by Amit |
Filed under Utilities, Web Development |

We all know that Firefox has tons of plug-ins and add-on’s, but there are a few any web developer must know and use. The description and screenshots are taken from the Firefox add-ons site.

CSSMate: Inline CSS Editing Evolved. Originally a port of the fantastic EditCSS tool that I’ve been using for many months. I’ve gutted [...]


Continue Reading...