windows-8.1

Check the reason the computer resumed from hibernation

≡放荡痞女 提交于 2019-11-30 20:12:21
I am creating an application that puts the computer in hibernation for a few hours or even a full week (Using a WaitableTimer and WaitForSingleObject). There are three reasons why the computer could wake-up The waitable timer expired and the computer resumes as scheduled. The user presses the power button which resumes the computer. The computer turns on unexpectedly. The first two reasons are perfectly acceptable, they are what the system is designed for. The third reason is of course not so nice. I would like to be able to differentiate between these three reasons for turning on. Is there

Not showing items with Visibility=Collapsed in Windows 8.1 GridView

吃可爱长大的小学妹 提交于 2019-11-30 18:36:15
I have a Windows 8.1 application with a GridView bound to a custom (sortable, deduplicated) observable collection. In this collection, I do some heavy filtering and setting an IsHidden flag for every item. In the data template for the item, there is a condition making the item collapsed if IsHidden flag is set to true. <Grid Width="160" Height="280" Visibility="{Binding IsHidden, Converter={StaticResource InvertedBooleanToVisibilityConverter}}"> This approach works in Windows Phone 8.1 XAML, making the items disappear from the ListView but it does not work in Windows 8.1 GridView . The problem

Windows Phone 8 Emulator not launching. Error code 0x80131500

删除回忆录丶 提交于 2019-11-30 17:27:29
I have problem with Visual Studio 2012 (OS: Windows 8.1 Preview) Create empty project (Windows Phone App) Press F5 to start debugging. And I get 0x80131500 error code, with no detailed description. Only this: Deployment of application to device failed. Output: 1>------ Deploy started: Project: PhoneApp1, Configuration: Debug Any CPU ------ 1>Deploying C:\Visual Studio 2012\Projects\PhoneApp1\PhoneApp1\Bin\Debu\PhoneApp2.xap... 1>Connecting to Emulator WVGA 512MB... 1>Deployment of application to device failed. 1>0x80131500 Has anyone encountered such a problem. How it can be solved? Windows 8

Install Windows Phone 7.1 SDK on Windows 8.1 RTM with Visual Studio 2013 RC

守給你的承諾、 提交于 2019-11-30 15:57:07
问题 Does anyone know how to develop for Windows Phone 7, with Visual Studio 2013 (thus without installing Visual Studio 2010) on Windows 8.1 RTM? I've checked the WP8.0 box when I was installing Visual Studio 2013, but it does not provide me the 7.1 SDK which is needed for my solution. It would be great if I could do it without installing Visual Studio 2010. :D Thank you in advance :-) 回答1: The Windows Phone 8.0 SDK include the ability to create apps for 7.1 and 8.0 so there should be no need to

Install Windows Phone 7.1 SDK on Windows 8.1 RTM with Visual Studio 2013 RC

核能气质少年 提交于 2019-11-30 15:25:20
Does anyone know how to develop for Windows Phone 7, with Visual Studio 2013 (thus without installing Visual Studio 2010) on Windows 8.1 RTM? I've checked the WP8.0 box when I was installing Visual Studio 2013, but it does not provide me the 7.1 SDK which is needed for my solution. It would be great if I could do it without installing Visual Studio 2010. :D Thank you in advance :-) The Windows Phone 8.0 SDK include the ability to create apps for 7.1 and 8.0 so there should be no need to install the 7.1 SDK. HOWEVER Developing apps for 7.x is not supported in Visual Studio 2013. If you must

WebResource.axd not working with Internet Explorer 11

时光毁灭记忆、已成空白 提交于 2019-11-30 15:23:36
We're testing our websites for the new Windows 8.1 IE 11 browsers classic and metro. There is a Javascript file embedded in WebResource.axd . The WebResource is generated and loaded fine with Firefox,Google Chrome and IE 11 with the site added in Compatibility View. The only issue is IE 11 both classic and metro where the WebResource is not loaded. I am not seeking a precise answer but what confuses me is , I can't see the WebResource <script> tag in the generated HTML. Neither can I see any request made for the resource which is kind of implicit. Now my question is where could be the issue ,

Windows Phone 8.1 Camera Initialisation - Access Denied Exception

放肆的年华 提交于 2019-11-30 14:54:27
Using the 8.1 MediaCapture classes for Windows Phone. Have declared the capabilities for "Audio" and "Webcam", which 90% is what would be the cause of the exception. Kicker is, it works perfectly in the WP emulator, but breaks on an actual device. Exact exception is here : I have added a mountain of checks to make sure we aren't re-initializing the already initialized camera or trying to read before the initializations.. etc (as I assumed the issue was being caused by) So it is very unlikely to be that. private async Task InitializeCameraAsync() { if (_isInitialized) { Debug.WriteLine(

How to animate a Popup when it hides?

无人久伴 提交于 2019-11-30 14:35:23
i created a Popup Style for using in my windows 8.1 application. And i applied PopupThemeTransition to it's ChildTransitions Property. <Style x:Key="AnimatedPopupStyle" TargetType="Popup"> <Setter Property="IsLightDismissEnabled" Value="False"/> <Setter Property="ChildTransitions"> <Setter.Value> <TransitionCollection> <PopupThemeTransition/> </TransitionCollection> </Setter.Value> </Setter> </Style> My problem is that it animates when it Opens & not animating when closing. What to do with that for animating the content on hiding ? Do i want to create a Custom Popup control? NB: I know that

In WinRT C# how do I save an offscreen XAML tree using RenderTargetBitmap?

て烟熏妆下的殇ゞ 提交于 2019-11-30 14:20:12
The following code throws a cryptic System.ArgumentException from the RenderAsync method "Value does not fall within the expected range." If on the other hand my Canvas is part of a visible XAML tree it works. Is it impossible to render some XAML that isn't displayed on screen? Canvas c = new Canvas(); c.Width = 40; c.Height = 40; c.Background = new SolidColorBrush(Color.FromArgb(0xff, 0x80, 0xff, 0x80)); RenderTargetBitmap x = new RenderTargetBitmap(); await x.RenderAsync(c); I almost thought this answer would work, but no luck, I guess it only applies to WPF: Create WPF element offscreen and

How to maximise a Windows 10 Universal Application's window to full screen when running on a desktop?

老子叫甜甜 提交于 2019-11-30 14:20:04
When building a universal application using Windows 10 (or Windows 8.1 WinRT), is it possible to force the application's main window to maximise on launch? This is obviously natural behaviour for the application when running on a mobile device but not when running on the desktop. This is certainly possible using WinForms: How do I make a WinForms app go Full Screen How to display a Windows Form in full screen on top of the taskbar? But I haven't so far managed to find anything in the Microsoft Documentation about this for Windows 10. An app can request to start as full screen by setting the