<Grid x:Class="CustomElement"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

  <Button Click="OnButtonClick" Content="_Click me" />

</Grid>
