C#

How to get Attribute value of a Property in Code.

* Changing property attributes at runtime

http://bytes.com/topic/c-sharp/answers/548969-changing-property-attributes-runtime

여기에서 보면, DisplayNameAttribute 는 Readonly라는 말이 있다.

내가 원하는 DisplayAttribute는 일단 Readonly는 아니다.;;

아래 전체 소스코드가 있는데 파악해 봐야 할 것이다.

아래의 Localization도 도움이 될 것 같긴 하다.

 

Localization of DisplayNameAttribute

http://stackoverflow.com/questions/356464/localization-of-displaynameattribute

C# Display Name From Property Using Reflection

http://alandjackson.wordpress.com/2011/01/06/c-display-name-from-property-using-reflection/

 

reference

Using ICustomTypeProvider in Silverlight 5

http://www.damonpayne.com/post/2011/04/14/Using-ICustomTypeProvider-in-Silverlight-5.aspx

 

check

Dynamically setting the Header text of a Silverlight DataGrid Column

http://stackoverflow.com/questions/151682/dynamically-setting-the-header-text-of-a-silverlight-datagrid-column

HeaderBinding

util:DataGridColumnHelper.HeaderBinding

 

Advertisements

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