This file contains hidden or 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
public class UpdateService : IUpdateService | |
{ | |
public async Task<UpdateInfo> CheckForUpdates() | |
{ | |
try | |
{ | |
bool restart = false; | |
string latestExe = ""; | |
using (var mgr = new Squirrel.UpdateManager(@"http://x.y.z/AppName/Releases/")) |
This file contains hidden or 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
void canvasControl_Draw(CanvasControl sender, CanvasDrawEventArgs args) | |
{ | |
args.DrawingSession.DrawText("Level:", 8, 8, Colors.Yellow); | |
args.DrawingSession.DrawImage(_playerBitmap, new Rect(_playerPosition.X * size, _playerPosition.Y * size, size, size), new Rect(0, 0, 16, 16), 1, CanvasImageInterpolation.NearestNeighbor); | |
} |
This file contains hidden or 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
<!-- Office 365 client configuration file sample. To be used for Office 365 ProPlus 2016 apps, | |
Office 365 Business 2016 apps, Project Pro for Office 365 and Visio Pro for Office 365. | |
For detailed information regarding configuration options visit: http://aka.ms/ODT. | |
To use the configuration file be sure to remove the comments | |
For Office 365 client apps (verion 2013) you will need to use the 2013 version of the | |
Office Deployment Tool which can be downloaded from http://aka.ms/ODT2013 | |
The following sample allows you to download and install Office 365 ProPlus 2016 apps |
This file contains hidden or 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
protected override void OnNavigatedTo(NavigationEventArgs e) | |
{ | |
base.OnNavigatedTo(e); | |
InputPane.GetForCurrentView().Showing += OnKeyboardShowing; | |
InputPane.GetForCurrentView().Hiding += OnKeyboardHiding; | |
} | |
protected override void OnNavigatingFrom(NavigatingCancelEventArgs e) | |
{ |
This file contains hidden or 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
<Grid Height="60" | |
Background="Transparent" | |
micro:Message.Attach="[Event Tapped] = [Action NavigateToEbooks]"> | |
<ToolTipService.ToolTip> | |
<TextBlock Text="Ebooks" | |
x:Uid="EbooksTB" /> | |
</ToolTipService.ToolTip> | |
<!-- icon --> | |
</Grid> |
This file contains hidden or 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
var ccu = new CameraCaptureUI(); | |
var file = await ccu.CaptureFileAsync(CameraCaptureUIMode.Photo); | |
if (file != null) | |
{ | |
await ProcessFile(file); | |
} |
This file contains hidden or 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
%ProgramFiles(x86)%\Microsoft SDKs\Windows Phone\v8.0\Tools\AETGenerator\AETGenerator.exe PFXFile Password |
This file contains hidden or 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
public partial class AppResources | |
{ | |
private static readonly ResourceLoader _resourceLoader; | |
static AppResources() | |
{ | |
_resourceLoader=new ResourceLoader(); | |
} | |
internal AppResources() |
This file contains hidden or 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
<script src="https://hammerjs.github.io/dist/hammer.min.js"></script> | |
<script type="text/javascript"> | |
window.onload = function() { | |
var hammertime = new Hammer(document.getElementById("text")); | |
hammertime.get('swipe').set({ direction: Hammer.DIRECTION_HORIZONTAL }); | |
hammertime.on('swipeleft', function (ev) { | |
window.external.notify('left'); | |
}); | |
hammertime.on('swiperight', function (ev) { | |
window.external.notify('right'); |
This file contains hidden or 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
Import-Module DeviceManagement.psd1 | |
Get-Device | where {$_.name -like "Synaptics FP Sensors*"} | Disable-Device | |
Get-Device | where {$_.name -like "Synaptics FP Sensors*"} | Enable-Device |