WEB开发网
开发学院图形图像Flash Silverlight 2 转换和剪辑区域 阅读

Silverlight 2 转换和剪辑区域

 2009-02-09 11:52:17 来源:WEB开发网   
核心提示: 图 10 Page.xaml <UserControl x:Class="VideoOverlay.Page"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xm

Silverlight 2 转换和剪辑区域图 10 Page.xaml

<UserControl x:Class="VideoOverlay.Page"
 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
 <Grid x:Name="LayoutRoot" Background="Black">
  <Canvas Width="720" Height="480">
   <MediaElement x:Name="Player" Source="Videos/CRCC Jet Fly.wmv"
    Width="720" Height="480" MediaEnded="MediaElement_MediaEnded" />
   <Canvas Canvas.Top="448" Width="720" Height="32" Opacity="0.5">
    <Canvas.Clip>
     <RectangleGeometry Rect="0,0,720,32" />
    </Canvas.Clip>
    <Rectangle x:Name="Marquee" Width="720" Height="32" Fill="Black" />
    <TextBlock x:Name="Headlines" Canvas.Left="800" Canvas.Top="8"
     Foreground="White" FontSize="14">
     <TextBlock.Resources>
      <Storyboard x:Name="TickerStoryBoard"
       Completed="TickerStoryBoard_Completed">
       <DoubleAnimation x:Name="TickerAnimation"
        Storyboard.TargetName="Headlines"
        Storyboard.TargetProperty="(Canvas.Left)" />
      ...
</UserControl>

上一页  4 5 6 7 8 9 10  下一页

Tags:Silverlight 转换 剪辑

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接