---
id: 91
title: 'Silverlight 2 : Attached Properties'
slug: silverlight-2-attached-properties
date: '2008-05-11T16:09:00Z'
modified: '2008-05-11T16:09:00Z'
status: publish
type: post
author: pmoelgaard
categories:
  - Uncategorized
tags:
  - Silverlight
excerpt: null
canonicalPath: /posts/silverlight-2-attached-properties
featuredImage: null
commentCount: 1
wordCount: 73
readingTimeMinutes: 1
hasMedia: true
hasVideos: false
url: 'https://forwardthinking.pemo.me/posts/silverlight-2-attached-properties'
---
Attached Properties are an effective and quite neat way obtaining flexibility without sacrificing any means on encapsulation. Attached Properties are the ability for a nested control in a layout control to use the layout control's property from within a control, this is referred to as an Attached Property. For example, the Button object might use the Attached Property Canvas.Left to position itself with respect to the left border of a surrounding canvas.  
  
[![](/media/external/bp0.blogger.com/AttachedProperty.jpg)](http://bp0.blogger.com/_GJH4IvKJKGM/SCcauOJLtzI/AAAAAAAAACw/8oPgDLvutRw/s1600-h/AttachedProperty.jpg)
