Example #1
0
        private void UpdatePinVisibility()
        {
            if (ScheduleTileHelper.IsPinned(ViewModel.MainScreenViewModel.CurrentLocalAccountId))
            {
                AppBarButtonPin.Icon  = new SymbolIcon(Symbol.UnPin);
                AppBarButtonPin.Label = LocalizedResources.Common.GetStringUnpinFromStart();
            }

            else
            {
                AppBarButtonPin.Icon  = new SymbolIcon(Symbol.Pin);
                AppBarButtonPin.Label = LocalizedResources.Common.GetStringPinToStart();
            }
        }
Example #2
0
        private void UpdatePinButton()
        {
            try
            {
                if (ScheduleTileHelper.IsPinned(ViewModel.Account.LocalAccountId))
                {
                    appBarPin.Icon  = new SymbolIcon(Symbol.UnPin);
                    appBarPin.Label = LocalizedResources.GetString("Tile_UnpinTile");
                }

                else
                {
                    appBarPin.Icon  = new SymbolIcon(Symbol.Pin);
                    appBarPin.Label = LocalizedResources.GetString("Tile_PinTile");
                }
            }

            catch (Exception ex)
            {
                TelemetryExtension.Current?.TrackException(ex);
            }
        }