WinRT/UWP Frame and Page caching: How to create new page instance on Navigate() and keep the page instance on GoBack()

Because there was no solution to this problem, I had to reimplement all paging relevant classes: Page, Frame, SuspensionManager, etc… The solution can be downloaded here: https://github.com/MyToolkit/MyToolkit/wiki/Paging-Overview Update: The page class now also provides the OnNavigatingFromAsync method to show for example an async popup and cancel navigation if required…

IIS ApplicationPoolIdentity does not have write permission to ‘Temporary ASP.NET Files’

This ASP.NET forum answer, unacknowledged in its thread, was the solution for me. It’s also low-impact: it doesn’t try to re-register IIS or give the user dangerous privileges. To summarize the answer: Open a Command window as an administrator (Start / Programs / Accessories, then right-click over Command Prompt, then choose “Run as administrator”). Enter … Read more

How to Distribute Compiled Windows 8 Metro Applications without Windows Store?

Each machine that wants to install the application will need a developer license. See this page for some details. When you have your app ready: select Store->Create App Package Select Build a package to use locally only Follow the prompts This will create a package in whatever folder you specified. You should be able to … Read more

Is there a way to convert a System.IO.Stream to a Windows.Storage.Streams.IRandomAccessStream?

To use the extensions: you must add “using System.IO” In Windows8, .NET and WinRT types are generally converted to/from compatible types under the hood so you don’t have to care about it. For streams, however, there are helper methods to convert between WinRT and .NET streams: For converting from WinRT streams -> .NET streams: InMemoryRandomAccessStream … Read more

How are live tiles made in Windows 8?

Finally figured it out, these live tiles are using tile notifications as noted by others. Here is the minimal code necessary for updating an existing default tile with a template: You have to load in a template and adjust it, or produce your own XML code. See the tile schema… var tileXml = Notifications.TileUpdateManager.getTemplateContent(template); You … Read more

Progress bar with HttpClient

From .Net 4.5 onwards: Use IProgress<T> Since .Net 4.5 you can handle asynchronous progress reporting with the IProgress<T> interface. You can write an extension method for downloading files using the HttpClient that can be called like this where progress is the implementation of IProgress<float> for your progress bar or other UI stuff: // Seting up … Read more

How do I create a shortcut via command-line in Windows?

You could use a PowerShell command. Stick this in your batch script and it’ll create a shortcut to %~f0 in %userprofile%\Start Menu\Programs\Startup: powershell “$s=(New-Object -COM WScript.Shell).CreateShortcut(‘%userprofile%\Start Menu\Programs\Startup\%~n0.lnk’);$s.TargetPath=”%~f0″;$s.Save()” If you prefer not to use PowerShell, you could use mklink to make a symbolic link. Syntax: mklink saveShortcutAs targetOfShortcut See mklink /? in a console window for … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)