-
Notifications
You must be signed in to change notification settings - Fork 747
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
10f0dba
commit 723ea79
Showing
5 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
src/Uno.UI/Microsoft/UI/Xaml/Controls/PagerControl/PagerControl.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using Windows.UI.Xaml.Controls; | ||
|
||
namespace Microsoft.UI.Xaml.Controls | ||
{ | ||
public class PagerControl : Control | ||
{ | ||
|
||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/Uno.UI/Microsoft/UI/Xaml/Controls/PagerControl/PagerControlButtonVisibility.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Uno.UI.Microsoft.UI.Xaml.Controls.PagerControl | ||
{ | ||
public enum PagerControlButtonVisibility | ||
{ | ||
Visible, | ||
HiddenOnEdge, | ||
Hidden, | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/Uno.UI/Microsoft/UI/Xaml/Controls/PagerControl/PagerControlDisplayMode.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Uno.UI.Microsoft.UI.Xaml.Controls.PagerControl | ||
{ | ||
public enum PagerControlDisplayMode | ||
{ | ||
Auto, | ||
ComboBox, | ||
NumberBox, | ||
ButtonPanel, | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...o.UI/Microsoft/UI/Xaml/Controls/PagerControl/PagerControlSelectedIndexChangedEventArgs.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace Microsoft.UI.Xaml.Controls | ||
{ | ||
public class PagerControlSelectedIndexChangedEventArgs | ||
{ | ||
public PagerControlSelectedIndexChangedEventArgs(int previousIndex, int newIndex) | ||
{ | ||
PreviousPageIndex = previousIndex; | ||
NewPageIndex = newIndex; | ||
} | ||
|
||
public int PreviousPageIndex { get; } | ||
|
||
public int NewPageIndex { get; } | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
src/Uno.UI/Microsoft/UI/Xaml/Controls/PagerControl/PagerControlTemplateSettings.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System.Collections.Generic; | ||
using Windows.UI.Xaml; | ||
|
||
namespace Microsoft.UI.Xaml.Controls | ||
{ | ||
public class PagerControlTemplateSettings : DependencyObject | ||
{ | ||
public PagerControlTemplateSettings() | ||
{ | ||
} | ||
|
||
public IList<object> Pages | ||
{ | ||
get => (IList<object>)GetValue(PagesProperty); | ||
set => SetValue(PagesProperty, value); | ||
} | ||
|
||
public static DependencyProperty PagesProperty { get; } = | ||
DependencyProperty.Register(nameof(Pages), typeof(IList<object>), typeof(PagerControlTemplateSettings), new PropertyMetadata(null)); | ||
|
||
public IList<object> NumberPanelItems | ||
{ | ||
get { return (IList<object>)GetValue(NumberPanelItemsProperty); } | ||
set { SetValue(NumberPanelItemsProperty, value); } | ||
} | ||
|
||
public static DependencyProperty NumberPanelItemsProperty { get; } = | ||
DependencyProperty.Register(nameof(NumberPanelItems), typeof(IList<object>), typeof(PagerControlTemplateSettings), new PropertyMetadata(null)); | ||
} | ||
} |