public MainPage() { StyleManager.ApplicationTheme = new Windows8Theme(); InitializeComponent(); this.pdfExportCounter = new BeginEndUpdateCounter(this.ExportPdf); this.client = new PdfFontsServiceClient(); this.client.GetFontDataCompleted += GetFontDataCompleted; this.GenerateSampleWorksheet(); }