from ideas to solutions

The Latest Blog Posts
  • Microsofts partnerblogg

    Checklista för förnyelse av medlemskap till Microsoft Partner Program 2008

    • 0 Comments
    Hej, under juldagarna så har en del passat på med lite administrativt arbete gällande förnyelse av medlemskapet till vårt partner program. Vi har publicerat lite lathundar för moment där man i bland kan köra fast. Jag skickade också ut en checklista...
  • Beyond | IT

    How to find good music; One audiophile's story

    • 0 Comments
    Harry Mower, a self-described music junkie, tells an addict's story of how to find the next great music of the moment: Media Mechanics : Scoring with Zune Part2 - Finding Music. Even if you merely love Music, it's a great review of the how to get the...
  • Security Tips & Talk

    Predictions for 2008: Cybercriminals follow the money

    • 0 Comments
    Experts at Microsoft spent the final days of last year analyzing numerous data from sources that include the biannual Microsoft Security Intelligence Report (SIR) . Here are their resulting predictions about the threats that are most likely to affect...
  • Inside Paras' Head

    Microsoft Using YouTube To Promote Vista & Live

    • 0 Comments
    Microsoft has taken its marketing push for Windows Vista and Windows Live into enemy territory by offering demonstration videos on YouTube. The new channel was launched December 21. The content itself isn't all that exciting, but they do demonstrate various...
  • Adventures In SoftwareLand

    BillG's Last Day

    • 0 Comments
    Ok, you've got to hand it to the world's richest man (and, my uber-boss... something I thought I'd never say), who has a big enough sense of humor to lampoon his "last day" right down to the $7 haircut (can you get a $7 haircut in Seattle?!?). Check...
  • Kevin Ashley's Blog at Microsoft

    Monetizing Windows 8 apps: examples from my book

    • 0 Comments

    If you are looking for code examples for Professional Windows 8 Programming: Application Development with C# and XAML book, specifically for the monetization section, you can get them directly from Wiley:

    Chapter 11 code for Pro Windows 8 Programming
    563.02 KB
    Click to Download

    What I’ve done in that example is helping you put all monetization techniques together: from unlocking the trial, to using in-app purchase. There’re some neat ideas implemented with the example, for example I use an MVVM model to wrap store licensing schema.

    I recommend reading the book first, about the ideas implemented here. This snippet illustrates the first technique of using an MVVM model to wrap the store objects. This may be necessary if you need to expose them later through data binding.

     

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using CatalogShoppingAppCS.Data;
    using Windows.ApplicationModel.Core;
    using Windows.ApplicationModel.Store;
    using Windows.Foundation;
    using Windows.UI.Core;
    
    namespace CatalogShoppingAppCS
    {
        public class AppLicenseDataModel : INotifyPropertyChanged
        {
            public event PropertyChangedEventHandler PropertyChanged;
    
            private bool _licensed = false;
            private string _price;
    
            public AppLicenseDataModel()
            {
                if (CurrentAppSimulator.LicenseInformation.IsTrial)
                {
                    CurrentAppSimulator.LicenseInformation.LicenseChanged += OnLicenseChanged;
                    GetListingInformationAsync();
                }
                else
                    _licensed = true;
            }
    
            private async void GetListingInformationAsync()
            {
                var listing = await CurrentAppSimulator.LoadListingInformationAsync();
                _price = listing.FormattedPrice;
            }
    
            private async void OnLicenseChanged()
            {
                if (!CurrentAppSimulator.LicenseInformation.IsTrial)
                {
                    _licensed = true;
                    CurrentAppSimulator.LicenseInformation.LicenseChanged -= OnLicenseChanged;
    
                    // need this to the license change occurs on a different thread
                    // to update UI bound elements from the data model
                    CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
                    {
                        if (IsLicensed)
                        {
                            var groups = CatalogDataModel.GetGroups("AllGroups");
                            foreach (var group in groups)
                                foreach (var item in group.Items)
                                    item.IsAdDisplayed = false;
                        }
    
                        if (PropertyChanged != null)
                        {
                            PropertyChanged(this, new PropertyChangedEventArgs(String.Empty));
                        }
                    });
                }
            }
    
            public bool IsLicensed
            {
                get { return _licensed; }
            }
    
            public bool IsTrial
            {
                get { return !_licensed; }
            }
    
            public string LicenseInfo
            {
                get
                {
                    if (!_licensed)
                        return "Trial Version";
                    else
                        return ("Valid until " + CurrentAppSimulator.LicenseInformation.ExpirationDate.LocalDateTime.ToString("dddd, MMMM d, yyyy"));
                }
            }
    
            public string FormattedPrice
            {
                get
                {
                    if (!String.IsNullOrEmpty(_price))
                        return "Upgrade to the full version for " + _price;
                    else
                        return "Upgrade to the full Version";
                }
            }
        }
    }
    
    ...
  • Official Microsoft Partner Network Blog

    Practice Accelerator for Office 365 – NO COST to Cloud Essential and Cloud Accelerate Partners

    • 0 Comments
    Start building a practice around Office 365 today. With a new delivery format, you can take Practice Accelerator for Office 365 and quickly start moving your customers to the cloud. If you are a Cloud Essential or Cloud Accelerate partner, you can take...
  • Microsoft UK Schools blog

    Office 2013 Quick Start Guides

    • 0 Comments
    A full range of Office 2013 quick start guides are now available to download via the Office Blog . A selection of these can be viewed in full below. These can also be downloaded via our SlideShare account . Excel 2013 quick start guide from Microsoft...
  • Microsoft UK Enterprise Insights Blog

    Are you a business 'Change Agent'? The next generation of marketers powering innovation

    • 0 Comments
    Marketers are using cloud computing to deploy a range of tools and services to run modern marketing campaigns. Microsoft’s Matt Ballantine discusses how these marketing Change Agents are driving innovation in this Guardian piece: The emergence...
  • Développement parallèle

    Retour sur les Techdays: LAN305 - Plongée au cœur du Framework .NET 4.5

    • 0 Comments
    Ce fut un immense plaisir de présenter avec mon ami Julien Crozon , la session LAN305 - Plongée au cœur du Framework .NET 4.5, dans le plus grand amphi. Je vous joins les exemples, les slides seront disponibles prochainement sur...
  • MSDN UK Team blog

    Windows 8 Embedded Coming in March 2013

    Windows Embedded 8 shortens development cycles and enables device makers to create differentiated, best-in-class products that delight customers and stand out from the competition. They are packed with line-of business solutions optimized for the intelligence...
  • Jose Lorenzo’s AX blog

    Save up to 40% on Competency Exam Packs

    • 0 Comments
    Exam packs in quantities from 1 to 20 are available for Microsoft Dynamics, Windows 8, Windows Server 2012 and Office 365. Partners who purchase exam packs have until December 31, 2013 to use vouchers. Find out more here .
Page 30500 of 33,454 (401,445 items) «3049830499305003050130502»