windows-10

Text erased from screenshot after using Clipboard.GetImage() on Windows 10?

纵饮孤独 提交于 2019-11-28 01:45:01
This is a weird one: I recently upgraded my workstation from Windows 7 to Windows 10. I have a Chat client, that accepts Images from the clipboard using the Code below: if (Clipboard.ContainsImage()) { BitmapSource source = Clipboard.GetImage(); BitmapFrame frame = BitmapFrame.Create(source); var encoder = new System.Windows.Media.Imaging.PngBitmapEncoder(); encoder.Frames.Add(frame); var stream = new MemoryStream(); encoder.Save(stream); byte[] daten = stream.ToArray(); if (daten != null && daten.Length > 0) { sendFile(DateTime.Now.ToString("yyyyMMddHHmmss_") + "clipboard.png", stream.ToArray

Windows 10 Universal App - Ignore SSL Certificate Valdiation

£可爱£侵袭症+ 提交于 2019-11-28 01:26:41
I am working on a phone Windows 10 Universal Application. I am trying to connect to an OAuth server with auto-signed certificate. When I open a web view to that server I get the error : "Security certificate required to access this resource is invalid" I wanted to use the following intstruction but ServicePointManager does not exist on Universal App. ServicePointManager.ServerCertificateValidationCallback = delegate { return true; }; Any idea how to bypass ssl validation on these apps ? Thanks. In Windows Runtime the webview should not ever go to an untrusted page, so you will meet the above

MDI window title in Windows 10

血红的双手。 提交于 2019-11-28 01:21:57
I'm testing Delphi applications on Windows 10 and I was intrigued a difference in rendering the window frames on MDI forms. It is the intention? I presume you are talking about the minimise, maximise and close buttons at the right hand end of the caption bar. These buttons are rendered by the system rather than Delphi and the behaviour is as designed. Microsoft deprecated MDI at least 15 years ago and so it's not at all surprising that they have not modified it to match the new style of Windows 10. So yes, what you are observing is to be expected, and is how Microsoft intend the non-client

How to detect is a camera is available using isTypePresent in a Windows 10 Universal Application

对着背影说爱祢 提交于 2019-11-28 01:06:52
问题 When developing a Universal Application for Windows 10 you are encouraged to detect device specific hardware using IsTypePresent . (Microsoft refer to this feature as 'Light up'). An example from the documentation that checks for a device's back button is: if(Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons")) Windows.Phone.UI.Input.HardwareButtons.BackPressed += HardwareButtons_BackPressed; It is clear here that the string "Windows.Phone.UI

Error : DEP6200 : Bootstrapping 'Device' failed. Device cannot be found

我的梦境 提交于 2019-11-27 23:33:18
I've read every StackOverflow that I could find on this issue, but I still can't work it out. I'm trying to deploy an app to actual device ( NOT emulator). But I receive the following error when i try to build: Severity Code Description Project File Line Error Error : DEP6100 : The following unexpected error occurred during bootstrapping stage 'Connecting to the device '30F105C9-681E-420b-A277-7C086EAD8A4E'.': SEHException - External component has thrown an exception. App1 and Severity Code Description Project File Line Error Error : DEP6200 : Bootstrapping 'Device' failed. Device cannot be

Detect if user Idle on windows universal app

让人想犯罪 __ 提交于 2019-11-27 23:16:21
I'm developing a class library for windows 10 universal apps (mobile and desktop device families only). I need to invoke an event if the user has been idle(no touch, mouse move, key press etc) for x number of seconds. This method can be used to solves this problem on android. But I couldn't find a solution on windows UWP. Is there an API available in UWP to achieve this? You can detect global input with various events on the app's CoreWindow: Touch and mouse input with CoreWindow.PointerPressed, PointerMoved, and PointerReleased. Keyboard input: KeyUp and KeyDown (the soft keys) and

How to associate view with viewmodel or multiple DataTemplates for ViewModel?

ε祈祈猫儿з 提交于 2019-11-27 23:05:18
Given I have a GridView and I want to navigate to a different page by clicking each item. How can navigate to a view associated to the viewmodel? In WPF there is a way to set multiple Datatemplates for the viewmodel. <TabControl Grid.Row="1" Margin="0" ItemsSource="{Binding Tabs}" SelectedIndex="0" SelectedItem="{Binding SelectedTab}"> <TabControl.Resources> <DataTemplate DataType="{x:Type dashboard:DashboardViewModel}"> <dashboard:DashboardView/> </DataTemplate> <DataTemplate DataType="{x:Type controls:ExchangeViewModel}"> <controls:ExchangeView/> </DataTemplate> <DataTemplate DataType="{x

Protractor with IE on Windows 10 fails - error code 199

余生长醉 提交于 2019-11-27 22:50:44
问题 I can't get protractor to work with IE 11 on Windows 10. It says Unable to create new service: InternetExplorerDriverService and exists with code 199 I have tried the age old reinstalled/upgraded node, npm, protractor, webdriver-manager & java; and it didn't seem to make any difference. Protractor works fine with Chrome; and having Chrome in the config does not affect IE. My config file : // protractor.conf.js exports.config = { framework: 'jasmine', specs: [ 'protractor/specs/**/*.js' ],

UWP Modal Window

南楼画角 提交于 2019-11-27 22:50:14
问题 I want to show a modal window on the screen in my Universal Windows Platform app (C#), just like the standard Mail-app does when you add an account. Or when you're signing in to a service (like facebook) in an app. Windows mail app with modal window: You can move this window around, but it's not in the taskbar and it is modal. Does anyone know how to do this? It shouldn't be so hard but i can't find anything about it. 回答1: As @Daniel Meixner said, adding account interaction of this Mail app

How to get unique Device IDs on Windows 10 Anniversary Update

筅森魡賤 提交于 2019-11-27 22:33:29
Previous iterations of Windows 10 have the HardwareToken API (aka ASHWID) to get a unique identifier for the device, but it had several drawbacks: It was only available on Desktop and Mobile platforms, which required you to add an Extension SDK to your project (and wasn't available on HoloLens or other platforms) On the PC, the value could "drift" as hardware changed (even just plugging a laptop into a docking station would change the ID), so you needed complex backend logic to correlate device IDs The value was specific to a single app, and couldn't be shared across apps by the same publisher