windows-8

apply downloaded CSS on windows 8 metroUI app

时间秒杀一切 提交于 2019-12-13 06:04:52
问题 I have to download CSS file and apply style sheet to my app. I downloaded this file at the local folder and referenced it as style.href = "ms-appdata:///local/css//custom.css"; and appended to head as document.getElementsByTagName('head')[0].appendChild(style); after document onready event. Seems it has no effect (but I can see this element in the dom browser). So is there any restriction for css source: app package, local folder? May be this impossible to reference downloaded CSS due to MS

Check if a windows 8 tablet is connected to a power supply from windows 8 application

不羁岁月 提交于 2019-12-13 05:51:50
问题 I have a windows store application which will be used on tablet devices. The application communicates with a service every 15 minutes but when the devices is connected to a power source I'd like to it to communication with the service every minute. So is there any way in a windows 8 store application to check if a power supply is connected? I'm using XAML/C# for the store application. 回答1: Currently there's no access to the Power API in WinRT. If there was, you could use the SystemInformation

How to design words balloon in WinRT XAML?

你离开我真会死。 提交于 2019-12-13 05:19:08
问题 I am trying to create words balloon looks like below image. How to design words balloon in WinRT XAML? Thanks. balloon image <Grid Width="400"> <Grid.ColumnDefinitions> <ColumnDefinition Width="22*"/> <ColumnDefinition Width="5*"/> </Grid.ColumnDefinitions> <Image Source="{Binding Image}" Margin="10,2,10,0" Grid.Column="2" VerticalAlignment="Top" /> <Border BorderBrush="Black" BorderThickness="3" HorizontalAlignment="Right" VerticalAlignment="Top" CornerRadius="4"> <TextBlock

MPEG-DASH on Windows 8 Javascript app

喜欢而已 提交于 2019-12-13 05:08:29
问题 Does anybody know if there are any samples or documentation for playing dash streaming in Windows 8 javaScript based applications or Windows phone 8 ? 回答1: I don't know if it fits for your solution, bit libdash is a C++ library also available for windows: http://www.bitmovin.net/libdash.html There is also a sample player based on ffmpeg. This should also work on win 8. 回答2: I found this: http://mingfeiy.com/windows-azure-media-services-in-build-2013-dynamic-packaging-dash-support-live

Show previous selection in GridView

旧巷老猫 提交于 2019-12-13 05:05:21
问题 I am developing windows 8 store app. I wants to show the previously selected items in GridView if navigate back and fro, the selected items should be shown selected.I have tried This tutorial and did exactly as suggested. but its not working in my case. I have also tried with index as int index = myGridView.SelectedIndex so that to find index and directly provide myGridView.SelectedIndex = index ; but its again not useful because I am not getting changes into the index in SelectionChanged

Windows 8 app is debug

帅比萌擦擦* 提交于 2019-12-13 04:53:44
问题 Is there a way to checkin app.cs is curent state of app debug or deployment? Or the problem is that I want to exceute piece of code only when debuging application. 回答1: You can simply use the #if DEBUG directive like so #if DEBUG //code here only executes in debug #endif So if you want some code that runs in DEBUG and some that is in RELEASE you do it like this: #if DEBUG //code here only executes in debug #else //code here only executes in release #endif And as DAKL has explained you could

Credential provider in win8

你。 提交于 2019-12-13 04:39:44
问题 I want to login to my user account automatically using code. I am using Windows 8. I tried to use Credential Provider sample. I compiled the sample in the SDK and add the dll to the registry as described in the readme. when I lock my computer I can see the regular user account tile. only when I press on Esc I see the 2 new tiles that were added in the sample. then if I press on one of them, and try any kind of password, I just get back to the previous page where I had only the regular tile.

Design time data in Windows Store app

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 04:28:03
问题 In WP7 I am used to generating sample data (XML) from my ViewModels in Blend and seeing them in Visual Studio. In Blend 2012 I cannot find the option to generate design time data. The tempales in Visual Studio use design time data genarated in code. Is it the only way? No more XML design time data? 回答1: I don't think generating design time data in Blend for VS2012 is possible, but it's still possible to use design time data created in code, but even this is more complicated than in WP7.

Esent crashes with Windows 8 on a Delphi project

筅森魡賤 提交于 2019-12-13 04:27:20
问题 I've been using ESENT for my projects quite extensively and I really love how easy and fast it works. And stable too!! But I have a HUGE problem with Windows 8!!! Regardless of how I link to the esent.dll (dynamically or statically) whenever I call something other than JetSetSystemParameter, the dll is crashing, takig my app down the cliff. Unfortunately I still can't get it running. My code had no problem running with Windows 7 or older. But with Windows 8 I get esent.dll crashing when I try

How do I set a custom button background for a Metro app for all states

旧时模样 提交于 2019-12-13 04:17:52
问题 I want to use my own bitmaps for my buttons for a Metro style Windows 8 app. I can set the background brush for a button to my own ImageBrush and that works fine, except for the hover and pressed states. I cannot figure out how to set the bitmaps for them. Does anyone know how to do this? Thanks. 回答1: WinRT XAML Toolkit has an ImageButton control that allows to define images for all states if that is what you need. You can also check its default template in Generic.xaml to see how it uses the