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

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