windows-8

How to programatically turn on .net 2.0. Is this correct?

大憨熊 提交于 2019-12-12 14:41:29
问题 I'm trying to programatically turn on (install) the .Net 2.0 Framework Windows feature . (B/c Windows 7 and above doesn't let you install .net manually and my customers are never going to be able to enable that from the control panel.). Windows 7 includes .net 2.0 but Windows 8 does not (at least in my testing) I think the answer is: dism.exe /online /enable-feature /featurename:NetFX3 based on many posts including this one. Is the [most] correct way to install the .net 3.0 framework? Is

How to check/switch the airplane mode programmatically in Windows 8?

余生长醉 提交于 2019-12-12 13:19:17
问题 I have to check if the Airplane Mode is enabled in Windows 8 and maybe switch its state. I am currently working on a C# .NET 4.0 Windows Forms application but the answers in this question shouldn't be limited by that. 回答1: Unfortunately, there isn't a programmatic way for Metro apps to change the airplane mode in Windows 8. It is against the Metro guidelines for an application to go outside its sandbox and modify system settings like this without user permission (see the discussion at http:/

Speech on WinRT

佐手、 提交于 2019-12-12 12:54:38
问题 Is Speech api available in WinRT (like Windows Phone 8). Can I use some third party speech api instead? I want to implement TTS in my Windows 8/WinRT application, does anyone have some suggestions? 回答1: Speech is now available for WinRT Voice Commands and Speech Recognition are available on phone only. TTS is available for all winRT devices. 回答2: There is no Speech API available in WinRT. There may be 3rd party WinRT components, you would have to look for those. I am not aware of any, but I

Windows 8 metro javascript app binding to a table

徘徊边缘 提交于 2019-12-12 12:21:32
问题 I am having trouble binding a table in my javascript metro app instead of binding with the html provided in the template it puts in a load of divs and renders the json as a string. This is what I have: <tr id="tableRow" data-win-control="WinJS.Binding.Template"> <td data-win-bind="innerText: label"></td> <td data-win-bind="innerText: value"></td> <td></td> </tr> <table> <thead> <tr> <th>col1</th> <th>col2</th> <th>col3</th> </tr> </thead> <tbody class="topContent" data-win-control="WinJS.UI

Windows::Storage::ApplicationData::Current Not Found in C++

断了今生、忘了曾经 提交于 2019-12-12 11:18:57
问题 My C++ code, which is part of Media Foundation Transform tend to able to run in Windows Store App (Metro) I modify the C++ GrayscaleTransform to include the following code. However, my C++ code fails to locate namespace Windows::Storage . LPCWSTR zPath = Windows::Storage::ApplicationData::Current->TemporaryFolder->Path->Data(); Is there any additional settings I need to do? I can make it compiled, by turning on Consume Windows Runtime Extension . But by doing this, it will give me additional

No implementation file was provicded for the .winmd file

人走茶凉 提交于 2019-12-12 11:05:54
问题 I have a warning when I build my Windows 8 App project in VS2012: No implementation file was provided for the .winmd file 'C:\Users\luke\LApp\LApp\bin\x86\Debug\Bing.Maps.winmd'. To generate registration information in the app manifest, specify the 'Implementation' metadata on the .winmd reference item in the project file. I don't really know what other information to provide. I've Googled and it doesn't provide any relevant results. It gives a link to this: http://msdn.microsoft.com/en-us

multiple buttons in appbar

佐手、 提交于 2019-12-12 11:01:09
问题 I'm afraid I'm missing something simple here, but I'm trying to put multiple buttons in my app bar. here's the code for the initial app bar <common:LayoutAwarePage.TopAppBar> <AppBar HorizontalAlignment="Left"> <Button x:Name="resetButton" Content="Reset" HorizontalAlignment="Left" VerticalAlignment="Stretch" Click="resetButton_Click" /> </AppBar> </common:LayoutAwarePage.TopAppBar> Now this code works, but I want to add a second button. I thought that this would be fairly simple to do, I

How do you access a Metro app's local storage in a desktop application in Windows 8?

牧云@^-^@ 提交于 2019-12-12 10:56:42
问题 Is there an API available for this in .Net? What about in the Windows API? If not, has anyone come up with some hackish-way to do this yet? 回答1: Finding the local storage folder of a Windows 8 Style application http://blog.falafel.com/Blogs/paul-tidwell/2012/08/27/finding-the-local-storage-folder-of-a-windows-8-style-application The path to Windows 8 Style apps is as follows: C:\Users\{username}\AppData\Local\Packages\Microsoft.BingSports_8wekyb3d8bbwe There is a new Windows API which uses an

Can't override background color with “none”, only with “inherit”

半世苍凉 提交于 2019-12-12 10:55:26
问题 I was trying to remove the white background from the .win-container elements (the tiles) in a Windows 8 ListView control to let the background show through. When I traced the styles, I could see that the white background was getting applied with the following rule... .win-listview :not(.win-footprint).win-container So I wrote my own rule for that like this... .win-listview :not(.win-footprint).win-container { background-color: none; } But that didn't work. A friend helped me figure out that I

Debug WinRT app on second monitor with Visual Studio 2012

主宰稳场 提交于 2019-12-12 10:46:37
问题 When I run or debug a winrt application, Visual Studio 2012 seems to start it always on the same monitor. How can I force Visual Studio 2012 to start the app on my other monitor? 回答1: Windows will deploy to which ever monitor you last viewed the Start screen on. So, here is what I do. Start VS in Main Monitor Bring up charms bar on Secondary monitor and select the Start charm Launch debug from VS in Main Monitor Your app should now launch in the secondary monitor. I don't know if there is a