public TaskPage() { InitializeComponent(); if (App.IsAdvertismentVisible) { var adControl = AdControlHelper.CreateAdControl("10167809"); adControl.Margin = new Thickness(-12, 6, -12, 0); Grid.SetRow(adControl, 3); this.TaskGrid.Children.Add(adControl); } new LongListSelectorAnimator(this.Dispatcher, FriendsLongListSelector); }
public AboutPage() { InitializeComponent(); if (App.IsAdvertismentVisible) { var adControl = AdControlHelper.CreateAdControl("10167811"); Grid.SetRow(adControl, 1); adControl.Margin = new Thickness(-12, 6, -12, 0); this.SettingsGrid.Children.Add(adControl); } this.DataContext = new AboutPageViewModel(App.DataManager); VersionTextBlock.Text = String.Format("Version {0}", App.VersionNumber); }
private void MainPage_Loaded(object sender, RoutedEventArgs e) { if (this.ApplicationBar == null) //App Bar laden, aber nur einmal { SetupAppBar(); } DoSystemTrayStuff(); if (firstLoad && App.IsAdvertismentVisible) { firstLoad = false; var adControl = AdControlHelper.CreateAdControlSmall("10167810"); adControl.Margin = new Thickness(6); this.FriendsGrid.Children.Add(adControl); } }