public FriendsPage() { InitializeComponent(); #if !(ARM && DEBUG) ListViewBehaviour.SetMinItemWidth(AllView, 300); ListViewBehaviour.SetMinItemWidth(OnlineView, 300); ListViewBehaviour.SetMinItemWidth(PendingView, 300); ListViewBehaviour.SetMinItemWidth(BlockedView, 300); if (ReorderGridAnimation.IsSupported) { ReorderGridAnimation.SetDuration(AllView, 250); ReorderGridAnimation.SetDuration(OnlineView, 250); ReorderGridAnimation.SetDuration(PendingView, 250); ReorderGridAnimation.SetDuration(BlockedView, 250); } #endif }
/// <summary> /// Initializes a new instance of the MainPage class. /// </summary> public MainPage() { InitializeComponent(); _navigationHelper = new NavigationHelper(this); _navigationHelper.LoadState += _navigationHelper_LoadState; _navigationHelper.SaveState += _navigationHelper_SaveState; // ReSharper disable once UseNameofExpression if (ApiInformation.IsEnumNamedValuePresent("Windows.UI.Xaml.Controls.Symbol", "Share")) { ShareButton.Icon = new SymbolIcon(Symbol.Share); } if (ReorderGridAnimation.IsSupported) { ReorderGridAnimation.SetDuration(StickerGridView, 300); } if (!DataTransferManager.IsSupported() || AnalyticsInfo.VersionInfo.DeviceFamily == "Windows.Xbox") { ShareButton.Visibility = Visibility.Collapsed; } }