Menu
  • HOME
  • TAGS

Play lock screen slideshow in Windows 8 from RSS (RequestSetImageFeedAsync error)

c#,windows-8,windows-8.1,slideshow,lockscreen

I ran your code on windows 8.1 and must say its working without throwing any error. It asked for permission to change my Lockscreen and had to select allow...

Activate Stacks only for some specific ETW Tasks in a provider?

windows-8.1,stack-trace,etw,wpr

Yes, this is possible since Windows 8.1 with the type entry in _EVENT_FILTER_DESCRIPTOR when it is set to EVENT_FILTER_TYPE_STACKWALK when you call EnableTraceEx2. On Windows 8.1,Windows Server 2012 R2, and later, event payload, scope, and stack walk filters can be used by the EnableTraceEx2 function and the ENABLE_TRACE_PARAMETERS and EVENT_FILTER_DESCRIPTOR...

Switch back to PowerShell mode after switching to cmd mode

windows,powershell,cmd,windows-8.1

Type exit. PS C:\Scripts> cmd Microsoft Windows [Version 6.3.9600] (c) 2013 Microsoft Corporation. All rights reserved. C:\Scripts>exit PS C:\Scripts> ...

Google Chrome - How to compile Google Chrome in Windows?

google-chrome,visual-c++,windows-8.1,ninja

DONE. Windows 8.1 Pro 64-bit. Visual Studio 2013 Community edition Step 1: C:\>mkdir folder C:\>cd folder C:\>unzip https://src.chromium.org/svn/trunk/tools/depot_tools.zip C:\folder>dir Directory of C:\folder 18/04/2015 02:59 <DIR> depot_tools 0 File(s) 0 bytes 3 Dir(s) 67 387 064 320 bytes free Step 2: C:\folder\depot_tools>git config --global user.name "John Doe" C:\folder\depot_tools>git config --global user.email "[email protected]" C:\folder\depot_tools>git config...

Casting string as int causes the value to change

windows,powershell,windows-8.1

This is happening because $data[-2] is a [String], and using brackets to get a character in a [String] doesn't return a new [String], it returns a [Char]. A [Char] is displayed as a single character (like in a string), but is in fact a numeric value. When you cast it...

Cannot install Visual Studio Professional and Community on Windows 8.1 Enterprise

visual-studio,windows-8.1

ok, according to the dump, the setup crashes because of the Intel HD graphic driver: EXCEPTION_RECORD: (.exr -1) ExceptionAddress: 00000000 ExceptionCode: c0000005 (Access violation) ExceptionFlags: 00000000 NumberParameters: 2 Parameter[0]: 00000008 Parameter[1]: 00000000 Attempt to execute non-executable address 00000000 PROCESS_NAME: vs_professional.exe ERROR_CODE: (NTSTATUS) 0xc0000005 - Die Anweisung in 0x%08lx verweist auf...

navigating between pages using radio buttons in winrt

c#,windows-runtime,windows-phone-8.1,windows-8.1

You need to cast _contentFrame, not _contentFrame.Content. var _frame = contentframe as Frame; ...

Error when instantiating WinJS.UI.ListView with template from code

javascript,windows-8,windows-8.1,winjs

The only workaround I've been able to get to work is to instantiate the template in code, then pass a function to the itemTemplate option when instantiating the ListView. The documentation on what is expected here is sparse, but all of the demos where the ListView is instantiated via code...

UnicodeDecodeError in pip install flake8 on Windows 8.1

python,windows-8.1,pip,flake8

