This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TinyTween.cs | |
// | |
// Copyright (c) 2013 Nick Gravelyn | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software | |
// and associated documentation files (the "Software"), to deal in the Software without restriction, | |
// including without limitation the rights to use, copy, modify, merge, publish, distribute, | |
// sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region Using Statements | |
using System; | |
using WaveEngine.Common; | |
using WaveEngine.Common.Graphics; | |
using WaveEngine.Common.Math; | |
using WaveEngine.Components.Cameras; | |
using WaveEngine.Components.Gestures; | |
using WaveEngine.Components.Graphics2D; | |
using WaveEngine.Components.Graphics3D; | |
using WaveEngine.Framework; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region Using Statements | |
using System; | |
using WaveEngine.Common; | |
using WaveEngine.Common.Graphics; | |
using WaveEngine.Common.Math; | |
using WaveEngine.Components.Cameras; | |
using WaveEngine.Components.Graphics2D; | |
using WaveEngine.Components.Graphics3D; | |
using WaveEngine.Framework; | |
using WaveEngine.Framework.Graphics; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using WaveEngine.Common.Math; | |
using WaveEngine.Framework; | |
using WaveEngine.Framework.Graphics; | |
using WaveEngine.Framework.Services; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region Using Statements | |
using Share; | |
using System; | |
using WaveEngine.Common; | |
using WaveEngine.Common.Graphics; | |
using WaveEngine.Common.Math; | |
using WaveEngine.Components.Animation; | |
using WaveEngine.Components.Cameras; | |
using WaveEngine.Components.Graphics2D; | |
using WaveEngine.Components.Graphics3D; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ChatMessage msg = new ChatMessage(); | |
msg.Body = "content here"; | |
msg.Recipients.Add("number here"); | |
await ChatMessageManager.ShowComposeSmsMessageAsync(msg); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
await Windows.System.Launcher.LaunchUriAsync(new Uri("tel:" + "number here")); | |
// or | |
Windows.ApplicationModel.Calls.PhoneCallManager.ShowPhoneCallUI("number here", "test"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using System.Collections.Specialized; | |
using System.Linq; | |
using System.Runtime.InteropServices.WindowsRuntime; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// maybe not exist this | |
if (ApiInformation.IsTypePresent("Windows.Phone.Devices.Notification.VibrationDevice")) | |
{ | |
var vibrateDevice = Windows.Phone.Devices.Notification.VibrationDevice.GetDefault(); | |
var duration = TimeSpan.FromMilliseconds(1000); | |
vibrateDevice.Vibrate(duration); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ContactPicker pickcer = new ContactPicker(); | |
pickcer.DesiredFieldsWithContactFieldType.Add(ContactFieldType.PhoneNumber); | |
pickcer.SelectionMode = ContactSelectionMode.Fields; | |
var contact = await pickcer.PickContactAsync(); |
OlderNewer