windows-8

Hide MediaPlayer Controls ( Microsoft Media Platform Player Framework )

怎甘沉沦 提交于 2019-12-08 03:38:06
问题 I´m using the MMP:PF in a c#/xaml application and provide my own control elements to handle the player. Thats why i would like to hide/disable its own native controls that appear on the bottom. ( And in the middle of the screen on screenshot, this one´s just using a theme ) Does anybody know how to do that? I didnt manage to find a property for that. 回答1: From MediaPlayer 's reference, IsTimeLineVisible , IsPlayPauseVisible , IsPositionVisible , IsStopVisible and many other visibility

Suspend camera when user switches away from app, and resume camera when user switches back to app

纵饮孤独 提交于 2019-12-08 03:36:28
问题 Currently, I would like to suspend my camera when user switches away from my app, and resume camera when user switches back to app I am referring to Application lifecycle (Windows Store apps) (Windows) However, Suspending | suspending event isn't being triggered immediately once the user switches away from my app. You need to wait for few seconds (Or it will not trigger at all if OS decides not to do so). So, how I can know, when I should run my camera suspension code when user switches away

SemanticZoom ZoomedOutView SelectedItems Returns DependencyObject

大憨熊 提交于 2019-12-08 03:31:25
问题 In the SemanticZoom control I use the same CollectionViewSource for both the zoomed in and zoomed out view. To do this I bind the zoomed out GridView in the code behind like this: (FavoriteGroupsSemanticZoom.ZoomedOutView as ListViewBase).ItemsSource = this.FavoriteGroupsViewSource.View.CollectionGroups; Everything works as expected. However, now the zoomed out GridView is bound to a list of DependencyObjects instead of my original groups. And thus when I access the SelectedItems I get a

AccessViolationException when accessing pixel color using WriteableBitmapEx

爱⌒轻易说出口 提交于 2019-12-08 03:10:28
问题 I'm using WriteableBitmapEx library to edit an image taken with tablet's cam with Windows 8 Pro. I'm getting an AccessViolationException every time I call to GetPixel() function, here's the code: Windows.Media.Capture.MediaCapture captureMgr = new MediaCapture(); await captureMgr.InitializeAsync(); IRandomAccessStream memoryStream = new InMemoryRandomAccessStream(); await captureMgr.CapturePhotoToStreamAsync(imageProperties, memoryStream); await memoryStream.FlushAsync(); memoryStream.Seek(0)

Superscript or subscript in TextBlock

此生再无相见时 提交于 2019-12-08 02:46:53
问题 <TextBlock Foreground="Black" FontSize="50" FontFamily="Segoe UI"> <Run>Normal Text</Run> <Run Typography.Variants="Superscript" Text="Superscript123"/> <Run Typography.Variants="Subscript" Text="Subscript123"/> </TextBlock> Below is my screen shot. It seems that certain characters are not allowed in super/sub script. Actually I want to put a ® symbol what I'm getting is and what I want is P.S. I found this answer https://stackoverflow.com/a/3435675/468724 but there is no such property as

Refresh data in windows store app

守給你的承諾、 提交于 2019-12-08 02:44:27
Im creating a windows store app that has some webservice calls.Currently i use a button event to make the webservice calls, but i want the app to do this automatically every 5 minutes. The button event is now placed in MainPage.xaml.cs What is the best way to perform this are there any timer event in windows store apps? public async void GetWebServiceDataButton(object sender, RoutedEventArgs e) { ........ ......... Retrieve data from web service } It's a bit much code to paste here so I'll add the appropriate links first and I'll provide for those using HTML/JS as well. For those using HTML/JS

Render control into image in WinRT metro

夙愿已清 提交于 2019-12-08 02:43:34
问题 I'm creating an application for windows 8 metro, I need to render a framework control into an image and save it to hard disk but do not know how. Can I use SharpDX for this? How can I do? Thanks in advance for the help 回答1: If you follow through this thread the limitations of Metro and the reasons why it won't work are explained. The essence of it is: Sorry, but rendering Xaml to an element or capturing a screenshot of your own app did not make it into the release version. It is by design

Detect touch events in Chrome on Windows 8 with touchscreen

三世轮回 提交于 2019-12-08 01:57:21
问题 I built a touch/mouse friendly jQuery plugin. It works on phones(ios, android...) and desktops browsers. But i have some issues with Windows 8 Chrome installed on laptop with touch screen. Unfortunately i dont have such a device and cant do any tests.Also IE10 works fine. Let me explain you what i have inside(very simplified code): 1.Check is touch device: base.isTouch = ("ontouchstart" in document.documentElement); 2.Get proper events if(base.isTouch === true){ //use touch events:

How to deserialize JSON text into a date type using Windows 8 JSON.parse?

好久不见. 提交于 2019-12-08 01:52:48
问题 I'm building a Windows 8 Metro app (aka "Modern UI Style" or "Windows Store app") in HTML5/JavaScript consuming JSON Web Services and I'm bumping into the following issue: in which format should my JSON Web Services serialize dates for the Windows 8 Metro JSON.parse method to deserialize those in a date type? I tried: sending dates using the ISO-8601 format, (JSON.parse returns a string), sending dates such as "/Date(1198908717056)/" as explained here (same result). I'm starting to doubt that

Win8 C# Metro dispatcher and RPC_E_WRONG_THREAD

末鹿安然 提交于 2019-12-08 01:50:55
问题 I am trying to build an application using the unofficial Google music api for .net in Windows 8 metro interface. I am loading the whole playlist foreach (GoogleMusicPlaylist p in pls.UserPlaylists) lbPlaylists.Items.Add(p.Title); and it comes up with this error HRESULT: 0x8001010E (RPC_E_WRONG_THREAD)) And I read around the internet and maybe I have to use dispatcher or something I am just generally confused. 回答1: Use this Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => { foreach