windows-8.1

How do you scale the title bar on a DPI aware win application?

不想你离开。 提交于 2019-11-30 02:23:30
I am making my app dpi-aware per monitor by setting <dpiAware>True/PM</dpiAware> in the manifest file. I can verify with process explorer that this is indeed working or by calling GetProcessDpiAwareness. This is all working fine and I can scale anything in the client area fine in my code. However, my only problem is that if I drag my app from a system-dpi monitor to a non-system dpi monitor, the title bar and any system menu would either become too big or too small. This isn't the case for most built-in apps (e.g. calc, edge browser, etc..) so there must be away to scale it properly. Does

font size scaling in Windows Store Universal App (W8.1 + WP8.1)

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 22:24:53
How do i scale text in Windows Store Universal App (W8.1 + WP8.1)? Basically, the app should look the same regardless which device/resolution is used. The current situation is that layout (dynamic grid based layout) and images scale well except of the text (font size). The text displayed looks nice for WVGA resolution (480 × 800) but is incredible small for 1080p resolution. I already read a lot of stuff like Guidelines for scaling to pixel density or Guidelines for supporting multiple screen sizes But i still don't know how to scale text to stay readable regardless of display resolution/DPI.

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

ε祈祈猫儿з 提交于 2019-11-29 21:02:20
问题 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

“unable to find valid certification path to requested target”, but browser says it's OK

社会主义新天地 提交于 2019-11-29 20:50:55
I'm developing a Java application that connects to SOAP services exposed at https://ut.eurodw.eu/ (test environment for European Datawarehouse). I'm working on my development machine, recently reformatted with Windows 8.1. Today, I tried to send them a creation request via SOAP from my program and got this error: Caused by: javax.xml.ws.WebServiceException: Could not send Message. at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:146) at com.sun.proxy.$Proxy110.createDeal(Unknown Source) at it.csttech.edwin.services.spring.EdwinServiceImpl.createDeal(EdwinServiceImpl.java

YumRepo Error: All mirror URLs are not using ftp, http[s] or file

ⅰ亾dé卋堺 提交于 2019-11-29 16:57:16
问题 I have set up a centOS 6.5 server using VMWare Workstation 9 on a Windows 8.1 host laptop. When trying to use yum to install packages I get the following error: [root@localhost ~]# yum update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. </html>/ removing mirrorlist with no valid mirrors: /var/cache/yum/i386/6/base/mirrorlist.txt Error: Cannot find a valid baseurl for repo: base The VM works on

Can't create a table in MySQL because “it already exists”

余生长醉 提交于 2019-11-29 16:29:18
I am having an issue with MySQL, relating to my previous question . I recently needed to remove a table from MySQL, and now need to create a new one in its place. I am having a hard time with this because, as MySQL Workbench says, "The table already exists." Since the error from MySQL Workbench is not particularly helpful, here's some stuff that I pulled out of my error log. What's the problem? I am running MySQL 5.7 on Windows 8.1 Pro x64. 2014-03-06T01:38:55.459658Z 0 [ERROR] InnoDB: Table thepwf_prgminteractions/p2p_messagedata in the InnoDB data dictionary has tablespace id 25, but

Go to visual states inside a Grid in code behind in Windows Store apps

限于喜欢 提交于 2019-11-29 16:16:32
So my xaml code looks like this - <Grid x:Name="LayoutRoot"> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="CommonStates"> I can't use the GoToVisualState behavior because I need to do some checks before running this animation. So I guess I will have to call something like GoToState or GoToElementState in code behind. However, ExtendedVisualStateManager doesn't seem to exist in WinRT . I tried using VisualStateManager.GetCustomVisualStateManager(this.LayoutRoot) but it always returns null . Is there any workaround for this? Just figured this out. First create a helper class

Why is Cordova Windows 8 app causing an unhandled win32 exception occurred in wwahost.exe?

 ̄綄美尐妖づ 提交于 2019-11-29 16:11:15
We're building out an app in Cordova via VS 2013 for Windows 8.1. When the user is "clicking" an anchor tag on one of our pages we get "an unhandled win32 exception occurred in wwahost.exe". We checked our registery for this issue: https://support.microsoft.com/en-us/kb/811191 and everything is correct by default. According to some Google searches this is the only solution we can find. In the debugger - "Call Stack": mshtml.dll!CDocument::Doc(void) Unknown mshtml.dll!CAttribute::GetNSAtomTable() Unknown mshtml.dll!CAttribute::NamespaceURI(void) Unknown mshtml.dll!CAttribute::get_namespaceURI()

How do I use the new HttpClient from Windows.Web.Http to download an image?

一世执手 提交于 2019-11-29 14:03:10
Using Windows.Web.Http.HttpClient how can I download an image? I would like use this HttpClient because it is available to use in portable class libraries. This is what I eventually came up with. There is not much documentation around Windows.Web.Http.HttpClient and a lot of the examples online use old mechanisms like ReadAllBytesAsync which are not available with this HttpClient. I should note that this question from MSDN helped me out a lot, so thanks to that person. As the comment over there states, this guy must be the only person in the world who knows about Windows.Web.Http ! using

Visual Studio 2015 RC Community will not install, says it is already installed

拜拜、爱过 提交于 2019-11-29 12:00:29
问题 As the title implies, I am not able to install Visual Studio 2015 RC Community, and I keep getting the following errors. For the record, I am on Windows 8.1 Professional. Visual Studio Ultimate 2015 is currently installed on this machine. Please uninstall Visual Studio 2015 and retry. Visual Studio Professional 2015 is currently installed on this machine. Please uninstall Visual Studio 2015 and retry. I would have provided the screenshot, but it would seem I have to have certain amount of