(X) Hide this
    • Login
    • Join
      • Generate New Image
        By clicking 'Register' you accept the terms of use .
        Login with Facebook

Creating an Intellisense Compatible Enum-Based Dependency Property

(0 votes)
0 comments   /   posted by Silverlight Show on Jun 04, 2012
Tags:   windows-phone , tim-dams

Read original post by Tim Dams at DZone

Actually, this post has a way too fancy title, because in fact I will merely show that enum-based dependency properties are IntelliSense compatible “out-of-the-box”. (by the way, if you know all about dependcy properties: simply read the line in bold and you’ll know all there is to know).

When creating a (WP7/SL/WPF) usercontrol, one often ends up creating one more dependency properties (DP). Most of the times you only want a discrete set of possible values that can be assigned to the DP. The logical choice then of course is to have an enum-based DP.


Comments

No comments

Add Comment

Login to comment:
  *      *       
Login with Facebook

Our News on Twitter


Latest News

  • Daily News Digest 6/5/2012
  • Visual Studio Live! Redmond is Coming This Summer. Win a Free Pass in SilverlightShow Contest!
  • Microsoft promises a sneak peek into the future of Windows Phone on June 20th
  • Windows Phone - Consume JSON Service