After startlingly generous help from Padraic, we eventually figured out that the problem was my computer name, which was Fredrik-Bärbar (notice the ä, i.e. 0xe4 in code page 850, there in the 10th place, or 9th place using Python's 0-based indexing). (This error is related to that in Pip Error...

MS Access running a funtion from scheduled task not working

windows-8.1,scheduled-tasks,ms-access-2003

When opening access i was getting security warning which required user confirmation. I changed the security level to low in tool->macros->security to make this go away and success. On the server i had a different warning saying that the file is corrupt or badly closed. Still have not got round...

Why is 6-7 threads faster than 20?

c++,multithreading,visual-studio-2013,windows-8.1,stdthread

This is a fairly universal problem with threading, and at its core: What you are demonstrating is thread Scheduling. The operating system is going to work with the various threads, and schedule work where there is currently not work. Assuming you have 4 cores and hyper threading you have 8...

Current directory and parent directory seem broken

shell,command-line,windows-8,windows-8.1

If you want to use forward slashes (/) with paths in Windows Command Prompt you need to quote the whole path. "./dirA/dirB/program.exe" If you use backslashes (\) then you don't have to quote paths (unless your path contains spaces)....

How do I get python to fetch information from command prompt such as 'tasklist'

python,command,windows-8.1

You can use the check_output function: from subprocess import check_output var = check_output('tasklist') ...

Can't start Eclipse Luna SR2 on Windows 8.1 (64-bit)

java,windows-8.1,eclipse-luna

try this: go to System > Advanced system setting > Environment Variables Under System variables : C:\ProgramData\Oracle\Java\javapath; remove this hope this helps...

How to get current currency code of current location in Windows Phone 8.1

c#,.net,geolocation,windows-phone-8.1,windows-8.1

You can either make a network call to a web service to map country code to currency code or embed a list of country code to currency code mappings in your app. Here's an example of a web service providing the mapping. http://country.io/currency.json ... "US": "USD", "UY": "UYU", "UZ": "UZS",...

Bash alias doesn't work in cygwin

bash,cygwin,windows-8.1,alias

The syntax of your alias command is correct and should be working as long as the alias command is actually being executed. It sounds like your .bashrc file is not being loaded when you start your bash shell. Make sure you have the following in your ~/.bash_profile file: [[ -s...

Fill Windows Share Charm with Clipboard Data

windows-8.1,share,clipboard,charms-bar

You can’t copy to the clipboard via the share charm, but you can certainly build the functionality into your app. To copy an image to the clipboard you could do something like this: void OnCopyAppBarButtonClick(object sender, RoutedEventArgs args) { Windows.ApplicationModel.DataTransfer.DataPackage dataPackage = new DataPackage { RequestedOperation = DataPackageOperation.Move }; dataPackage.SetBitmap(bitmapStream);...

How to detect If AdRotator V2.1 is showing an Ad or an error occurred

windows-store-apps,windows-8.1,ads,adrotator

This is hack i am currently using. Its quite brittle. Its looking at log message for strings to detect if an error has occurred. public class BaseAdControl { public AdRotatorControl CurrentAdRotatorControl { get; set; } private UserControl userControlWrapper; public BaseAdControl(AdRotatorControl MyAdRotatorControl, UserControl userControlWrapper) { // TODO: Complete member initialization this.CurrentAdRotatorControl...

How to call a function in Windows 8 app?

javascript,html,windows-store-apps,windows-8.1

I solved it. There is no way (From what I know) to call a function that is not in the function itself. When I write the function like a regular function in the function itself it worked. Example for what I found: anotherFunction: function () { function textchange() { document.getElementById("id").innerText...

Use DependencyProperty in the Style

xaml,windows-8.1

I created a CustomControl named MenuButton.cs: In the Generic.xaml I have: <Style TargetType="{x:Type local:MenuButton}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type local:MenuButton}"> <Border Background="{TemplateBinding Color}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"> </Border> </ControlTemplate> </Setter.Value> </Setter> </Style> As you see TemplateBinding Color, nothing complex...

“Windows Live” folder in windows 8.1

windows,shell,windows-8.1

Okay, i found soloution. Thanks @Petesh Create folder C:\CustomCommands Open Computer and right-click on any white space, then select properties from the context menu. When the System section of Control Panel opens, click on the Advanced system settings hyperlink in the left hand pane. Then you will need to click...

Where is the Conversion Namespace in Windows Store Apps

.net,namespaces,windows-store-apps,windows-8.1

If I understand what CTypeDynamic does then System.Convert.ChangeType(Object, Type) looks like the equivalent and is available in the .NET for Windows Runtime apps

How to run a script on startup in hidden mode

batch-file,vbscript,windows-8.1,startup

This Vbscript can did the trick (Tested on Windows 7 32 bits) Hope will work on your Windows 8 ;) So the code is very easy to use : You just change two things on it : PathApplication ShortcutName Option Explicit Dim PathApplication,ShortcutName,VbsPath VbsPath = Wscript.ScriptFullName PathApplication = "C:\signcatcher\signcatcher\prova.bat" ShortcutName...

How to store PDF files: in sqlite or in the separate folder

sqlite,windows-8.1,win-universal-app,sqlite-net

Unless you are going to be storing relational data and that you need to run queries (and it sounds like you aren't), I would suggest using the local storage. It isn't really that difficult to use. Now, as far as performance. Reading the disk on the app is not going...

How do I make my TextBlocks be the correct sizes in my C# XAML Windows 8.1 app?

c#,xaml,windows-phone-8.1,winrt-xaml,windows-8.1

TL;DR: Set HorizontalContentAlignment and VerticalContentAlignment to Stretch The ContentPresenter in the button has its HorizontalAlignment and VerticalAlignment property bound to the HorizontalContentAlignment and VerticalContentAlignment property respectively. You can see this in the default control template found on MSDN. <Grid> ... <Border x:Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Margin="3"> <ContentPresenter...

DataBinding Collection and change element of collection

c#,wpf,xaml,data-binding,windows-8.1

If you expect the ForegroundColor to change (that's a guess), you need to make sure the WPF components know it has changed. You need to send a change notification for ForegroundColor when IsChecked changes, too. Oh, and don't compare doubles using ==. Doubles are floating point variables....

npm install error: error : spawn ENOENT when trying to build Cordova project

cordova,visual-studio-2013,npm,windows-8.1,visual-studio-cordova

Unfortunately I have not found a solution to the visual 2013. However encontrie the solution . I changed my machine , and installed visual studio 2015 Which has the Cordova, everything worked Correctly .

how to set focus to a SearchBox control in windows 8.1 store app?

wpf,windows-8.1,search-box

My problem is solved the problem was in XAML hierarchy that was <Grid> <Button/> <SearchBox/> <Hub/> </Grid> I had a Grid in that i had a Button-for removing focus from Searchbox when app is launched, then I had the Searchbox and after that I had a Hub. As Hub covers...

image slideshow with dispatcher timer in windows store apps

c#,image,windows-store-apps,windows-8.1,slideshow

Logical flaw. In your code, the counter is changed twice, first from Images1.Count - 1 to 0, then incremented in the second if statement from 0 to 1. My fix if (count1 < Images1.Count) count1++; if (count1 >= Images1.Count) count1 = 0; ImageRotation1(); ...

Handling screen orientation properly in WIndows Phone 8.1

c#,xaml,windows-phone-8,windows-phone-8.1,windows-8.1

You have hardcoded Margins which is nothing good when you want to make your app support different orientations/resolutions. Consider using Rows/Columns in your grid, along with Star units for Height/Width, then it will scale automactically: (I don't know how you wish your layout to look like, so I've put example...

ResolutionScale vs RawPixelsPerViewPixel on Windows Phone 8.1

windows-phone-8.1,winrt-xaml,windows-8.1

ResolutionScale is deprecated; always use RawPixelsPerViewPixel for Windows Phone and for Windows 10 Universal apps. Unfortunately, Windows 8.1 (released before Phone 8.1) still uses ResolutionScale so you need to continue using that property for Windows 8.1 apps. If you are building a Windows 8.1 / Windows Phone 8.1 Universal app...

Loop Through all tiles on the start screen

winforms,c#-4.0,windows-8.1

MS changed access to the tiles in 8.1 and this is not feasible.

Run appxbundle on a simulator

windows-8.1,windows-applications

Found a solution, install the app with windows power shell add-appxpackage C:\myapp.appx ...

How to get a button's ID when clicked in Windows 8 apps?

javascript,html,javascript-events,click,windows-8.1

This works on an ordinary webpage: var update = function(el) { document.getElementById("msg").innerHTML = el.id; } <button onclick="update(this)" id="btn1">btn1</button> <button onclick="update(this)" id="btn2">btn2</button> <span id="msg">ID goes here</span> But it's better to use event listeners: var update = function(el) { document.getElementById("msg").innerHTML = el.id; } document.getElementById("btn1").addEventListener("click", function() { update(this); });...

How to create the special toast and swipe down on lock screen like Skype in win8.1?

c#,windows-store-apps,windows-8.1,skype,lockscreen

The Alarm Toast Notification sample shows how to do this for an application that is the Alarm application for the machine: https://code.msdn.microsoft.com/windowsapps/Alarm-toast-notifications-fe81fc74 If your application is a VOIP application then you can modify the toast XML String in that sample to be the following: string toastXmlString = "<toast duration=\"long\">\n" +...

How to split text with HTML tags to array

c#,windows-phone-8.1,windows-8.1,windows-universal

You may achieve this using following code string value = @"Lorem Ipsum is <b>simply dummy</b> text of the printing and <b>typesetting industry</b>"; var parts = Regex.Split(value, @"(<b>[\s\S]+?<\/b>)").Where(l => l != string.Empty).ToArray(); ...

Force windows WebView to load content in Portrait mode

xaml,unity3d,windows-8.1

This is not exactly what i need, but for now i use DisplayInformation.AutoRotationPreferences = DisplayOrientations.Portrait; when WebView load a page, and DisplayInformation.AutoRotationPreferences = DisplayOrientations.Landscape; when close WebView and go back to game....

How can i import windows.media.capture in my WPF project?

c#,wpf,visual-studio-2013,windows-8.1,windows-7-x64

Finally I've done developing app for windows 8.1 Table in Windows 7 x64 and want to share some experience that i had in here. Steps : Edit .csproject in wpf app (Add <TargetPlatformVersion>8.1</TargetPlatformVersion> Inside <PropertyGroup> ) Add "Windows" library Reference Load some .Net Framework 4 Library (System.Runtime.dll,System.Runtime.WindowsRuntime.dll, System.Runtime.InteropServices.WindowsRuntime.dll,System.Threading and System.Threading.Task...

Force the App to become on Portrait View when clicking a Button

c#,windows-store-apps,windows-8.1,screen-orientation

It turns out that it is impossible to Set the Application to a certain ApplicationView, Portrait or Landscape without physically turning the device. I tried to trick the user by rotating my image (by animating it in Blend) to look like it's in a Portrait View. The user will then...

Unable to resolve property '%1' while processing properties for Uid '%0'

c#,windows-runtime,windows-store-apps,windows-phone-8.1,windows-8.1

It is unclear what "SomeRandomKey" is in your example, and what you are trying to achieve with it. But this exception is thrown because TextBlocks don't have a SomeRandomKey property. They have Text, Width, but definitely not "SomeRandomKey". Just remove it.

Encrypt & Decrypt Local Images in Windows Store App

c#,encryption,windows-store-apps,base64,windows-8.1

It's easiest if the images you want to encrypt are loaded from files and written back out to files. Then you can do: async void EncryptFile(IStorageFile fileToEncrypt, IStorageFile encryptedFile) { IBuffer buffer = await FileIO.ReadBufferAsync(fileToEncrypt); DataProtectionProvider dataProtectionProvider = new DataProtectionProvider(ENCRYPTION_DESCRIPTOR); IBuffer encryptedBuffer = await dataProtectionProvider.ProtectAsync(buffer); await FileIO.WriteBufferAsync(encryptedFile, encryptedBuffer); } DataProtectionProvider.ProtectStreamAsync...

How to change or remove splash screen in windows 8.1?

c#,windows-8.1

You need to go to the Package.manifest, through Visual Studio, and change the splash screen value. Here is a link to the Xaml version and the steps: Open your app in Visual Studio 2013. From Solution Explorer, open the "Package.appxmanifest". Open the Visual Assets tab, select Splash Screen and you'll...

COM STA model in Parallel Patterns Library (PPL)?

visual-c++,visual-studio-2012,mfc,windows-8.1,ppl

Hans Passant is right on 100%. VC++ CRT 2012/2013 is initialize WinRT in PPL lib! And to do it on Windows 8 and later. For what it to do in desktop app I dont know, but now all PPL tasks have pre initialized COM in multithreading mode. So, if you...

Background color part of textbox

c#,xaml,windows-phone-8.1,windows-8.1,windows-universal

May be following option can helps you. You can use RitchTextBox, since in WindowsPhone RitchTextBox is read only (as an TextBlock). My quick sample :) : <RichTextBox> <Paragraph> Some textSome textSome textSome textSome <Span Foreground="#FF0E0E0E">textSome textSome textSome</Span> textSome textSome textSome textSome textSome textSome textSome textSome textSome textSome textSome textSome textSome...

MySQL Server 5.7.7 installation stuck on “Starting Server” on Windows 8.1

mysql,windows-8.1

Your issues feel like deja-vu for me. I'm using the same MySQL installer on Windows Server 2012 R2 64-bit. I had the my.ini issue and resolved it the same way. Next up to bat was the service not starting. After checking the service Properties, it didn't take long to notice...

Error Installing Windows 10 development tools for Visual Studio 2015 RC on Windows 8.1

windows-8.1,win-universal-app,visual-studio-2015

Through a quick google of the error code you provided, I found an article with the following post: To get unblocked, go to https://dev.windows.com/downloads/windows-10-developer-tools. Scroll to the bottom of the page and install the Windows 10 SDK and Windows 10 emulators outside of Visual Studio setup. Source: https://social.msdn.microsoft.com/Forums/en-US/17bc9d5e-2ea7-4149-bb75-23997db8bd25/known-issue-emulators-for-windows-mobile-10010069-the-installer-failed-user-cancelled?forum=Win10SDKToolsIssues I cannot...

Check if a character typed in a PasswordBox is numeric or not

c#,xaml,windows-store-apps,windows-8.1

You can subscribe for KeyDown event on the PasswordBox. Maxmum Length can be restricted by setting MaxLength property. private void OnKeyDown(object sender, KeyEventArgs e) { if ((e.Key >= Key.D0 && e.Key <= Key.D9) || (e.Key >= Key.NumPad0 && e.Key <= Key.NumPad9)) return; e.Handled = true; } ...

How to move folder/files with path names > 255 characters in Windows 8.1?

file,copy,windows-8.1,folder,move

I finally found a good solution! The savior is Robocopy Robocopy supports path names > 256 by default, and even provides a flag that lets you turn OFF support for long path names (flag: /256). Example usage of Robocopy: robocopy /E C:/path/with/very/long/names/in/it C:/new/path...

Fading animation in Visual Studio Blend

c#,xaml,visual-studio-2013,windows-8.1

Here is a small example, which consists of a TextBox and a TextBlock. Each time you change the value in the TextBox, the content of the TextBlock fades out and in. <StackPanel> <TextBox x:Name="txtSampleText" Margin="10" Text="This is a Sample Text"></TextBox> <TextBlock x:Name="tbMessage" Text="{Binding ElementName=txtSampleText, Path=Text, NotifyOnTargetUpdated=True}" Margin="10"> <TextBlock.Triggers> <EventTrigger RoutedEvent="Binding.TargetUpdated">...

Redirect content to a file in ascii encoding

windows,powershell,cmd,less,windows-8.1

As a simple workaround, specify the output as a command-line parameter instead of redirecting stdout: lessc -x style.less style.min.css ...

Webfonts not rendering on IE11 win8.1

windows-8.1,internet-explorer-11,webfonts

Your problem may be in the browsers emulation mode (Compatibility View). Force the UserAgent for IE by including this as the first metatag: <meta http-equiv="X-UA-Compatible" content="IE=edge"> x-ua-compatible ie-compatibility-mode...

vb.net thread with loop not working in Windows 8.1 but works in Windows 7

vb.net,multithreading,gps,windows-8.1

Well not sure why it worked perfectly in windows 7 but not windows 8.1 but i have found that adding two System.Threading.Thread.Sleep(100) after the else and before then end of the sub has fixed the problem, though I am considering moving this code to a background worker. Imports System Imports...

What is the best way to do the long background task in Windows 8

windows-8,windows-runtime,windows-8.1,background-task

Instead of attempting to do the entire transfer in the background task itself, have the background task start a background transfer, which runs independent of the task and independent of the app as well. See the topic, Transferring Data in the Background, https://msdn.microsoft.com/en-us/library/windows/apps/hh452979.aspx. You can run the background task periodically...

Get folder from windows service(system.io) to Windows store App (Windows.Storage)

.net,vb.net,windows-store-apps,windows-8.1,storage

After looking for a while this seems quite impossible to do. However I have found a way to go around the problem by passing each file 1 by 1 into a memorystream. It is possible to store an image into a memorystream and then, on the client, take that stream...

Styling Windows Phone 8.1/WinRT AppBarButton

windows-runtime,windows-phone-8.1,winrt-xaml,windows-8.1

Set the CommandBar's foreground and background colors. The command bar on Windows Phone is system UI not app UI and does not allow customizing the colors of individual AppBarButtons. Their colors always come from the CommandBar's colors....

WinJS app with C# background task for push notifications

javascript,c#,push-notification,windows-8.1,winjs

Typically you'd do this by having the C# background task project as part of the same VS solution, and then add a reference from the JS app project to the background task project. I would recommend not ever instantiating the C# component/class from your JS app, as this is not...

C# Downloading And Using File Causes System.UnauthorizedAccessException

c#,windows-phone-8.1,windows-8.1

Instead of calling Close() or Dispose() I really like to use using which does the job automatically. So your method could look like this: public async void DownloadTrack(Uri SongUri) { using (HttpClient httpClient = new HttpClient()) { var data = await httpClient.GetByteArrayAsync(SongUri); var file = await ApplicationData.Current.LocalFolder.CreateFileAsync("Test.mp3", CreationCollisionOption.ReplaceExisting); using (var...

Windows 10 FIle query issues

c#,windows-phone,windows-phone-8.1,windows-8.1,windows-10

Windows 10 is still under work. The latest build on the phone resolved this issue.

Passing a reference to template function call operator overload

c++,visual-studio-2013,operator-overloading,windows-8.1,function-call-operator

That's because in your case the cv-qualifiers and the reference-ness of the parameter are discarded when performing template type deduction. Pass via a std::ref wrapper instead t(std::ref(i)); Simple example: #include <iostream> #include <functional> template<typename T> void f(T param) { ++param; } int main() { int i = 0; f(std::ref(i)); std::cout...

Hadoop 2.6.0 build on Windows 8.1 fails - Ant BuildException

maven,hadoop,build,windows-8.1,java-7

I had the same error. Fixed it by making sure the cmake wasn't the one that comes with cygwin. For some reason, that cmake doesn't recognize Visual Studio.

VBS - how to run two browser one is full screen and another is minimised?

shell,google-chrome,vbscript,windows-8.1

Don't use Shell.Application, use the Run method of WScript.Shell. Here I assume that chrome.exe is either on the path or in the current working directory: Option Explicit With CreateObject("WScript.Shell") Call .Run("chrome.exe www.icanhazip.com", 6, false) Call .Run("chrome.exe --kiosk www.stackoverflow.com", 1, false) End With The second parameter is the window style. Documentation...

Run Windows 10 Universal Apps on Windows 8.1

windows,windows-8.1,win-universal-app,windows-10

A Universal Windows app is a Windows experience that is built upon the Universal Windows Platform (UWP), which was first introduced in Windows 8 as the Windows Runtime. Universal Windows apps are most often distributed via the Windows Store (but can also be side-loaded), and are most often packaged and...

WCF Service times out from windows 8 unit test project

wcf,unit-testing,windows-store-apps,windows-8.1

Because this is a store app, it runs in a sandbox (AppContainer) and therefore certain things (like WCF) do not work from "unit tests" out of the box. In order to get this to work, I had to add a Loopback Exemption to my development machine for the unit test...

Bing maps sdk with Telerik UI controls for universal app

c#,telerik,windows-8.1,win-universal-app

Get the path of SDK folder (right click on referenced telerik library in project and see properties) and copy binaries folder to a another location Uninstall Telerik Universal App SDK Open you project and remove Telerik Library from references (which should be giving exclamation mark since the SDK is...

Value does not fall within the expected range windows store app

c#,xaml,listview,windows-store-apps,windows-8.1

The ItemsSource property should be assigned the orders collection, not the OrderRootClass instance. var orderData = JsonConvert.DeserializeObject<OrderRootClass>(response); OrderListView.ItemsSource = orderData.orders; // here However, it should have given you a compiler error saying that orderData does not implement IEnumerable....

Opening another WinRT app from another running app in FULL mode

c#,windows-store-apps,windows-8.1

Windows Store apps don't have any way to directly launch other apps. I assume you're launching a URI or file and your app is registered as the default handler (users can choose something else). In your call to Launcher.LaunchUriAsync you can set the DesiredRemainingView in your LauncherOptions to indicate how...

TFS build error: Could not find SDK “Bing.Maps.Xaml, Version=1.313.0825.0”

windows-8,tfs,windows-8.1,bing-maps,tfsbuild

I solve the problem with this visual studio extension :) https://visualstudiogallery.msdn.microsoft.com/1f027247-1e01-4ec6-8f5b-70dabb375217...

Multiple item template inside grid view in Windows 8.1 store app

c#,xaml,windows-store-apps,winrt-xaml,windows-8.1

Yes, you can. You need a DataTemplateSelector. You can select an appropriate template for the selected object in the grid/list. Sample for selector: class TemplateSelectorMyPage : DataTemplateSelector { public DataTemplate NormalIconTemplate { get; set; } public DataTemplate BigIconTemplate { get; set; } protected override DataTemplate SelectTemplateCore( object item, DependencyObject container...

Monogame running very slow on Windows Phone

c#,windows-phone-8.1,windows-8.1,monogame

Thanks to thumbmunkeys, the problem is fixed. The debugger makes the game very slow, so not attaching the debugger brings the game back to 30fps. This can be tested by deploying the app using Visual Studio, then stopping the debugger and starting the game on the device....

WinJS programmatically take screenshot of app

cordova,windows-8.1,winjs

There isn't a good way to do this. Windows Store apps don't have any explicit screenshot API (Windows Phone Store apps do have a phone-only ScreenCapture API) and HTML and JavaScript don't provide a way to render arbitrary HTML to a bitmap (such as Xaml's RenderTargetBitmap). You render the contents...

How to get an IBuffer from an IRandomAccessStream

c#,windows-8.1,win-universal-app

The easiest way I found was to go via MemoryStream.GetWindowsRuntimeBuffer : IRandomAccessStream stream = ...; using (var memoryStream = new MemoryStream()) { memoryStream.Capacity = (int)stream.Size; var ibuffer = memoryStream.GetWindowsRuntimeBuffer(); await stream.ReadAsync(ibuffer, (uint)stream.Size, InputStreamOptions.None).AsTask().ConfigureAwait(false); } ...

Wizard Design for modern UI (Windows 8.1)

windows-8,windows-store-apps,windows-8.1

Back button, content, next button. Very easy and can be found in google images.

What is the alternative of Pivot Control in Windows 8.1?

c#,listbox,windows-8.1,win-universal-app

See XAML controls comparison between Windows Phone 8 and Windows 8 on MSDN. Not all controls are available for both Windows and Windows Phone. Specifically, there is no direct analogue to the Pivot on Windows 8.1. You will need to either redesign your UI to use a different control or...

Binding multiple fields to MenuFlyoutItem

c#,xaml,windows-phone-8.1,windows-8.1

I thin you should be able to do this for example by checking the DataContext of clicked Grid or MenuItem: private void Grid_Tapped(object sender, TappedRoutedEventArgs e) { Item yourItem = (sender as Grid).DataContext as Item; FrameworkElement element = sender as FrameworkElement; if (element != null) FlyoutBase.ShowAttachedFlyout(element); } // you can...

How do you calculate pixel size of string?

c#,windows-phone-8.1,windows-8.1,windows-universal

I think you need to create a textblock in code and assign the desired text to it. Then you can get the actual height and width from it. See the below code TextBlock txt=new TextBlock(); //set additional properties of textblock here . Such as font size,font family, width etc. txt.Text...

Environment vars by Power Shell

windows,powershell,environment-variables,windows-8.1

You can try this command: Get-ChildItem Env: Output: Name Value ---- ----- Path D:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\... TEMP C:\DOCUME~1\kmyer\LOCALS~1\Temp SESSIONNAME Console PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PS1;.PSC1 USERDOMAIN WINGROUP PROCESSOR_ARCHITECTURE x86 SystemDrive C: APPDATA C:\Documents and Settings\kmyer\Application Data windir C:\WINDOWS USERPROFILE C:\Documents and Settings\kmyer Also check Windows PowerShell Tip of the Week...

Check if Windows Imaging Component on Windows 8.1 64bit

windows-8.1,wic

I found the answer after going through my other laptop's registry. It seems that many programs (like Ansys etc.) determine the availability of WIC by the presence of the following registry key: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\WIC] "NoRemove"=dword:00000001 Once I added this key the Prerequisite Check program detected WIC as installed. ...

InnoSetup - while compiling sign tool failed with exit code 0x1

windows-7,windows-8.1,inno-setup

Just remove the extension from rarfile, make it to just "chrome64", with a batch script rename it while setup the files. In innosetup [Run] Filename: "{app}\rename.bat" In rename.bat: @ECHO OFF ren Chrome64 Chrome64.rar del rename.bat I'm just removed the extension from Chrome.exe, and with batch rename it back to exe...

How to play MediaElement only once in Timespan?

c#,windows,windows-8.1

Check out the Rx package. It lets you treat events as data sequences and comes with a lot of built in support for event throttling. Specifically, check out Buffer method. From introtorx: You can temporarily withhold a specified number of elements, stash away all the values for a given time...

Ruby on Rails for Windows: how to get started without getting a different error every time?

ruby-on-rails,ruby,ruby-on-rails-3,windows-8.1,execjs

I would recommend using a vm, I've used virtualbox in the past with ubuntu for rails development. It's not impossible to get things to work in windows, but you'll probably thank yourself later if you move to the vm. For the specific error you mention see this SO post which...

WinRt - FileSavePicker, save image from URI to file

c#,windows,windows-runtime,windows-8.1

I assume you already have downloaded the image into dataStream. If not you can do so with the HttpClient class: var uri = new Uri("http://cdn.sstatic.net/stackexchange/img/logos/so/so-logo-med.png"); Windows.Web.Http.HttpClient httpClient = new HttpClient(); var stream = await httpClient.GetInputStreamAsync(uri); Stream dataStream = stream.AsStreamForRead(); You can get a writeable stream to your picked file by...

How to make sure the PC is having internet and then launch exec?

google-chrome,go,windows-8.1

you could do an http.Get() func hazInternet() bool { res, err := http.Get("http://www.google.com/robots.txt") if err != nil { log.Println(err) return false } res.Body.Close() return true } Go PlayGround...

the dispatchertimer is by default running for the whole app and does not stop

windows-phone-8.1,windows-8.1

You can stop your DispatchTimer using Stop() method. If you are looking for non-repeating timer you can use Timer class from System.Threading namespace and set period in its constructor to Timeout.Infinite which will call TimerCallback just once. private Timer _timer; private void StartTimer() { _timer = new Timer(TimerCallback, null, 2000,...

How to encode IImageProvider as a PNG image?

windows-phone-8.1,png,windows-8.1,win-universal-app,lumia-imaging-sdk

Lumia Imaging SDK supports PNG images as input, however there isn't a "PNG Renderer" avaliable in the SDK. Luckily if you are developing for Windows 8.1 (StoreApplication / universal application / Windows phone 8.1 project) there is a Windows encoder (Windows.Graphics.Imaging.BitmapEncoder) you can use. Assuming the IImageProvider you want to...

How to get current country location and possibly the CountryCode from a Windows Phone 8.1

c#,.net,geolocation,windows-phone-8.1,windows-8.1

Its called reverse geolocation try this var geolocator = new Geolocator(); geolocator.DesiredAccuracyInMeters = 100; Geoposition position = await geolocator.GetGeopositionAsync(); //reverse geocoding BasicGeoposition myLocation = new BasicGeoposition { Longitude = position.Coordinate.Longitude, Latitude = position.Coordinate.Latitude }; Geopoint pointToReverseGeocode = new Geopoint(myLocation); MapLocationFinderResult result = await MapLocationFinder.FindLocationsAtAsync(pointToReverseGeocode); //here also it should be checked...

Checking for updates to Windows Store apps from within the application

c#,windows-8,windows-runtime,windows-8.1

There is not a documented API for querying the Windows Store to get the version of the application. I'd suggest to achieve a similar result, place a file containing this information on a public web server and query it from your Windows application instead. Any time you push an update...

Collapsed Grid in StackPanel change position of other controls in StackPanel

c#,xaml,windows-store-apps,windows-8.1,visibility

Simply set it's opacity to 0 if you don't want to deal with resizing etc.However you must consider interactions like tapping or clicking. Setting an opacity instead of Visibility is much usefull in terms of performance and it's easy....

pushing Dialog back to microsoft band after interacting with Cortana on Band

c#-4.0,windows-phone-8.1,windows-8.1,win-universal-app,microsoft-band

There is no means provided to show a Microsoft Band SDK dialog over the Cortana window on the Band in the SDK today. Your best bet would be to reach out to the Microsoft Band team at [email protected] with an explanation of your use case.

Localize DatePicker and TimePicker in windows rt

windows-8.1,windows-rt

I was able to fix my issue on this one. Somehow, although I have already set the regional settings and language settings in the control panel (example: japanese), the datepicker.Language and timepicker.Language still uses the Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride that was set. Eventhough I set the language in the control (datepicker and timepicker)...

How can I bind Pushpin location in WPF using MVVM?

wpf,mvvm,windows-8.1,bing-maps-api

Bing Maps uses the attached property MapLayer.Position for positioning elements on the map. Given a view model with a property of type Location public class ViewModel : INotifyPropertyChanged { private Location location; public Location Location { get { return location; } set { location = value; OnPropertyChanged("Location"); } } ......

C# numeric onscreen keyboard

c#,keyboard,windows-8.1,numeric-input

Hi there is property InputScope="Number" in Win 8.1 TextBox too.

Windows 8: Must enter login password twice

login,windows-8,windows-8.1

At some point in the last two days this has stopped occurring. Hopefully it was just a network issue during startup and won't happen again!

How to go from c: disk to d: - with GIT

git,windows-8.1

Under windows you can add /d flag to the cd command: cd /d d:\yourfolder ...