Click here to Skip to main content
15,881,715 members
Articles / Web Development / ASP.NET

Silverlight Media Player

Rate me:
Please Sign up or sign in to vote.
4.05/5 (13 votes)
6 Apr 2009Public Domain2 min read 91.9K   5.6K   45  
Has some cool features like sliding menus with animation and Drag N Drop from menu
<UserControl x:Class="MediaPlayer.HorizontalGallery" x:Name="ucHGallery"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="400" Height="50">
    <Grid x:Name="LayoutRoot" Background="White" >
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="15" />
            <ColumnDefinition />
            <ColumnDefinition Width="15"/>
        </Grid.ColumnDefinitions>
        <Grid.Resources>
            <Storyboard x:Name="hideMenu">
                <DoubleAnimation  By=".1" From="0" To="1" Storyboard.TargetProperty="Opacity"
                                Storyboard.TargetName="rect" Duration="0:0:1" 
                                Completed="DoubleAnimation_Completed" >
                </DoubleAnimation>
            </Storyboard>
            <Storyboard x:Name="showMenu">
                <DoubleAnimation  By=".1" From="1" To="0" Storyboard.TargetProperty="Opacity"
                                 Storyboard.TargetName="rect" Duration="0:0:1"
                                 Completed="DoubleAnimation_Completed_1" >
                </DoubleAnimation>
            </Storyboard>
        </Grid.Resources>
        <Button Grid.Column="0" Content="&lt;" Click="Button_LClick"></Button>
        <Button Grid.Column="2" Content="&gt;" Click="Button_RClick"></Button>
        <Canvas Grid.Column="1" Background="LightBlue"  >
            <StackPanel Orientation="Horizontal" x:Name="imgGallery"  >

            </StackPanel>
            <Rectangle x:Name="rect" Fill="LightGray" Visibility="Collapsed" Height="50" Opacity="0" Width="370">
            </Rectangle>
        </Canvas>
    </Grid>
</UserControl>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under A Public Domain dedication


Written By
Software Developer (Senior) Geometric
India India
B.E. in Information Technology
MCTS(.NET 2.0 )

Comments and Discussions