Skip to content

Instantly share code, notes, and snippets.

Avatar

Windows App Tutorials wtuts

View GitHub Profile
@wtuts
wtuts / analytics.cs
Created Jun 19, 2014
Google analytics for Windows phone app
View analytics.cs
// Constructor
public MainPage()
{
InitializeComponent();
//For page view add the following line in each page constructor
GoogleAnalytics.EasyTracker.GetTracker().SendView("MainPage");
}
//For button click event handlers add the following code
private void Button_Click_1(object sender, RoutedEventArgs e)
@wtuts
wtuts / admob.cs
Last active Aug 29, 2015
admob in windows phone app
View admob.cs
//This is a function for creating a admob add dynamically using c#
void admob(StackPanel stck)
{
//Create a admob banner
AdView bannerAd = new AdView
{
Format = AdFormats.Banner,
AdUnitID = "YOUR_AD_UNIT_ID"
};
View in_app_purchase.cs
public ObservableCollection<ProductItem> picItems = new ObservableCollection<ProductItem>();
protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
{
RenderStoreItems();
base.OnNavigatedTo(e);
}
private async void RenderStoreItems()
{
View in_app_purchase.cs
public ObservableCollection<ProductItem> picItems = new ObservableCollection<ProductItem>();
protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
{
RenderStoreItems();
base.OnNavigatedTo(e);
}
private async void RenderStoreItems()
{
View in_app_purchase.cs
public ObservableCollection<ProductItem> picItems = new ObservableCollection<ProductItem>();
protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
{
RenderStoreItems();
base.OnNavigatedTo(e);
}
private async void RenderStoreItems()
{
View in_app_purchase.cs
public ObservableCollection<ProductItem> picItems = new ObservableCollection<ProductItem>();
protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
{
RenderStoreItems();
base.OnNavigatedTo(e);
}
private async void RenderStoreItems()
{
View in_app_purchase.cs
public ObservableCollection<ProductItem> picItems = new ObservableCollection<ProductItem>();
protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
{
RenderStoreItems();
base.OnNavigatedTo(e);
}
private async void RenderStoreItems()
{
View in_app_purchase.cs
public ObservableCollection<ProductItem> picItems = new ObservableCollection<ProductItem>();
protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
{
RenderStoreItems();
base.OnNavigatedTo(e);
}
private async void RenderStoreItems()
{
@wtuts
wtuts / trial.cs
Created Jun 21, 2014
Trial version implementataion
View trial.cs
using Microsoft.Phone.Marketplace;
@wtuts
wtuts / trial1.cs
Created Jun 21, 2014
Trial version implementation
View trial1.cs
private static LicenseInformation _licenseInfo = new LicenseInformation();
You can’t perform that action at this time.