Thursday 20 December 2012

Quick Tips : Windows 8 apps C#|Xaml

Send mail 

Use the namespace:
using Windows.ApplicationModel.DataTransfer;

 private async void Button_Click_1(object sender, RoutedEventArgs e)
        {
var mailto = new Uri("mailto:?to=architar.dash@gmail.com&subject=Test App&body=My first mail app in Windows 8 .");
await Windows.System.Launcher.LaunchUriAsync(mailto);
}


---------------------------------

Questions when designing data Storage

You need to think about data storage when your windows app needs to persist data.
Q1 : What kind of data my app needs to persist? Light data , heavy data
Q2 : Do I need to persist data if my app is not running? Yes, No
Q3 : Do I need to store data only for current device? Yes , No
Q4 :  Do I need to store data even when I am roaming? Yes , No
 
When you get answers for above questions , you will have a better knowledge on what should be you data storage design.
 

Input a URL text box in XAML

<textbox x: Name="textBox1" **InputScope="URL"** </textbox>
 

Sensitive Devices

  •  Microphones
  • Cameras
  •  Location providers
  •  Text messaging services
 
can access the user's personal data or cost the user money, so they are considered sensitive devices.
 

No comments:

Post a Comment