|
<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:SkinableVideoPlayer"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
x:Class="SkinableVideoPlayer.MainPage"
UseLayoutRounding="True"
mc:Ignorable="d"
d:DesignWidth="640" d:DesignHeight="480">
<UserControl.Resources>
<local:MainPageModel x:Key="MainPageModelDataSource" />
<DataTemplate x:Key="StringTemplate">
<StackPanel>
<TextBlock Text="{Binding Mode=OneWay}"/>
</StackPanel>
</DataTemplate>
</UserControl.Resources>
<Grid x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource MainPageModelDataSource}}" >
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="0*"/>
</Grid.RowDefinitions>
<StackPanel x:Name="MainPanel">
<i:Interaction.Triggers>
<i:EventTrigger>
<i:InvokeCommandAction x:Name="SetMefPanel" Command="{Binding SetMEFPanelCommand}" CommandParameter="{Binding ElementName=VideoPlayerPanel, Mode=OneWay}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
<Border Background="#FF504F4F" VerticalAlignment="Top">
<StackPanel x:Name="MainControls" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
<ComboBox x:Name="cbXaps" HorizontalAlignment="Center" VerticalAlignment="Center" SelectedIndex="{Binding SelectedXapInListProperty}" ItemsSource="{Binding SilverlightXapList}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="SelectionChanged">
<i:InvokeCommandAction x:Name="LoadXap" Command="{Binding LoadXAPCommand}" CommandParameter="{Binding ElementName=cbXaps, Mode=OneWay}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</ComboBox>
<Button x:Name="FullScreen" Content="Full Screen" Margin="5,0,0,0">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<i:InvokeCommandAction x:Name="GoFullScreen" Command="{Binding SetFullScreenCommand}" CommandParameter="{Binding ElementName=FullScreenGrid, Mode=OneWay}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
</StackPanel>
</Border>
<StackPanel x:Name="VideoPlayerPanel"/>
</StackPanel>
<Grid x:Name="FullScreenGrid" Margin="0" Grid.RowSpan="2">
<i:Interaction.Triggers>
<i:EventTrigger EventName="SizeChanged">
<i:InvokeCommandAction x:Name="ExitFullScreen" Command="{Binding ExitFullScreenCommand}" CommandParameter="{Binding ElementName=FullScreenGrid, Mode=OneWay}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</Grid>
<toolkit:BusyIndicator Margin="200,206,200,216" IsBusy="{Binding MediaBufferingProperty}" BusyContent="Loading..." Height="58" Content=""/>
</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.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.