windows-8

How to get method name win 8 app

久未见 提交于 2019-12-22 05:15:38
问题 How to get the current method name in win 8(WinRT) app ... earlier in wp7 we could use System.Reflection.MethodBase.GetCurrentMethod().Name but its not there anymore thanks 回答1: Yes, .NETCore lacks a lot of such things... and don't even get me started on GetTypeInfo() ! But perhaps a pragmatic workaround is to get the compiler to do it for you? string CallerName([CallerMemberName]string caller = "") { return caller; } ... string name = CallerName(); 回答2: This option can be helpfull if you

Can I use Sqlite in a WinRT application (javascript)?

徘徊边缘 提交于 2019-12-22 05:01:09
问题 Is it possible to use a Sqlite database in a windows 8 (winRT) javascript application? What I want to achieve is to download a Sqlite database and store this in local storage before use. I believe some form of local storage is available to javascript based WinRT applications, but I want to know if Sqlite is usable in this scenario. I'm also aware that the .Net implementation of Sqlite uses some win32 calls and I believe these will not be allowed by the windows8 app cerififcation process. 回答1:

ArgumentNullException on changing frame

岁酱吖の 提交于 2019-12-22 04:56:26
问题 So I'm trying to change frames in a windows 8 app. I tried following the tutorial at this page, but I keep getting the same error. I'm getting an ArgumentNullException on the line: frameState[_pageKey] = pageState; in the LayoutAwarePage.cs class, in the OnNavigatedFrom method. Now I'm not sure why I get this error, because I feel that there is nothing that could cause it in my code. My button onclick function has this code: DateTime chosenDateTime = new DateTime(year, month, day, hours,

Debug.Assert(false) does not trigger in win8 Metro apps

走远了吗. 提交于 2019-12-22 04:02:16
问题 I notice Debug.Assert does not trigger in Metro apps, however, if the project is a traditional one like Console or WinForm, it does trigger. And yes, I am in Debug mode. Is it a setting not properly set in Visual Studio (11 Beta)? Or Debug.Assert is intended to be disabled in metro apps? I know many exceptions are swallowed during the execution of Metro apps, but Debug.Assert is so handy that I can't think of a reason why it should be disabled. 回答1: It does trigger, look in the Output window.

Qt, QML and Windows 8 [closed]

空扰寡人 提交于 2019-12-22 03:46:33
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . I always been curious about QML introduced by Qt framework. But never had a chance to work with it. But now with Windows 8 coming, old school widget based interface is going to get outdated (just my opinion! :) ). Now I want to ask those, who had some experience with QML: Is it easy

How to left align window title in Windows 8 / 2012?

不打扰是莪最后的温柔 提交于 2019-12-22 03:22:55
问题 Is there a way to (intrinsically) left align window title in Windows 8 or 2012 machine? The Window's title in Window 8 or 2012 is horizontally center-aligned. We have a WPF application that is ported to Windows 8 / 2012 machine. We are testing it along with couple of our clients and the clients need the title of the window to be left aligned as it was in Window 7 or XP. I know we can do this using ControlTemplate in WPF but that would be too much for this little thing. I am sure this is

libxml2 missing for nokogiri gem on Windows 8 x64 with Ruby 1.9.3

老子叫甜甜 提交于 2019-12-22 03:22:47
问题 What I found searching for similar issues was that Nokogiri does not yet have x64 support with Ruby 2.0 . However although I'm on a Windows x64 machine my Ruby version is ruby 1.9.3p392 (2013-02-22) [i386-mingw32] from railsinstaller.org (with Rails 3.2.13) . This also means DevKit is already installed. gem install nokogiri --pre gives this error: Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing nokogiri: ERROR:

Enable Safe Exception Handling in C++ Builder

孤者浪人 提交于 2019-12-22 03:09:31
问题 For Windows 8 application certification, there are (among other) these requirements: 3.2 Your app must be compiled using the /SafeSEH flag to ensure safe exceptions handling 3.3 Your app must be compiled using the /NXCOMPAT flag to prevent data execution 3.4 Your app must be compiled using the /DYNAMICBASE flag for address space layout randomization (ASLR) I wasn't able to find out how to enable either of these in C++Builder XE. For /NXCOMPAT and /DYNAMICBASE , one can use editbin.exe from VS

Why does TextBlock trims ending spaces from the text?

我只是一个虾纸丫 提交于 2019-12-22 02:00:03
问题 Here is my TextBlock s <StackPanel Orientation="Horizontal" Margin="0,3,0,0"> <TextBlock Text="6 or more characters, at least one letter and a number, " FontFamily="Segoe UI" Foreground="#000000" FontSize="13"/> <TextBlock Text="no symbols" FontFamily="Segoe UI" Foreground="#000000" FontSize="13"/> </StackPanel> And here is the output (screen shot) Why TextBlock trims ending spaces? However it works fine when I give leading spaces. 回答1: It looks like xml:space="preserve" should do the trick

Javascript onclick needs to be clicked twice for function to run

女生的网名这么多〃 提交于 2019-12-22 01:09:37
问题 Javascript onclick needs to be clicked twice for function to run. I need it to run on the first click, That is my problem. I've googled and searched for 2 days now without finding a reply that worked or that I understood. The code for the javascript can be found here: http://enji.se/windows8/js/script.js And the site where I want it to work: http://enji.se/windows8/ It's a Windows 8 looking website I'm trying to make. It will only display correctly on Google Chrome and on a resolution higher