When you implement a custom dependency property and you register the property by calling DependencyProperty.Register, you specify some metadata for the property by passing it an instance of PropertyMetadata. This can be an instance of the PropertyMetadata class or an instance of one of its subclasses. The differences are shown below. PropertyMetadata – Basic metadata relating to dependency properties [...]
source: playingwith.net A couple of weeks ago I wrote my own Windows Phone app Lovely Neighbourhood which is showing pushpins on the Bing maps control for Windows Phone 7. Because there where quit some pushpins close to each other I decided to use pushpin clustering (sometimes called marker clustering) to make map in the app look less chaotic than with all the pushpins on the map. (There where a few regions where you couldn't even see the map anymore.) After a little search I found a blog post by Colin Eberhardt who has a guide to
href="http://www.scottlogic.co.uk/blog/colin/2011/11/pushpin-clustering-with-the-windows-phone-7-bing-map-control/">pushpin clustering in WP7. I started implementing and after a few changes it works fine in my app. But than I saw an app from my colleague which was not using pushpin clustering and also on his map view it was pretty hard to see the map. At that moment I started thinking about rewriting the pushpin clustering code in a generic way, so it would be easy to implement in any app. In this article I want to show you how to use my pushpin clustering component in your app. ...Read more...(Read whole news on source site)
I got some strange results when using concurrent collections, so I decided to try to track it down, and wrote the following code: var count = ?;
var list = new List
create 100,000 items.
Let us see how it works when we use more of this.
100 items in 5ms = 0ms per item
1,000 items in 37ms = 0ms per item
10,000 items in 2,319ms = 0ms per item
Note the numbers, will you?
1,000 items in 37 ms, but 10,000 items? 2.3 seconds!
20,000 items in 21,331ms = 1ms per item
And doubling the amount took ten times as long?
25,000 items in 32,588ms = 1ms per item
And at this point, I stopped trying, because I didn’t have the patience.
Note that the other concurrent collection, ConcurrentStack, ConcurrentQueue and ConcurrentDictionary do not suffer from the same problem.
I...(Read whole news on source site)
MSDN and Pluralsight Partner to Give a Free Pluralsight Starter Subscription - John Papa highlights an excellent deal for MSDN Subscribers which gives access to a great collection of Development tutorials from the folks over at PluralSight
Announcing New Windows Azure Services to Deliver "Hybrid Cloud" - Bill Laing gives a taste of some of [...]
I recently had the chance to Guest Blog for the Microsoft MVP Award Program Blog on “TechEd 2012– Silverlight MVP Michael Crump Shares Excitement”. Article Introduction This Sunday I will depart to Orlando, FL to attend TechEd 2012 which is Microsoft’s premier technology conference for IT Professionals and Developers. This is my first TechEd that I have had the chance of attending and I will be representing Telerik, where I have a focus in our XAML control suites. While I have been preparing for the trip, I decided to sit down and write out a short
list of what I’m most looking forward to this year and share it with the MVP Award Blog. So, in no particular order, here goes… The Full Article The full article is hosted on the MVP Award Program Blog and you can access it by clicking here. Don’t forget to rate it and leave comments if you have any problems.
Bill Laing, Microsoft Corporate VP Server and Cloud, posted Announcing New Windows Azure Services to Deliver “Hybrid Cloud” on 6/6/2012 at 1:03 PM, providing a preview of the content to be delivered at the MEET Windows Azure celebration to be held 6/7/2012 at 1:00 PM in San Francisco: “Hybrid cloud” – the use and building of applications that connect to data and services across a mix of datacenters – is the reality for cloud computing today. Your businesses and applications will move to the cloud in their own unique way, at their own unique
speed. Supporting this change requires a cloud solution that provides the necessary flexibility for the different ways you will architect, develop and deploy your applications and IT solutions– be it on-premises, in the cloud, or a mix of both. Tomorrow we will release previews of new Windows Azure services which simplify building applications that span cloud and on-premises servers. By combining infrastructure and platform services, these new capabilities of Windows Azure give you greater flexibility in how to build or bring your applications to the cloud. We will also add support for new operating systems,...(Read whole news on source site)