# kirupa.com - Silverlight/WPF: Adding UI Elements Programmatically - Page 4

**URL:** <https://forum.kirupa.com/t/kirupa-com-silverlight-wpf-adding-ui-elements-programmatically-page-4/642974>\
**Category:** programming\
**Created:** [May 25, 2018, 7:00am UTC](https://forum.kirupa.com/t/kirupa-com-silverlight-wpf-adding-ui-elements-programmatically-page-4/642974 "2018-05-25T07:00:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [May 25, 2018, 7:00am UTC](https://forum.kirupa.com/t/kirupa-com-silverlight-wpf-adding-ui-elements-programmatically-page-4/642974/1 "2018-05-25T07:00:00Z")

</div>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;by kirupa&nbsp; |&nbsp; 25 April 2009

In the [previous page](https://www.kirupa.comprogrammatically_adding_elements_pg3.htm), I explained how to programmatically assign events to event handlers. This page will wrap things up by explaining one advanced case involving events that you may run into.

* * *
This is a companion discussion topic for the original entry at [https://www.kirupa.com/blend\_silverlight/programmatically\_adding\_elements\_pg4.htm](https://www.kirupa.com/blend_silverlight/programmatically_adding_elements_pg4.htm)
