windows-8.1

Styling Windows Phone 8.1/WinRT AppBarButton

你离开我真会死。 提交于 2019-12-10 11:07:04
问题 I'm currently looking to implement a CommandBar for a WinRT Windows Phone 8.1 app. Overall it is very straightforward but I am unable to style the control. I have themed my app so that the accent colour has been changed to green. This works well for pretty much everywhere in the app (buttons, textblocks etc.) but not for the AppBarButton. The brushes I'm overriding are SystemColorControlAccentBrush and PhoneAccentBrush but changing these does not make any difference to the colour of the

WinRT preload images

别等时光非礼了梦想. 提交于 2019-12-10 10:53:14
问题 I have a Windows 8.1 XAML app where I'd like to preload images before navigating between pages. The naive code I have now is: // Page1.xaml.cs private void Button_Click(object sender, RoutedEventArgs e) { Frame.Navigate(typeof(Page2)); } And on the second page: // Page2.xaml.cs this.image1.Source = new BitmapImage(new Uri("ms-appx:///Assets/image1.jpg")); this.image2.Source = new BitmapImage(new Uri("ms-appx:///Assets/image2.jpg")); Now, when I click the button to navigate, I can see the

InAppBrowser (Apache cordova plugin) does not open in Windows 8.1

假装没事ソ 提交于 2019-12-10 10:09:07
问题 I am developing an app using visual studio tools for apache Cordova (Cordova CLI : 4.3.1) and AngularJS. It uses InAppBrowser plugin via ngcordova library. Here is my code: var url = "http://myurl.com"; var target = "_blank"; var options = { location: 'no', toolbar:'no', hidden: 'no' }; document.addEventListener('deviceready', function () { var browserRef = $cordovaInAppBrowser.open(url, target, options).then(function (event) { }, function (error) { console.log("Error: " + error.message); });

No installed components were detected. Element is already the child of another element

ⅰ亾dé卋堺 提交于 2019-12-10 10:07:30
问题 In App.xaml I have added Application Resources with a button as: <Application.Resources> <Button x:Key="MyButton"/> </Application.Resources> In MainPage.xaml.cs , I tried to add this button programatically in my grid. Button btn = (Button)Application.Current.Resources["MyButton"]; myGrid.Children.Add(btn); But it gives error like this: No installed components were detected. Element is already the child of another element. In MainPage.xaml: <Grid x:Name="myGrid" Background="{ThemeResource

Disable Internet Explorer 11 Auto Scaling Zoom to Viewport Width - IE11

£可爱£侵袭症+ 提交于 2019-12-10 08:19:46
问题 Is there any way to prevent the "auto zoom to viewport width" (a.k.a. automatic scaling) feature in Internet Explorer 11? I want to force the browser to follow my max-width rule and prevent it from auto-scaling the page contents to the full width of the viewport. I'm seeing the issue in IE11 on Surface Pro 2 in both "desktop" and "metro" modes. The issue is discussed here and may be related to external displays, although I'm experiencing it with or without an external display attached, and

How to reliably steal/regain focus for MFC/desktop app on Windows 8.1/10?

老子叫甜甜 提交于 2019-12-10 04:34:03
问题 OK, I get it: focus stealing is evil. Or at least it is 99.9% of the time. But I really need to steal the focus reliably on Windows 8, and so far I'm thwarted by the hordes of people insisting focus stealing is always evil. Scenario: we run a custom application on an ordinary PC running Windows 8.1 (soon to be Windows 10). The screen, keyboard and mouse sit roughly 5m off the ground up some stairs that the forklift operator really shouldn't climb. The one input device they have is a numeric

ionic run browser --livereload not working

家住魔仙堡 提交于 2019-12-10 02:38:07
问题 i was trying to use live reload on my ionic 2 application. so i found this command ionic run browser --live-reload is not working as expected and while making code changes i am receiving console messages [16:12:47] build started ... [16:12:47] transpile update started ... [16:12:47] transpile update finished in 46 ms [16:12:47] deeplinks update started ... [16:12:47] deeplinks update finished in 248 ms [16:12:47] webpack update started ... but the page isn't reloading 回答1: i found the

Registering a touch screen HID with RegisterRawInputDevices does not work

回眸只為那壹抹淺笑 提交于 2019-12-09 23:48:54
问题 I am trying to get raw input data from a Surface touch screen, using RAWINPUT API. Getting the devices list works good. But when I want to register the touch screen device with RegisterRawInputDevices, I have issues : the function returns false with 87 (ERROR_INVALID_PARAMETER) in GetLastError... I have tried different things that I read online but none work. I am using Interop on C# for very simple desktop console application, developping with Visual Studio 2013 on Windows 8.1. The target is

VB6 Digitally-Signed EXE appears as Unknown Publisher in Windows 8 SmartScreen

我与影子孤独终老i 提交于 2019-12-09 23:45:56
问题 I have compiled a VB6 app and I digitally sign it after compilation using a batch file containing this command: signtool sign /f apt.pfx /p MyPassword d:\upload\service_pack_UK_BETA.exe If I right-click the EXE I can see the digital signature in the file Properties. However if people download the file and try to run it in Windows 8 they get the message in SmartScreen that it's from an Unknown Publisher. I have read articles such as this one http://social.msdn.microsoft.com/Forums/windows/en

Search and Connect to Bluetooth device in Windows 8/8.1 Store apps?

孤人 提交于 2019-12-09 19:36:36
问题 I need to search and connect to a Bluetooth device using a Windows store app. I am using XAML/C# and Windows 8.1. The device supports RFCOMM. What I have done so far: If I pair the device to my system and then search for the device using var devicesInfoCollection = await DeviceInformation.FindAllAsync(); I get the Bluetooth Device, however is there a way to find the device when its still not paired. Thanks 回答1: There is no way to do that (in Windows 8.1). You have to pair your device first,