Skip to content

Instantly share code, notes, and snippets.

View wtuts's full-sized avatar

Windows App Tutorials wtuts

View GitHub Profile
@wtuts
wtuts / analytics.cs
Created June 19, 2014 10:19
Google analytics for Windows phone app
// 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 August 29, 2015 14:02
admob in windows phone app
//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"
};
@wtuts
wtuts / in_app_purchase.cs
Created June 21, 2014 13:20
in app purchase
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 / in_app_purchase.cs
Created June 21, 2014 13:20
in app purchase
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 / in_app_purchase.cs
Created June 21, 2014 13:23
in app purchase
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 / in_app_purchase.cs
Created June 21, 2014 13:23
in app purchase
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 / in_app_purchase.cs
Created June 21, 2014 13:23
in app purchase
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 / in_app_purchase.cs
Created June 21, 2014 13:24
in app purchase
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 June 21, 2014 18:55
Trial version implementataion
using Microsoft.Phone.Marketplace;
@wtuts
wtuts / trial1.cs
Created June 21, 2014 18:56
Trial version implementation
private static LicenseInformation _licenseInfo = new LicenseInformation();