<p>I have a ListBox that has a style defined for ListBoxItems.  Inside this style, I have some labels and a button.  One that button, I want to define a click event that can be handled on my page (or any page that uses that style).  How do I create an event handler on my WPF page to handle the event from my ListBoxItems style?</p>

<p>Here is my style (affected code only):</p>

<pre><code>&lt;Style x:Key="UsersTimeOffList"  TargetType="{x:Type ListBoxItem}"&gt;
... 
&lt;Grid&gt;
&lt;Button x:Name="btnRemove" Content="Remove" Margin="0,10,40,0" Click="btnRemove_Click" /&gt;
&lt;/Grid&gt;
&lt;/Style&gt;
</code></pre>

<p>Thanks! </p>

You could create a user control (.ascx) to house the listbox. Then add a public event for the page.
```
```
Public Event btnRemove()
```
```
Then on the button click event in the usercontrol
```
```
RaiseEvent btnRemove()
```
```
You can also pass objects through the event just like any other method. This will allow your user control to tell your page what to delete.