Microsoft® Surface® Live Stream Code Sample

ive Stream enables businesses to engage their customers face-to-face using the most recent and relevant Twitter™, Flickr®, and RSS newsfeeds.

C# (5.9 MB)
 
 
 
 
 
4.3 Star
(4)
6,627 times
Add to favorites
4/19/2011
E-mail Twitter del.icio.us Digg Facebook

Solution explorer

C#
<s:SurfaceWindow
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:s="http://schemas.microsoft.com/surface/2008"
                 xmlns:controls="clr-namespace:LiveStream.Controls"
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                 xmlns:props="clr-namespace:LiveStream.Properties"
                 xmlns:ic="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions" x:Class="LiveStream.SurfaceWindow"
                 mc:Ignorable="d"
                 Title="Live Stream">
  <s:SurfaceWindow.Resources>

    <ResourceDictionary>
      <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="Resources/Converters.xaml"/>
        <ResourceDictionary Source="Resources/Resources.xaml"/>
      </ResourceDictionary.MergedDictionaries>
      <Storyboard x:Key="ShowActivated">
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="_layoutRoot">
          <SplineDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
        </DoubleAnimationUsingKeyFrames>
      </Storyboard>
    </ResourceDictionary>

  </s:SurfaceWindow.Resources>
  <Grid Background="{StaticResource WindowBackground}"
        s:ContactVisualizer.VisualizationColor1="{Binding VisualizationColor, Source={x:Static props:Settings.Default}}"
        s:ContactVisualizer.VisualizationColor2="{Binding VisualizationColor, Source={x:Static props:Settings.Default}}"
        s:ContactVisualizer.VisualizationColor3="{Binding VisualizationColor, Source={x:Static props:Settings.Default}}">
    <Grid x:Name="_layoutRoot" x:FieldModifier="private" Opacity="1">
      <controls:River x:Name="_river" x:FieldModifier="private"
                      AutoScrollSpeed="{Binding AutoScrollSpeed}"
                      GridLayout="{DynamicResource RiverLayout}"
                      IsContentLoaded="{Binding IsContentLoaded}"
                      IdleTimeoutFront="{Binding ItemTimeoutFront, Source={x:Static props:Settings.Default}}" 
                      IdleTimeoutBack="{Binding ItemTimeoutBack, Source={x:Static props:Settings.Default}}" />
      <controls:AdminLayer IsAdminTagPresent="{Binding IsAdminTagPresent}" />
    </Grid>
  </Grid>
</s:SurfaceWindow>