microsoft-metro

Get Albumart in .mp3 file for Windows Store App

拥有回忆 提交于 2019-12-05 07:30:32
How can i get the AlbumArt image in the mp3 file? I am developing Windows Store app with c#. MusicProperties class gives me Album name artist name vs. But it cant give me albumart. Xyroid Check out MSDN sample to show thumbnail of any file. It also consists how to retrieve the album art. File and folder thumbnail sample If you want to save the album art check out How to store save Thumbnail image in device in windows 8 metro apps c# UPDATE 1 MediaFile is StorageFile . ImageControl is <Image ... /> using (StorageItemThumbnail thumbnail = await MediaFile.GetThumbnailAsync(ThumbnailMode.MusicView

Is it possible to set a subject to the mail app in Windows 8 metro application, if I am using share contract and sharing files?

血红的双手。 提交于 2019-12-05 07:23:36
First of all, I am sharing the content from my windows 8 metro application to another app (for example Mailto app) so: Now I am sharing files to mailto app using share contract and sharing files from my application, I wanted to know if: - Can I set the subject to the mailto app to which I am sharing files as an attachement to that mailto app, if so please let me know how can I do this? If not, please let me know what is the work around? As of now, it's not possible. Windows 8 recently introduced a new API called protocol activation. With Protocol activation, you can launch other windows 8 apps

Does Windows 8 Compile JavaScript?

痞子三分冷 提交于 2019-12-05 07:10:58
It is exciting that Windows 8 is supporting so many languages for Metro App development. One that especially interested me was the HTML5/CSS/JavaScript. What I don't understand, is this code going to get compiled in a sort of executable (like the C#, VB, and C++ option), or would my app basically be running in IE as an actual web page? Yes. Javascript is executed on Windows 8 by the Chakra engine. Similar to the .NET just-in-time compiler, it translates javascript to optimized machine code. Also the approach taken by Google's V8 and Mozilla's TraceMonkey engines. Some background info is here .

WebAuthenticationBroker.AuthenticateAsync throws exception

微笑、不失礼 提交于 2019-12-05 07:01:47
My code uses : WebAuthenticationResult WebAuthenticationResult = await WebAuthenticationBroker.AuthenticateAsync( WebAuthenticationOptions.None, StartUri, EndUri); just like the Microsoft Web authentication broker sample It used to work on my desktop and on my tablet (Surface) but now it is not working on my desktop. It throws exception The process terminated unexpectedly. (Exception from HRESULT: 0x8007042B) It is working on the tablet and on different windows-8 desktop. Any suggestion what can cause this exception? I'm not sure but I think that the WebAuthBroker needs to be invoke on the UI

How to place an XAML usercontrol in a grid

空扰寡人 提交于 2019-12-05 06:57:59
I have the following main.xaml and usercontrol. I need to place several times the user control on the 2nd row, 2nd column of the grid, By using visual studio it wont allow to drag and drop the user control, so I suppose I have to do it by code, I just dont know how MainPage.xaml <Grid HorizontalAlignment="Left" Height="768" VerticalAlignment="Top" Width="1366" x:Name="grid" Background="Black"> <Grid.RowDefinitions> <RowDefinition Height="150"/> <RowDefinition/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition Width="250"/> </Grid.ColumnDefinitions> <Border

Metro App Change ListView Selected Item Content Foreground

China☆狼群 提交于 2019-12-05 06:38:59
问题 I have a ListView and modified it's DataTemplate with 2 TextBlocks . The first TextBlock contains a Heading , the second a Sub-Heading . I style the 2 TextBlocks with different colours. Here's an example of the ListViewItem in Normal view. Here's an example of the ListViewItem in Selected view. So my question is how do I change the Foreground colours of the TextBlocks in Selected views? Hoping to do this in the xaml. I've tried setting different brushes, which work for items that haven't

SOAP Service Reference in Windows Phone 8.1 Universal app

左心房为你撑大大i 提交于 2019-12-05 05:06:35
I try to add a reference to a SOAP WebService. No problem adding it to the Windows 8.1 part of the project. But no chance to do the same for the WP 8.1. Somehow I could only add a new "Push Notification" as a reference. Adding the generated reference.cs to the WP project directly leads to many unresolved references in System.ServiceModel (i.e. System.ServiceModel.Channels not found). Any idea? Maybe its not in the current beta? VS 2013 Update 2 RC. While not a proper solution, a workaround has been posted by Microsoft: WCF Add Service Reference Not Supported for Windows Phone 8.1 XAML

Windows 8 - BeginAnimation?

╄→гoц情女王★ 提交于 2019-12-05 04:40:14
It seems I can't do myObject.BeginAnimation(dp , animation) . Is this a bug or has it been changed? You need to use a storyboard. Add your animation to the storyboard and have the storyboard begin the animation. var storyboard = new Storyboard(); var opacityAnimation = new DoubleAnimation { From = 0, To = 1, Duration = DurationHelper.FromTimeSpan(TimeSpan.FromSeconds(1)), }; storyboard.Children.Add(opacityAnimation); Storyboard.SetTargetProperty(opacityAnimation, "Opacity"); Storyboard.SetTarget(storyboard, myObject); storyboard.Begin(); 来源: https://stackoverflow.com/questions/8631088/windows

XAML Binding to property

戏子无情 提交于 2019-12-05 04:11:33
I have check box in my XAML+C# Windows Store application. Also I have bool property: WindowsStoreTestApp.SessionData.RememberUser which is public and static. I want check box's property IsChecked to be consistent (or binded, or mapped) to this bool property. I tried this: XAML <CheckBox x:Name="chbRemember1" IsChecked="{Binding Mode=TwoWay}"/> C# chbRemember1.DataContext = SessionData.RememberUser; Code for property: namespace WindowsStoreTestApp { public class SessionData { public static bool RememberUser { get; set; } } } But it doesn't seem to work. Can you help me? You need to implement

How to test a Windows8 app on a surface

末鹿安然 提交于 2019-12-05 04:01:18
How do I port a Windows8 app that I built onto a Surface? I've built the app using Visual Studio and I can test it just fine on the desktop machine by just hitting F5. How can I put it onto a Surface to test it without having to publish it to the Store? Thanks. This link explains how to test your app on a Surface using remote debugging: http://timheuer.com/blog/archive/2012/10/26/remote-debugging-windows-store-apps-on-surface-arm-devices.aspx A quick summary: 1. Download the Remote Tools for Visual Studio 2012 (from here , under "Additional software" near the bottom) and install them on your