views:

72

answers:

0

Hi all

i am new to WPF and i created user control consist of :

1) media element ,,, 2) 2 Text blocks ,,, 3) 2 buttons to play and pause the media

everything is good with my user control except the two buttons

i can not click them when i add the user control to any 3d panel .

if i add my user control to simple window i can use play and pause buttons otherwise no.

here is my control xaml

<UserControl x:Class="myReportThumpnailsPageUserCntrl.myReportControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Height="450" Width="350" Background="LightGray">
<Grid Height="450">
    <Grid.RowDefinitions>
        <RowDefinition Height="306*" />
        <RowDefinition Height="144*" />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="221*" />
        <ColumnDefinition Width="23*" />
        <ColumnDefinition Width="106*" />
    </Grid.ColumnDefinitions>
           <MediaElement Margin="18,38,18,39" Name="mediaElement1" Grid.ColumnSpan="3"/>

    <TextBlock Height="138" Margin="18,0,18,43" Name="ReportSummarytextBlock" Text="{Binding}" VerticalAlignment="Bottom" Foreground="White" Grid.ColumnSpan="3" Grid.RowSpan="2" />

    <Button Height="36" HorizontalAlignment="Left" Margin="28,0,0,22" Name="PlayBtn" VerticalAlignment="Bottom" Width="40" Click="PlayBtn_Click" Grid.Row="1" Cursor="Hand" >

    </TextBlock>
</Grid>

Thank you in advance. Majed