mirror of
https://github.com/farcasclaudiu/myfriendsaround.git
synced 2026-06-29 09:01:55 +03:00
push notification helper library
http://windowsteamblog.com/windows_phone/b/wpdev/archive/2011/01/14/windows-push-notification-server-side-helper-library.aspx http://create.msdn.com/en-us/education/catalog/article/pnhelp-wp7
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
using System.ComponentModel.Composition;
|
||||
using System.ComponentModel.Composition.Hosting;
|
||||
|
||||
using WindowsPhone.Recipes.Push.Server.Services;
|
||||
using WindowsPhone.Recipes.Push.Server.ViewModels;
|
||||
|
||||
namespace WindowsPhone.Recipes.Push.Server
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for App.xaml
|
||||
/// </summary>
|
||||
public partial class App : Application
|
||||
{
|
||||
public CompositionContainer Container { get; private set; }
|
||||
|
||||
protected override void OnStartup(StartupEventArgs e)
|
||||
{
|
||||
// Initialize MEF to export parts from current assembly.
|
||||
var catalog = new AssemblyCatalog(typeof(App).Assembly);
|
||||
Container = new CompositionContainer(catalog);
|
||||
Container.ComposeParts();
|
||||
|
||||
// Create and show the main window where MainViewModel is the default source for data-binding.
|
||||
new MainWindow
|
||||
{
|
||||
DataContext = Container.GetExportedValue<MainViewModel>()
|
||||
|
||||
}.Show();
|
||||
|
||||
base.OnStartup(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user