diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-11-14 01:49:42 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-11-14 01:49:42 +0200 |
| commit | 679c6ceb5ad91431df0180ce46c2b407cfe49def (patch) | |
| tree | 86506dcfd13078ebd74a58600cec7713fa6e36f0 /Software/Visual_Studio/Tango.SharedUI | |
| parent | 64aca5fe579bf2b12d33f2a8a9010c257c358aec (diff) | |
| download | Tango-679c6ceb5ad91431df0180ce46c2b407cfe49def.tar.gz Tango-679c6ceb5ad91431df0180ce46c2b407cfe49def.zip | |
Thread Break/Loading improvements.
Diffstat (limited to 'Software/Visual_Studio/Tango.SharedUI')
| -rw-r--r-- | Software/Visual_Studio/Tango.SharedUI/Controls/NavigationControl.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Tango.SharedUI/Controls/NavigationControl.cs b/Software/Visual_Studio/Tango.SharedUI/Controls/NavigationControl.cs index 879401c1b..cefdbbfd6 100644 --- a/Software/Visual_Studio/Tango.SharedUI/Controls/NavigationControl.cs +++ b/Software/Visual_Studio/Tango.SharedUI/Controls/NavigationControl.cs @@ -252,7 +252,13 @@ namespace Tango.SharedUI.Controls public static readonly DependencyProperty KeepElementsAttachedProperty = DependencyProperty.Register("KeepElementsAttached", typeof(bool), typeof(NavigationControl), new PropertyMetadata(false)); - + public bool GalleryMode + { + get { return (bool)GetValue(GalleryModeProperty); } + set { SetValue(GalleryModeProperty, value); } + } + public static readonly DependencyProperty GalleryModeProperty = + DependencyProperty.Register("GalleryMode", typeof(bool), typeof(NavigationControl), new PropertyMetadata(false)); public int SelectedIndex { @@ -551,7 +557,7 @@ namespace Tango.SharedUI.Controls break; case TransitionTypes.Slide: - if (toIndex > fromIndex) + if (toIndex > fromIndex || GalleryMode) { fromAnimation.From = 0; fromAnimation.To = -ActualWidth; |
