public DiscoverPage() { InitializeComponent(); PersistentDownloadService.AddBadgeCallback(UpdateBadgeNumber); BadgedIcon.AddButtonEventHandler(DownloadPage_Clicked); }
public BrowsePage() { InitializeComponent(); PersistentDownloadService.AddBadgeCallback(UpdateBadgeNumber); UpdateBadgeNumber(PersistentDownloadService.DownloadQueue.Count); BadgedIcon.AddButtonEventHandler(DownloadPage_Clicked); }
public void Pass() { Bitmap bitmap = Bitmap.CreateBitmap(60, 60, Bitmap.Config.Argb8888); Canvas canvas = new Canvas(bitmap); Paint p = new Paint(); p.Color = Color.Blue; canvas.DrawCircle(30, 30, 30, p); Config config = new ConfigBuilder(bitmap, "2").Build(); Bitmap badged = BadgedIcon.InvokeBadgedIcon(config); Assert.NotNull(badged); }