Skip to content

WPF: Determining if an inherited property is set on an object or is inherited.

September 5, 2007

Internal email that may be helpful, read from the bottom to the top…

From: Helpful Person

It sounds like you want to use DependencyPropertyHelper.GetValueSource().
http://msdn2.microsoft.com/en-us/library/system.windows.dependencypropertyhelper.getvaluesource.aspx

Pass it your DependencyObject and the DependencyProperty you want to inspect, and it will return you a ValueSource.

Next look at the BaseValueSource property of the result.  If the property was set directly the value will be “Local”, if it was inherited from a parent it will say “Inherited”.

From: WPF App Coder
Subject: Identifying the source of a property?

I need to determine whether a particular property was set for an object or whether the object inherits it from its parent. E.g. DataContext property, once set for a Panel, will be the same on all children contained by the panel. I would like to know that it was defined for the Panel. Is there a way to do it?

From → WPF

25 Comments
  1. Unknown permalink

    wow gold cheap wow gold buy wow gold world of warcraft gold wow guide runescape runescape money wow gold cheap wow gold buy wow gold world of warcraft gold lotro lotro gold guild wars guild wars gold dofus dofus kamas nba live 火箭队 google排名 google左侧排名 google排名服务 maple story maple story mesos maple story maple story mesos

  2. Unknown permalink

    wow gold cheap wow gold buy wow gold world of warcraft gold wow guide runescape runescape money wow gold cheap wow gold buy wow gold world of warcraft gold lotro lotro gold guild wars guild wars gold dofus dofus kamas nba live 火箭队 google排名 google左侧排名 google排名服务 maple story maple story mesos maple story maple story mesos

  3. Unknown permalink

    wow gold cheap wow gold buy wow gold world of warcraft gold wow world of warcraft wow gold WoW Warrior WoW Hunter WoW Rogue WoW Paladin WoW Shaman WoW Priest WoW Mage WoW Druid WoW Warlock google排名 google左侧排名 google排名服务 百度推广 百度排名 机床 LED灯 电池 塑料 摄像机 电动车 包装设计 移民 甲醇 染料 体育博客 股票博客 游戏博客 魔兽博客 考试博客 logo design website design web design 商标设计

  4. Unknown permalink

    sell maple story mesos sell maple story mesos sell maple story mesos sell maple story mesos sell maple story mesos sell maple story mesos sell maple story mesos sell maplestory mesos sell maplestory mesos sell maplestory mesos sell maplestory mesos sell maplestory mesos sell maplestory mesos sell maplestory mesos sell maple story gold sell maple story gold sell maple story gold sell maple story gold sell maple story gold sell maple story gold sell maple story gold sell maple story money sell maple story money sell maple story money sell maple story money sell maple story money sell maple story money sell maple story money sell maplestory gold sell maplestory gold sell maplestory gold sell maplestory gold sell maplestory gold sell maplestory gold sell maplestory gold sell maplestory money sell maplestory money sell maplestory money sell maplestory money sell maplestory money sell maplestory money sell maplestory money maplestory trade maplestory trade maplestory trade maplestory trade maplestory trade maplestory trade maplestory trade maple story trade maple story trade maple story trade maple story trade maple story trade maple story trade maple story trade

  5. Unknown permalink

    sell wow gold sell wow gold sell wow gold sell wow gold sell wow gold sell wow gold sell wow gold sell wow gold sell wow gold sell wow gold wow gold wow gold wow gold wow gold wow gold wow gold wow gold wow gold wow gold wow gold sell wow cd key sell wow cd key sell wow cd key sell wow cd key sell wow cd key sell wow cd key sell wow cd key sell wow cd key sell wow cd key sell wow cd key trade wow gold trade wow gold trade wow gold trade wow gold trade wow gold trade wow gold trade wow gold trade wow gold trade wow gold trade wow gold wow gold trade wow gold trade wow gold trade wow gold trade wow gold trade wow gold trade wow gold trade wow gold trade wow gold trade wow gold trade wow trade wow trade wow trade wow trade wow trade wow trade wow trade wow trade wow trade wow trade

  6. Unknown permalink

     maple story mesos maple story mesos maple story mesos maple story mesos maple story mesos maple story mesos maplestory mesos maplestory mesos maplestory mesos maplestory mesos maplestory mesos maplestory mesos maple story gold maple story gold maple story gold maple story gold maple story gold maple story gold maplestory gold maplestory gold maplestory gold maplestory gold maplestory gold maplestory gold maple story money maple story money maple story money maple story money maple story money maple story money maplestory money maplestory money maplestory money maplestory money maplestory money maplestory money buy maple story mesos buy maple story mesos buy maple story mesos buy maple story mesos buy maple story mesos buy maple story mesos buy maplestory mesos buy maplestory mesos buy maplestory mesos buy maplestory mesos buy maplestory mesos buy maplestory mesos maple story maple story maple story maple story maple story maple story maplestory maplestory maplestory maplestory maplestory maplestory sell maple story mesos sell maple story mesos sell maple story mesos sell maple story mesos sell maple story mesos sell maple story mesos sell ms mesos sell ms mesos sell ms mesos sell ms mesos sell ms mesos sell ms mesos maple story shop maple story shop maple story shop maple story shop maple story shop maple story shop cheap msmesos cheap msmesos cheap msmesos cheap msmesos cheap msmesos cheap msmesos

  7. Unknown permalink

    sell maple story mesos sell maple story mesos sell maple story mesos sell maple story mesos sell maple story mesos sell maple story mesos sell maple story mesos sell maplestory mesos sell maplestory mesos sell maplestory mesos sell maplestory mesos sell maplestory mesos sell maplestory mesos sell maplestory mesos sell maple story gold sell maple story gold sell maple story gold sell maple story gold sell maple story gold sell maple story gold sell maple story gold sell maple story money sell maple story money sell maple story money sell maple story money sell maple story money sell maple story money sell maple story money sell maplestory gold sell maplestory gold sell maplestory gold sell maplestory gold sell maplestory gold sell maplestory gold sell maplestory gold sell maplestory money sell maplestory money sell maplestory money sell maplestory money sell maplestory money sell maplestory money sell maplestory money maplestory trade maplestory trade maplestory trade maplestory trade maplestory trade maplestory trade maplestory trade maple story trade maple story trade maple story trade maple story trade maple story trade maple story trade maple story trade

  8. Unknown permalink

    sell wow gold sell wow gold sell wow gold sell wow gold sell wow gold sell wow gold sell wow gold sell wow gold sell wow gold sell wow gold wow gold wow gold wow gold wow gold wow gold wow gold wow gold wow gold wow gold wow gold sell wow cd key sell wow cd key sell wow cd key sell wow cd key sell wow cd key sell wow cd key sell wow cd key sell wow cd key sell wow cd key sell wow cd key trade wow gold trade wow gold trade wow gold trade wow gold trade wow gold trade wow gold trade wow gold trade wow gold trade wow gold trade wow gold wow gold trade wow gold trade wow gold trade wow gold trade wow gold trade wow gold trade wow gold trade wow gold trade wow gold trade wow gold trade wow trade wow trade wow trade wow trade wow trade wow trade wow trade wow trade wow trade wow trade

  9. Unknown permalink

    lotro gold lotro gold lotro gold lotro gold lotro gold lotro gold lotro lotro lotro lotro lotro lotro buy lotro gold buy lotro gold buy lotro gold buy lotro gold buy lotro gold buy lotro gold lotr lotr lotr lotr lotr lotr lotr gold lotr gold lotr gold lotr gold lotr gold lotr gold lord of the rings gold lord of the rings gold lord of the rings gold lord of the rings gold lord of the rings gold lord of the rings gold lord of the rings online gold lord of the rings online gold lord of the rings online gold lord of the rings online gold lord of the rings online gold lord of the rings online gold

  10. Unknown permalink

    toefl

  11. Unknown permalink

    ECサイト構築   ウィークリーマンション
    治験 結婚指輪
    太陽光発電 結婚式 演出 吉原 ソープ
    債務整理
     害虫駆除 法律事務所 求人 看護師
     キャッシング
    転職 バイアグラ ショッピング枠 現金化  釣り 釣具
    別れさせ屋 価格   賃貸 
    不動産担保ローン  介護 看護師   会社設立   横浜中華街 ウェディングドレス  ウェディング
    カラコン 
    メル友 ウィークリーマンション
    自動車ガラス  不動産 ダイビング
     葬儀 東京ショッピング枠 現金化  データ復旧  テレマーケティング  RAID復旧 データ復元 データ復旧

  12. Unknown permalink

     

    ECサイト構築介護  葬儀 東京  治験 
    横浜中華街  会社設立
    データ復旧 結婚式 演出

  13. Unknown permalink

    男性下着   吉原 ソープ  威龍 デリヘル 勃起 不全  デリバリーヘルス   
     精力剤 インポ  すすきの デリヘル 人妻 風俗 精力剤  勃起薬 熟女

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: