예제 #1
0
        private async void UnpinBatteryTile()
        {
            var result = await TilesHelper.UnpinBatteryTileAsync();

            if (!result)
            {
                this.UseBatteryLiveTile = true;
                return;
            }

            BackgroundManager.Unregister(BackgroundManager.TimeBatteryLevelTaskName);
        }