We pay for user submitted tutorials and articles that we publish. Anyone can send in a contributionLearn More
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:
Now all we have to do is get the links to point to the interesting stuff.
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:
Where do you locate your convertors? do you put them in the Window.Resources section? or in the UserControl they are being used for? Neither of these options is good. You should put it in the App.Xaml file and here is why:
Lets look at the following example:
Here is our Window:
Hey all, Check out the top right corner of your screen! Dev102 has hit 1000 RSS readers!!! Thank you all for reading The Dev102 team.
While working on a complex UI application in WPF I noticed that because I was using DataTemplates both the Xaml and the Code Behind got very messy, that is because if you need to implement some events in the code behind you basically “mix” code from the template and code from the Window, plus you cannot access the elements in the template from the code behind.
Let’s look at the following example:
Yesterday I was trying to create a control with a partially transparent background,. I am writing this because what I thought was so straight forward, was not.
Here is a simple example:
When we run this example we will get the following:
As the Headline says, I will show you how to make a Drag and Drop / Move Content control. for this example I will use a canvas and an Image. But you can easily make it more generic by using a Content Control instead of the image.
It is actually very simple, let’s start with the Xaml Code.
As you can see we are using a canvas and an Image.
to implement the drag and move we will need to use the following events:
Nothing interesting happened this month, Except the fact that we are very busy and have almost no time to write. We are hoping to change that.
We remind you that if you want to make a quick 30$ all you have to do is to drop us an good article, you can get more information on our Make Money Writing Articles Page
Here are Januarys Stats:
In my latest article I discussed Scrolling and Binding to large collections in WPF. We saw some disturbing behavior when binding a large collection to an ItemsControl. After Further Examination I found out very interesting things regarding that matter.
We saw that the application used about 500MB of Ram. Lets look at the code again:
One year has passed!!! And we are still here!!! We started back there in January 13th with 6 visits and went on to have over 1000 visits daily, From 0 RSS readers to around 900 From 0 posts to close to 200, from 0 comments to over 1800.
Indeed it was a great year, and we are looking forward to the next one!
Thanks to everyone who read, commented, and participated.
Copyright © 2012 Dev102.com
Breeze : Designed by Amit Raz and Nitzan Kupererd