#204: Fixed
This commit is contained in:
@@ -24,17 +24,14 @@
|
||||
<VisualState.Setters>
|
||||
<Setter Target="header.FontSize" Value="28"/>
|
||||
<Setter Target="headerGrid.Margin" Value="10,25,0,0"/>
|
||||
<Setter Target="nav.Margin" Value="0"/>
|
||||
<Setter Target="account.Height" Value="50"/>
|
||||
<Setter Target="notificationMenu.Height" Value="50"/>
|
||||
<Setter Target="avatar.Height" Value="50"/>
|
||||
<Setter Target="AppTitle.Visibility" Value="Collapsed"/>
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
</VisualStateGroup>
|
||||
</VisualStateManager.VisualStateGroups>
|
||||
<TextBlock x:Name="AppTitle" Style="{StaticResource CaptionTextBlockStyle}" Text="FoxTube" Margin="12,8"/>
|
||||
<NavigationView Margin="0,30,0,0" SelectedItem="toHome" Windows10version1803:BackRequested="nav_BackRequested" Windows10version1803:PaneTitle="FoxTube" OpenPaneLength="300" Name="nav" SelectionChanged="nav_SelectionChanged">
|
||||
<NavigationView SelectedItem="toHome" Windows10version1803:BackRequested="nav_BackRequested" Windows10version1803:PaneTitle="FoxTube" OpenPaneLength="300" Name="nav" SelectionChanged="nav_SelectionChanged">
|
||||
|
||||
<NavigationView.MenuItems>
|
||||
<NavigationViewItem x:Uid="/Main/home" Icon="Home" Content="Home" Name="toHome"/>
|
||||
|
||||
@@ -34,7 +34,8 @@
|
||||
<ScrollViewer Margin="0,0,0,50" Name="mainScroll">
|
||||
<StackPanel Orientation="Vertical" Name="mainContent">
|
||||
<local:VideoPlayer/>
|
||||
<StackPanel Margin="10" Name="descriptionPanel">
|
||||
<PivotItem Header="Description" Name="descriptionPanel">
|
||||
<StackPanel Margin="0,10">
|
||||
<TextBlock IsTextSelectionEnabled="True" Name="title" Text="[Video title]" FontSize="25" TextWrapping="WrapWholeWords" HorizontalTextAlignment="Start"/>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
@@ -95,6 +96,7 @@
|
||||
<TextBlock Name="license" Grid.Column="2" Grid.Row="2" Text="[License type]"/>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</PivotItem>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
|
||||
|
||||
@@ -92,11 +92,7 @@ namespace FoxTube.Pages
|
||||
{
|
||||
Debug.WriteLine("Correcting layout...");
|
||||
mainContent.Children.Remove(descriptionPanel);
|
||||
pivot.Items.Insert(0, new PivotItem()
|
||||
{
|
||||
Content = descriptionPanel,
|
||||
Header = "Description"
|
||||
});
|
||||
pivot.Items.Insert(0, descriptionPanel);
|
||||
|
||||
tabsPlaceholder.Children.Remove(pivot);
|
||||
mainContent.Children.Add(pivot);
|
||||
@@ -360,40 +356,31 @@ namespace FoxTube.Pages
|
||||
else
|
||||
wide = false;
|
||||
|
||||
if (e.NewSize.Width > 1000 && e.PreviousSize.Width <= 1000 && !isExtended)
|
||||
{
|
||||
if (mainContent.Children.Contains(pivot))
|
||||
if (e.NewSize.Width > 1000 && mainContent.Children.Contains(pivot) && !isExtended)
|
||||
{
|
||||
mainContent.Children.Remove(pivot);
|
||||
tabsPlaceholder.Children.Add(pivot);
|
||||
|
||||
(pivot.Items[0] as PivotItem).Content = null;
|
||||
pivot.Items.RemoveAt(0);
|
||||
mainContent.Children.Add(descriptionPanel);
|
||||
}
|
||||
|
||||
grid.ColumnDefinitions[1].Width = new GridLength(400);
|
||||
|
||||
pivot.SelectedIndex = 0;
|
||||
}
|
||||
else if (e.NewSize.Width <= 1000 & e.PreviousSize.Width > 1000)
|
||||
{
|
||||
if (mainContent.Children.Contains(descriptionPanel))
|
||||
else if (e.NewSize.Width <= 1000 && mainContent.Children.Contains(descriptionPanel))
|
||||
{
|
||||
mainContent.Children.Remove(descriptionPanel);
|
||||
pivot.Items.Insert(0, new PivotItem()
|
||||
{
|
||||
Content = descriptionPanel,
|
||||
Header = "Description"
|
||||
});
|
||||
pivot.Items.Insert(0, descriptionPanel);
|
||||
|
||||
tabsPlaceholder.Children.Remove(pivot);
|
||||
mainContent.Children.Add(pivot);
|
||||
}
|
||||
|
||||
grid.ColumnDefinitions[1].Width = new GridLength(0);
|
||||
}
|
||||
|
||||
pivot.SelectedIndex = 0;
|
||||
}
|
||||
}
|
||||
|
||||
private async void Share(DataTransferManager sender, DataRequestedEventArgs args)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user