This project is read-only.

IsFullScreenVisible in EntertainmentTheme?

Topics: Windows 8 Xaml
Nov 28, 2012 at 1:53 PM

Hi Community :)

Is it possible to enable a FullScreen-Button in EntertainmentTheme.xaml?



Nov 28, 2012 at 4:47 PM

Hi Thomas, You could make a copy of the EntertainmentTheme.xaml file and modify it -- but the recommended approach is to add the button to the appbar instead. To do this, just add to your appbar in Xaml:

<mmppf:FullScreenButton x:Name="FullScreenButton" ViewModel="{Binding InteractiveViewModel, ElementName=player}" Style="{StaticResource AppBarButtonStyle}"/>

In code behind, bind the button to the player's ViewModel:

public TestPage()
    player.InteractiveViewModelChanged += player_InteractiveViewModelChanged;

void player_InteractiveViewModelChanged(object sender, RoutedPropertyChangedEventArgs<IInteractiveViewModel> e)

void UpdateViewModels()
    FullScreenButton.ViewModel = player.InteractiveViewModel;

Regards, Tim