Windows – (Part 1)

All UWP apps are distributed as an AppX package.
You target device families, not an OS.

relative panel

IsApiContractPresent

IsEventPresent

If you want to call just a small number of APIs, you could use the ApiInformation.IsTypePresent method like this.

App.xaml is where you ​declare resources that are used across the app​​. App.xaml.cs is the code­behind file for App.xaml.

MouseMove, TouchMove, and StylusMove​​ In Windows Store apps, these separate events are replaced with a single ​PointerMoved ​​event that works
equally well for touch, mouse, and stylus input

VisualStateManager, VisualStateGroup, Responsive Design

Don’t use app data to store ​user data or anything that users might perceive as valuable and irreplaceable​​. We recommend that the user’s libraries and
Microsoft OneDrive be used to store this sort of information. Appdata is ideal for storing ​app­specific user preferences, settings, and favorites​​.

local app data store

local composite value

read/write file

If you use roaming data in your app, your users can easily keep your app’s app data in sync across multiple devices.
it is a best practice to use roaming data ​only for user preferences, links, and small data files​​.

Retrieve the temporary data container

Note that if your app is running when it is activated as a Share target, the ​existing instance of your app is terminated and a new instance of your appis launched to handle the contract​​.

OnShareTargetActivated,
shareOperation.ReportDataRetreived();
shareOperation.ReportSubmittedBackgroundTask();
shareOperation.ReportError(“Could not reach the server! Try again later.”);
shareOperation.ReportCompleted();

Your app should handle this possibility by checking what types of files were dropped and processing them accordingly, and notifying the user if they’re trying
to do something your app don’t support.

Copy is the most common.

Drag and drop

You can’t access the UI from a non­UI thread, so the setting the MediaElement.Source property and calling RequestRelease must be made using the
CoreDispatcher.RunAsync ​​method so that the calls execute on the UI thread.

Adding navigation

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *