Geeks With Blogs
shmoolca wpf programming Memorandum In this section I will input notes, that not even deserve to be a post. Those will be my comments, that I would like to be not forgotten.
My new LOVE

I'm truly in love in Extension Methods. Awesome!

Posted On Wednesday, September 1, 2010 12:30 PM

Creating GUI using BackgroundWorker
/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans... mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-... ......

Posted On Friday, October 9, 2009 10:57 AM

memory leaks
/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans... mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-... ......

Posted On Monday, September 14, 2009 4:04 PM

Differences between casting and „as” keyword
Main difference is that casting to wrong type throw an exception and an “as” keyword just return null. So if I would like to search specified type in VisualTree I can use “as” keyword and check is object not null or I can use “is” keyword. But when I would like to take not reference object like generics KeyValuePair from object type I will have to use casting to unpack the value type. This is because value types do not inherit from object so they are not objects and cannot use keyword as.

Posted On Tuesday, July 14, 2009 5:52 PM

Not obvious method name
To get TemplateChild from DataTemplate use FindName method. In my opinion more adequate name is FindByName.

Posted On Tuesday, July 14, 2009 5:29 PM

Performance issue
If there is no need to change freezable object anymore, always remember to call freeze method.

Posted On Sunday, July 12, 2009 1:48 PM

Copyright © Anna Bauza | Powered by: GeeksWithBlogs.net