Thursday, August 2, 2012

CSharp Blank App Template

This is an overview of the basic Blank App template for a C# metro application.

Blank App
    Properties
        AssemblyInfo.cs
            Title
            Description
            etc

    References
        .NET for Metro style apps   
            OVERVIEW
                http://msdn.microsoft.com/en-us/library/windows/apps/br230302(v=vs.110).aspx
                This is a subset of the normal .net types.  Has a focus on Metro.  Does not include:
                    -non-metro types and members
                    -Obsolete and legacy types
                    -Types that overlap with the Windows Runtime types
                    -Types and members that wrap operating system functionality
                    -Members that cause confusion (such as the Close method on I/O types)
            API
                http://msdn.microsoft.com/en-us/library/windows/apps/br230232(v=vs.110).aspx
      Windows
            API
                http://msdn.microsoft.com/en-us/library/windows/apps/br211377.aspx

    Assets
        These are the project defaults in the application manifest
        Logo.png
        SmallLogo.png
        SplashScreen.png
        StoreLogo.png

    Common
        StandardStyles.xaml
            This contains a bunch of standard styles used by default item templates

    App.xaml
        Sets the basic application resources

    App.xaml.cs (under App.xaml)
        This is the application entry point.
        protected override void OnLaunched(LaunchActivatedEventArgs args) sets up the main
        application frame and puts it in the application window.  This can also involve restoring
        previous application state.  Also saves the current application state on application shutdown

    BlankAppCSharp_TemporaryKey.pfx
        http://msdn.microsoft.com/en-us/library/ms537361.aspx
        This is a signing Certificate similar to the ones used by click-once installations.

    MainPage.xaml
        An empty page

    MainPage.xaml.cs
        Contains an empty implementation of OnNavigatedTo which is called when a page is
        displayed

    Package.appmanifest
        Basic Application setup (Application UI)
            -orientation
            -name
            -Logo
        Capabilities
            http://msdn.microsoft.com/en-us/library/windows/apps/hh464936.aspx
            This gives the application file system access permissions
        Declarations
            http://msdn.microsoft.com/en-us/library/windows/apps/hh464906.aspx
            This section appears to be misnamed.  The options in this section correspond to the App
            contracts and Extensions section in the documentation.  It declares the interactions with
            other applications which this app supports.
        Packaging
            Store packaging attributes

No comments:

Post a Comment