Skip to content

Commit

Permalink
chore: Remove PageControl sample from UWP
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Jan 29, 2021
1 parent f9d7817 commit da80ce9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
mc:Ignorable="d"
xmlns:not_win="http://uno.ui/not_win"
mc:Ignorable="d not_win"
xmlns:Windows10FallCreatorsUpdate="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractPresent(Windows.Foundation.UniversalApiContract, 5)"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" Margin="12">
<not_win:Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" Margin="12">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
Expand Down Expand Up @@ -242,5 +243,5 @@
</Grid>
</Grid>
</ScrollViewer>
</Grid>
</not_win:Grid>
</Page>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace UITests.Microsoft_UI_Xaml_Controls.PagerControlTests
{
[Sample("PagerControl", "WinUI")]
public sealed partial class PagerControlPage : Page
{
{
ComboBox pagerComboBox;
NumberBox pagerNumberBox;
ItemsRepeater pagerItemsRepeater;
Expand All @@ -22,9 +22,13 @@ public sealed partial class PagerControlPage : Page
public PagerControlPage()
{
this.InitializeComponent();
#if HAS_UNO
this.Loaded += OnLoad;
#endif

}

#if HAS_UNO
private void OnLoad(object sender, RoutedEventArgs args)
{
PagerDisplayModeComboBox.SelectionChanged += OnDisplayModeChanged;
Expand Down Expand Up @@ -250,5 +254,6 @@ private void OnLastButtonVisibilityChanged(object sender, SelectionChangedEventA

LastPageButtonVisibilityCheckBox.IsChecked = lastPageButton?.Visibility == Visibility.Visible && lastPageButton?.Opacity != 0;
}
#endif
}
}

0 comments on commit da80ce9

Please sign in to comment.