Custom Window Chrome in WPF

About a month ago I posted a teaser video that I would be doing a screencast on developing a fully functional custom window chrome for WPF. Well, it's here. I did miss my mark by 8 days though, I had originally wanted to complete it by the 1st. Anyways, here's the demo source code for the video.

Screencast Code:
Custom Window Chrome Demo_2013-03-09 21-35-24Z

364 Comments

  1. Pingback: kingmaker casino

  2. Pingback: bulbea

  3. Pingback: best crypto casino reddit

  4. Pingback: reputation partners

  5. Pingback: agents

  6. Pingback: ساوند كلاود

  7. Pingback: مميزات زيادات

  8. Pingback: سياسة الاسترجاع

  9. Pingback: شروط الاستخدام

  10. Pingback: موزع

  11. Pingback: رشق لايكات انستقرام

  12. Pingback: تسجيل جديد

  13. Pingback: كتابة محتوى

  14. Pingback: نسيت كلمة المرور

  15. Pingback: زيادة زوار الموقع

  16. Pingback: ثريدز

  17. Pingback: esports

  18. Pingback: shaka

  19. Pingback: esports

  20. Pingback: WishHour.Com

  21. Pingback: WishHour.Com

  22. Pingback: WishHour.Com

  23. Pingback: WishHour.Com

  24. Pingback: WishHour.Com

  25. Pingback: WishHour.Com

  26. Pingback: WishHour.Com

  27. Pingback: WishHour.Com

  28. Pingback: WishHour.Com

  29. Pingback: WishHour.Com

  30. Pingback: WishHour.Com

  31. Pingback: kooky

  32. Pingback: CA Fixer Upper Homes

  33. Pingback: San Jose Best Real Estate Agent Arpad Racz

  34. Pingback: Silicon Valley New Construction Homes

  35. Pingback: digital mailbox

  36. Pingback: nude chat

  37. Pingback: sex cams

  38. Pingback: trc20 browser

  39. Pingback: vanity address generator

  40. Pingback: epoch time to date

  41. Pingback: current utc time

  42. Pingback: calculate time difference

  43. Pingback: cron job scheduler

  44. Pingback: international meeting planner

  45. Pingback: jain daily rituals time

  46. Pingback: casino en ligne canada

  47. Pingback: rebirth ro

  48. Pingback: cheap sex webcams

  49. Pingback: cheap cam sex

  50. Pingback: live webcam sex

  51. Pingback: free sex chat

  52. Pingback: cheap video chat

  53. Pingback: live webcam sex

  54. Pingback: live sex shows

  55. Pingback: cheap adult webcams

  56. Pingback: cam sex

  57. Pingback: sex chat

  58. Pingback: cam girls

  59. Pingback: cheap sex chat

  60. Pingback: free cam sex

  61. Pingback: live sex chat

  62. Pingback: free cam girls

  63. Pingback: cheap amateur webcams

  64. Pingback: sex chat

  65. Pingback: online pharmacy viagra generic

  66. Pingback: p force tablets price

  67. Pingback: Tadalafil Buy

  68. Pingback: super p force jelly

  69. Pingback: Ventolin accuhaler

  70. Pingback: prednisolone sod

  71. Pingback: where can i buy Ventolin inhaler

  72. Pingback: kamagra 50mg

  73. Pingback: tadaga

  74. Pingback: cialis black benefits

  75. Pingback: order Fildena 100mg online cheap

  76. Pingback: Azithromycin 500 mg tablet

  77. Pingback: viagra pill walgreens

  78. Pingback: +38 0950663759 - Володимир (Сергій) Романенко, Одеса – відправив товар, але при отриманні товар виявився не робочим. Запит на повернення/обмін ігнорується. OLX шахрай.

  79. Pingback: generic plaquenil

  80. Pingback: super p force

  81. Pingback: levitra vs kamagra

  82. Pingback: Ventolin inhaler usa

  83. Pingback: qvar inhaler 100 mcg

  84. Pingback: buy Ventolinbuy Ventolin inhaler

  85. Pingback: kamagra uk next day delivery

  86. Pingback: kamagra super 100 mg

  87. Pingback: cenforce fm pink

  88. Pingback: albuterol inhalers

  89. Pingback: almox 250 price

  90. Pingback: Zithromax z-pak

  91. Pingback: Vidalista 20 mg from india garbage

  92. Pingback: ciplox d ear drops composition

  93. Pingback: Cenforce 200 for sale

  94. Pingback: voltaren gel 1 canadian pharmacy

  95. Pingback: wix seo service

  96. Pingback: wix seo specialists

  97. Pingback: wix seo professional

  98. Pingback: wix seo experts

  99. Pingback: wix seo professional

  100. Pingback: wix seo service

  101. Pingback: ummalife.com/post/520518

  102. Pingback: bento.me/fildena-100

  103. Pingback: cathopic.com/@iverwon

  104. Pingback: datos.cdmx.gob.mx/user/sildenafil

  105. Pingback: community.isc2.org/t5/user/viewprofilepage/user-id/822364665

  106. Pingback: cenforceindia.com

  107. Pingback: priligyforte.com

  108. Pingback: plaqcmd.com

  109. Pingback: ragnarok origin private server

  110. Pingback: tadalafilendy.com

  111. Pingback: priligype.com

  112. Pingback: vidalista.beauty

  113. Pingback: iwermectin.com

  114. Pingback: viahelpmen.wordpress.com

  115. Pingback: fildena.hair

  116. Pingback: zithropak.com

  117. Pingback: ivermectineffects.com

  118. Pingback: dapoxetinedon.com

  119. Pingback: stromectolist.com

  120. Pingback: ciahelp.wordpress.com

  121. Pingback: plaquenilsvo.com

  122. Pingback: right choice trial ribociclib

  123. Pingback: motilium vs motilium v

  124. Pingback: what is a maltipoo dog

  125. Pingback: maltese yorkie mix dog

  126. Pingback: shih poo dogs

  127. Pingback: springer spaniel poodle cross

  128. Pingback: can puppy eat bread

  129. Pingback: american bully life span

  130. Pingback: miniature bulldog

  131. Pingback: cialis super active contrareembolso

  132. Pingback: generative engine optimization

  133. Pingback: blue french bulldog

  134. Pingback: how to obtain dog papers

  135. Pingback: yorkiepoo

  136. Pingback: yacht rentals in cancun mexico

  137. Pingback: when should i take azithromycin

  138. Pingback: how to obtain dog papers

  139. Pingback: dog registry

  140. Pingback: designer kennel club

  141. Pingback: buy cenforce 200mg online

  142. Pingback: afinitor free trial

  143. Pingback: buy cenforce 100 uk

  144. Pingback: Probenecid 250mg tablet

  145. Pingback: French Bulldog puppies in Austin

  146. Pingback: French Bulldog Texas

  147. Pingback: bitcoin

  148. Pingback: french bulldog puppies for sale under $500

  149. Pingback: Vidalista 20

  150. Pingback: purple Fildena 100 mg tablets

  151. Pingback: french bulldog rescue

  152. Pingback: condiciones climaticas queretaro

  153. Pingback: best joint supplement for dogs

  154. Pingback: super p force 200mg

  155. Pingback: kamagra oral jelly pack

  156. Pingback: kamagra 50mg price

  157. Pingback: kamagra oral jelly how to use video

  158. Pingback: french bulldog puppies near me for sale

  159. Pingback: french bulldog rescue

  160. Pingback: linh hoang

  161. Pingback: isla mujeres climate

  162. Pingback: best food for bernedoodles

  163. Pingback: in vitro fertilization mexico

  164. Pingback: in vitro fertilization mexico

  165. Pingback: french bulldog houston texas

  166. Pingback: buy redihaler

  167. Pingback: Vidalista mg60

  168. Pingback: ivscab

  169. Pingback: kamagra gel

  170. Pingback: stromectol cost

  171. Pingback: micro frenchie

  172. Pingback: micro french bulldog

  173. Pingback: french bulldog puppies texas

  174. Pingback: travel buddy

  175. Pingback: isla mujeres golf cart

  176. Pingback: joyce echols

  177. Pingback: viet travel tours

  178. Pingback: Nolvadex 20mg 90 tablet

  179. Pingback: geo

  180. Pingback: zofran tablet and amoxil tablet price

  181. Pingback: timolol vs betaxolol

  182. Pingback: stromectoluk.com

  183. Pingback: olimelt 15

  184. Pingback: cialis tadalafil oral jelly

  185. Pingback: zoloft dosage

  186. Pingback: buspirone generic name

  187. Pingback: tadalafil generic

  188. Pingback: clincitop gel cream

  189. Pingback: lilac french bulldogs

  190. Pingback: french bulldogs

  191. Pingback: fluffy french bulldog

  192. Pingback: prednisolone for dogs dosage

  193. Pingback: lilac french bulldogs

  194. Pingback: french bulldogs

  195. Pingback: cenforce 200 mg best price

  196. Pingback: lilac french bulldogs

  197. Pingback: fluffy french bulldog

  198. Pingback: merle french bulldog

  199. Pingback: nitrostat 0.6 mg

  200. Pingback: clomid 50mg for male

  201. Pingback: travatan vs travoprost

  202. Pingback: prednisone

  203. Pingback: Can i order clomid for sale

  204. Pingback: generic for revatio

  205. Pingback: 100 mg Levitra

  206. Pingback: online viagra

  207. Pingback: folding hand fans

  208. Pingback: frenchie chihuahua mix

  209. Pingback: floodle puppies for sale

  210. Pingback: floodle puppies for sale

  211. Pingback: frenchie boston terrier mix

  212. Pingback: floodle puppies for sale

  213. Pingback: vidalista.pics

  214. Pingback: otclevitra.com

  215. Pingback: otcalbuterol.net

  216. Pingback: fildena.homes

  217. Pingback: cheap generic viagra french kamagra

  218. Pingback: Tadalafil from india

  219. Pingback: marfa prada poster

  220. Pingback: chanel activewear

  221. Pingback: need money for porsche

  222. Pingback: french bulldog accessories

  223. Pingback: chanel dog bowl

  224. Pingback: crypto news

  225. Pingback: Impotence is not a normal part of aging and may respond well to what are viagra pills.

  226. Pingback: Kim Miyang Acupuncturist & Herbalist

  227. Pingback: cenforce 200mg 10 euro

  228. Pingback: lasix furosemide

  229. Pingback: best probiotic for english bulldog

  230. Pingback: probiotic dog treats

  231. Pingback: French Bulldog For Sale

  232. Pingback: French Bulldog For Sale

  233. Pingback: Frenchie Puppies

  234. Pingback: Frenchie Puppies

  235. Pingback: Frenchie Puppies

  236. Pingback: Frenchie Puppies

  237. Pingback: French Bulldog Puppies Near Me

  238. Pingback: French Bulldog For Sale

  239. Pingback: golf cart rentals tips

  240. Pingback: vigrakrs.com

  241. Pingback: advair diskus 250 50

  242. Pingback: fildena soft serve

  243. Pingback: cathopic.com/@vidalistablack

  244. Pingback: forum.hcpforum.com/vilitrauses

  245. Pingback: kamagra

  246. Pingback: ventolinha.wordpress.com

  247. Pingback: profcial.wordpress.com

  248. Pingback: fildena 50 mg

  249. Pingback: onglyza saxagliptin

  250. Pingback: amoxforyou.wordpress.com

  251. Pingback: zithrom.wordpress.com

  252. Pingback: viasuper.wordpress.com

  253. Pingback: neuronforyou.wordpress.com

  254. Pingback: golf cart rental isla mujeres

  255. Pingback: clima en atizapán de zaragoza

  256. Pingback: minnect expert

  257. Pingback: elizabeth kerr

  258. Pingback: levitinfo.wordpress.com

  259. Pingback: viagra pills over the counter

  260. Pingback: order cialis online

  261. Pingback: viagra buy over counter

  262. Pingback: kamagra jelly pack

  263. Pingback: order sildenafil for sale

  264. Pingback: imrotab 12

  265. Pingback: famvir 250 mg price

  266. Pingback: buy cenforce 150 with credit card

  267. Pingback: French Bulldog Rescue

  268. Pingback: French Bulldog Rescue

  269. Pingback: French Bulldog Rescue

  270. Pingback: rent a yacht in cancun

  271. Pingback: french pitbull

  272. Pingback: Instagram URL Shortener

  273. Pingback: Dog Registry

  274. Pingback: Dog Papers

  275. Pingback: Dog Registry

  276. Pingback: Dog Papers

  277. Pingback: Dog Registry

  278. Pingback: Dog Registry

  279. Pingback: Dog Papers

  280. Pingback: Dog Registry

  281. Pingback: Dog Papers

  282. Pingback: Dog Registry

  283. Pingback: Dog Registry

  284. Pingback: Dog Papers

  285. Pingback: Dog Registry

  286. Pingback: Dog Registry

  287. Pingback: Dog Registry

  288. Pingback: How To Obtain Dog Papers

  289. Pingback: Dog Breed Registries

  290. Pingback: Dog Breed Registries

  291. Pingback: How To Obtain Dog Papers

  292. Pingback: Dog Papers

  293. Pingback: How To Get My Dog Papers

  294. Pingback: clomidzsu.com

  295. Pingback: dapoxetineus.com

  296. Pingback: lipipzdfrty.com

  297. Pingback: otcalbuterol.com

  298. Pingback: vidalista 60 mg price

  299. Pingback: commander cialis en belgique

  300. Pingback: floodle

  301. Pingback: probiotics for french bulldogs

  302. Pingback: frenchie yorkie mix

  303. Pingback: wix seo

  304. Pingback: linh

  305. Pingback: culiacan clima

  306. Pingback: clima cancún

  307. Pingback: mexican candy near me

  308. Pingback: bjj jiu jitsu cypress texas

  309. Pingback: bjj jiu jitsu magnolia texas

  310. Pingback: french bulldog

  311. Pingback: brazilian jiu jitsu in houston

  312. Pingback: magnolia bjj

  313. Pingback: crypto news

  314. Pingback: sui

  315. Pingback: gaming

  316. Pingback: chanel bucket hat

  317. Pingback: french bulldog puppies for sale in texas

  318. Pingback: french bulldog texas

  319. Pingback: linh hoang

  320. Pingback: mexican candy store near me

  321. Pingback: mexican candy store near me

  322. Pingback: mexican candy store near me

  323. Pingback: mexican candy store near me

  324. Pingback: mexican candy store near me

  325. Pingback: mexican candy store near me

  326. Pingback: mexican candy store near me

  327. Pingback: mexican candy store near me

  328. Pingback: we buy dogs

  329. Pingback: dog probiotic

  330. Pingback: massachusetts boston terriers

  331. Pingback: 늑대닷컴

  332. Pingback: family ho

  333. Pingback: 늑대닷컴

  334. Pingback: french bulldogs to rescue

  335. Pingback: alexa collins

  336. Pingback: hairdresser in houston

  337. Pingback: french bulldog blue color

  338. Pingback: lilac frenchies

  339. Pingback: black frenchies

  340. Pingback: french bulldog puppies for sale $200

  341. Pingback: best french bulldog breeder

  342. Pingback: rent a yacht in cancun

  343. Pingback: isla mujeres condo

  344. Pingback: mexican candy store

  345. Pingback: download rust cheats

  346. Pingback: securecheats halo hacks

  347. Pingback: download hunt cheats

  348. Pingback: securecheats xdefiant hacks

  349. Pingback: aimbot vanguard

  350. Pingback: undetected battlebit hacks

  351. Pingback: micro french bulldog

  352. Pingback: french bulldog puppies near me

  353. Pingback: designer dogs

  354. Pingback: french bulldog rescue

  355. Pingback: clima en chimalhuacan

  356. Pingback: best probiotic for french bulldogs

  357. Pingback: esports domain

  358. Pingback: FB URL Shortener

  359. Thomas Heinze

    Hi David,

    nice tutorial. I’ve working your CustomWindow in my Application.
    Now I want to add a resizegrip for the template but if i add the resizegrip in the template

    I had a white resizegrip on the right site. How can i change that.

    Thanks Thomas

  360. Eugene

    Hello David

    Thanks for the great tutorial, I have been searching for hours with nothing close to what you created.

    There is one thing I am struggling with. If Window’s taskbar is set to autohide, then I cannot bring it back up by taking the mouse pointer to the bottom of the screen as with other programs. With normal WPF window it does work however, so I am guessing there is some windows parameter missing or something.

    Thanks again.

    http://windows.microsoft.com/en-za/windows/show-hide-taskbar#1TC=windows-7

  361. Sertan

    Not sure if this is still relevant but replying just in case it might help. Without an adorner layer, adorners will not render. Adorner layer can be on the control or parent / grandparents of the control in the visual tree.
    In this case if you wrap with , Adorners used inside the window will render as expected.

  362. Sushil

    Got it working! Thanks for your useful suggestion.
    One more issue with custom chrome I was not able to use adorner layer in order to resize controls on the fly.

  363. Sushil

    Hi David,

    Thanks for creating this video as it is quite useful. Could you please tell me how can create sub a sub window/User Control with this chrome. I tried to create a second window but it is throwing “Window must be the root of the tree. Cannot add Window as a child of ” error. Someone told me that I can use User Control to do that but again I getting default window chrome. Please Help.

    1. David Anderson (Post author)

      You have to do something like:

      public class CustomWindow : Window { }
      public class SubClassedWindow : CustomWindow { }

      <myXmlNs:SubClassedWindow> …

      There isn’t such a thing as Xaml inheritance unfortunately, and you can’t nest a Window in Xaml, it must be the outer most Xaml element in the Visual Tree.

Leave a Comment