wpf usercontrol, lie le paramètre de commande du bouton au contrôle userc parent

J'ai un WPF UserControl qui contient un bouton supprimer, je voudrais passer la totalité de l'objet UserControl comme le CommandParameter.

Actuellement la liaison est définie à CommandParameter="{Binding RelativeSource={RelativeSource Self}}" qui me donne la touche, mais comment puis-je obtenir le contrôle entier?

Quelqu'un peut-il aider s'il vous plaît?

Acclamations,

Andy

<UserControl x:Class="GTS.GRS.N3.Controls.LabelledTextBox"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="100" />
        <ColumnDefinition Width="155" />
        <ColumnDefinition />
    </Grid.ColumnDefinitions>
    <Label Name="label" HorizontalAlignment="Left" Width="96">Label</Label>
    <TextBox Name="textBox" Grid.Column="1" />
    <Button Grid.Column="2" Style="{DynamicResource CloseButton}" Command="{Binding RemoveCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}}" Visibility="{Binding RemoveVisible}"></Button>
</Grid>
</UserControl>

source d'informationauteur Andy Clarke