Directory Freebies VS CheatSheet Forum

RSS

Email

Translate

Home About Archive Privacy Contact Advertise Write for Dev102
Posted by Amit on Jul 12th, 2009 | Filed under C# | 1 Comment

Hey all
 
I am sorry for the long absence but I just got married and went on a great honeymoon, so I was not around!
 
I hope things will start to pick up from now.
 
Just wanted to let you all know that we are back online, and to tell you that we have updated the Write [...]


Continue Reading...
Posted by Amit on May 28th, 2009 | Filed under .Net, WPF | 6 Comments

Hi

 

When working with WPF I always found myself thinking how to handle Data formatting when a WPF control was bound to it. Let’s look at the following example of a window with a TextBlock that displays a DateTime:

   1: <Window x:Class="BindingFormat.Window1"

   2:     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

   3:     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

   4:     Title="Window1" Height="300" Width="300">

   5:     <Grid>

   6:         <TextBlock Text="{Binding}"></TextBlock>

   7:     </Grid>

   8: </Window>


Continue Reading...
Posted by Amit on May 25th, 2009 | Filed under .Net, Silverlight, WPF | 1 Comment

This article was written by Alan Mendelevich

The Problem

Creating a shape with bullets on the joints of it’s segments sounds like a really trivial task at a first glance. Just plaster some bullets on top of the shape. And it is really something like this until you decide you want to have transparent outlined bullets or opaque bullets with transparent outline around them. Like the ones in this picture:

bulleted_path_samples

 


Continue Reading...
Posted by Amit on May 4th, 2009 | Filed under .Net, WPF | Leave a Comment

This article was written by Alan Mendelevich

 

Hi

 

Recently I’ve been working on a set of custom WPF controls.

There are numerous good books and articles about WPF in general and some basic information on custom control development but I have yet to find a good article (or book) with in-depth coverage of custom control development in general and design-time related issues in particular.

 


Continue Reading...

Hey all,

 

a while back we had 2 great posts and one page about visual studio shortcuts. The first one had a list of 10 Visual Studio Shortcuts and the second one had 11 Visual Studio Shortcuts. We also have a Visual Studio CheatSheet with all the Keyboard shortcuts Visual Studio has.

 

Here is another list of 5 Shortcuts I have picked up along the way.

 


Continue Reading...
Posted by Amit on Apr 17th, 2009 | Filed under Misc., Technology & Internet | Leave a Comment

Hey all.

 

Nothing new for this month so apart from reminding you that if you want to make a quick 30$ all you have to do is to drop us an good unique article (you can get more information on our Make Money Writing Articles Page). I will move on to the stats.

 

Here are March’s Stats:


Continue Reading...

Hi

 

I wanted to show the usage of these two very useful debugger attributes. If you don’t know them keep on reading, they are very useful.

 

DebuggerDisplay

This attribute allows you to customize the way an object is displayed. lets look at the following example:


Continue Reading...
Posted by Amit on Apr 2nd, 2009 | Filed under .Net, WPF | 7 Comments

Hi

 

Here is a problem that one of my colleagues who is just starting to use WPF got himself into. He was working on an application that displays items using an ItemsControl and uses a DataTemplate. Inside the DataTemplate he used an Image. Here is the Xaml code:

 

   1: <Window.Resources>
   2:         <Image Source="Creek.jpg" x:Key="IMG"></Image>
   3:     </Window.Resources>
   4:     <Grid>
   5:         <ItemsControl ItemsSource="{Binding}">
   6:             <ItemsControl.ItemTemplate>
   7:                 <DataTemplate>
   8:                     <Border BorderThickness="2" BorderBrush="Black" 
   9:                             CornerRadius="3" MinHeight="10">
  10:                         <ContentControl Content="{StaticResource IMG}"/>
  11:                     </Border>
  12:                 </DataTemplate>
  13:             </ItemsControl.ItemTemplate>
  14:         </ItemsControl>
  15:     </Grid>

This is a much simpler example, but the principal is the same.

 

Can you see what was he doing wrong?


Continue Reading...
Posted by Amit on Mar 17th, 2009 | Filed under C# | 1 Comment

p>Hey all.

 

This weekend I typed Dev102 on google just to see what I will get and guess what? We have joind the big league :) We have site links!! This is what you get when you type Dev102 in Google:

Dev102 Site Links

 

Now all we have to do is get the links to point to the interesting stuff.


Continue Reading...
Posted by Amit on Mar 10th, 2009 | Filed under .Net, C#, WPF | Leave a Comment

Hi

 

A while ago Shahar wrote an article about whether WPF Data Binding is Thread safe. Shahar’s findings were that Even if you change a property from a different thread the PropertyChanged event will be called on the UI Thread making Binding Thread Safe.

I have created a Window with 2 TextBlocks, one of them is binded to a Dependency Property and the other is binded to a regular property:

The Window:

   1: <StackPanel>
   2:     <TextBlock Text="{Binding DpTxt}" Width="100" Margin="5"></TextBlock>
   3:     <TextBlock Text="{Binding Txt}" Width="100" Margin="5"></TextBlock>
   4:     <Button Content="Change Text" Margin="5" Click="Button_Click"></Button>
   5: </StackPanel>


Continue Reading...
Write Article for Dev102

Write for Dev102!

We pay for user submitted tutorials and articles that we publish. Anyone can send in a contribution

Learn More