windows-8

w8 default tablet settings conflicts with WPF layout

江枫思渺然 提交于 2020-01-24 08:49:32
问题 I have a WPF desktop app. I've gotten reports from W8 users that the code completion window in our app is not aligned correctly. I investigated and found out that its a setting in W8 tablet settings that conflicts with the placement of popups in wpf Default is right handed and then the code completion popup looks like this When changed to left handed the code completion popup renders correctly like this Is there a way to programmaticly force the app to use left handed settings, or ignore it

OnSelectionChanged event for chart controls in Modern UI Charts for Windows 8

隐身守侯 提交于 2020-01-23 18:04:05
问题 I am using Modern UI Charts for Windows 8 and I need to do a drill down when the user selects a series item in the chart (for eg: I have a Column Chart which shows a student Year wise performance and when user selects a particular Column I should show another Column chart with the score he obtained for that particular year in each subject) I am looking for some kind of selectionchanged event or something similar so that I can change the input to the series to get a different chart Please Help

watermarked PasswordBox in winrt

扶醉桌前 提交于 2020-01-23 13:21:29
问题 is it possible to get a watermarks passwordbox in WinRt? It is no problem to get a textbox with a watermark, but I don't know a toolkit where I can get a password box with a watermark. How can I implement one for myself? 回答1: Take a look on WinRT XAML Toolkit. They also have WatermarkTextBox WatermarkPasswordBox By yourself you can implement your own controls: in .xaml: <Border x:Name="brdPassword" Margin="5,0,5,10" BorderThickness="2" BorderBrush="White" CornerRadius="5" Grid.Row="0"

Windows 8 printing Postscript file programmatically

拟墨画扇 提交于 2020-01-23 09:11:07
问题 I've spotted a strange problem while printing a Postscript file . So here is my setup: I have a Windows 8 PC , on this PC there is an C# application "NetworkPrintTest.exe", which, when executed, should open a PDF, generate a Postscript file and ultimately should print it. But it doesn't do anything. I don't get an error but it won't print either. The same program runs error free on windows 7 and i even get the printer to print the file. As mentioned above the .ps file is generated

How to Convert image (.png) to base64 string, vice a versa and strore it to a specified location

风流意气都作罢 提交于 2020-01-23 05:53:09
问题 I'm trying to store images (png) to sqlite database in a windows 8 app, and i figured out it can be done by converting it to base64 string and storing the string to the database. Later on in the app i want to convert that base64 string to png image and store it to a specified location. The Problem is i don't know how to convert images to base64 and base64 to image and store it to a specified location in c# windows 8 app. Any help would be appreciated. 回答1: public string ImageToBase64(Image

How to Convert image (.png) to base64 string, vice a versa and strore it to a specified location

白昼怎懂夜的黑 提交于 2020-01-23 05:53:08
问题 I'm trying to store images (png) to sqlite database in a windows 8 app, and i figured out it can be done by converting it to base64 string and storing the string to the database. Later on in the app i want to convert that base64 string to png image and store it to a specified location. The Problem is i don't know how to convert images to base64 and base64 to image and store it to a specified location in c# windows 8 app. Any help would be appreciated. 回答1: public string ImageToBase64(Image

WinJS, display image from a byte array?

穿精又带淫゛_ 提交于 2020-01-23 02:46:07
问题 I'm looking for a way to display a JPEG image stored in a byte array. This is a Windows 8 Store App built in Javascript. The byte array is returned from a C# WinRT component. Its type in C# is byte[] . Basically, what I want is to get an object so that I can call: URL.createObjectURL(bytearray, {oneTimeOnly: true}); upon. Currently this generates a runtime error because the array interface is not supported. Thanks in advance. 回答1: I discovered a far easier method. var blob = new Blob([bytes],

Detect keyboard presence in Windows 8 desktop program

孤者浪人 提交于 2020-01-21 15:26:38
问题 For Metro apps there's Windows.Devices.Input.KeyboardCapabilities.KeyboardPresent. Is there a way for Windows 8 desktop programs to detect whether a physical keyboard is present? 回答1: It's a bit fiddly and I don't know whether the approach I'm proposing will work in all cases, but this is the approach I ended up using: Use SetupDiGetClassDevs to find all the keyboard devices. Use SetupDiGetDeviceRegistryProperty to read some keyboard device properties to ignore PS/2 keyboards Check for touch

Detect keyboard presence in Windows 8 desktop program

不问归期 提交于 2020-01-21 15:26:31
问题 For Metro apps there's Windows.Devices.Input.KeyboardCapabilities.KeyboardPresent. Is there a way for Windows 8 desktop programs to detect whether a physical keyboard is present? 回答1: It's a bit fiddly and I don't know whether the approach I'm proposing will work in all cases, but this is the approach I ended up using: Use SetupDiGetClassDevs to find all the keyboard devices. Use SetupDiGetDeviceRegistryProperty to read some keyboard device properties to ignore PS/2 keyboards Check for touch

Detect keyboard presence in Windows 8 desktop program

徘徊边缘 提交于 2020-01-21 15:26:04
问题 For Metro apps there's Windows.Devices.Input.KeyboardCapabilities.KeyboardPresent. Is there a way for Windows 8 desktop programs to detect whether a physical keyboard is present? 回答1: It's a bit fiddly and I don't know whether the approach I'm proposing will work in all cases, but this is the approach I ended up using: Use SetupDiGetClassDevs to find all the keyboard devices. Use SetupDiGetDeviceRegistryProperty to read some keyboard device properties to ignore PS/2 keyboards Check for touch