windows-8

Dependency Injection framework for Windows 8 metro apps

旧时模样 提交于 2019-12-05 08:01:28
i can't seem to find a dependency injection framework for windows 8 metro apps. Is there a framework for win8 metro apps? Ninject is not yet support for win8 metro. So does anybody have a suggestion? (Castle, Spring, ...) Here is the source for Ninject WinRT: https://github.com/remogloor/ninject It just not yet released. You could try Unity 3.0 for .NET4.5 Preview . I've been using the Beta version of Autofac Portable Library (which is supported in Metro apps) and it is working great so far. The Catel MVVM toolkit also contains a DI-container, it's metro version will be released this week

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

Get window width / height in Windows store apps

我怕爱的太早我们不能终老 提交于 2019-12-05 07:14:13
I currently have a basic page which loads, and I need some way of obtaining the width and height of the window, preferably in the constructor. The problem is, in the constructor, or before the page is completely loaded, I can't seem to get hold of the width and height. After it is loaded I can just use: this.ActualWidth; this.ActualHeight; Is there any window load complete event I can use or any way to obtain the width and height during the loading? Mike Boula You can find out the size of the Window at any moment using the property Window.Current.Bounds . For more details, read: How to get the

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

What does version 255.255.255.255 for winmd files indicate?

我们两清 提交于 2019-12-05 06:50:21
I noticed that most (all?) .winmd files have a version of 255.255.255.255 like: Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null Metro apps have a reference to such assemblies with this version number. Further the Windows.winmd itself references: mscorlib, Version=255.255.255.255, Culture=neutral, PublicKeyToken=b77a5c561934e089 However, an assembly with this version number does not exist, as far as I know. Does this version number have a special meaning? Is there any documentation for this? ECMA 335 assemblies need to have a version number. But the windows runtime type

Why are my XAML controls not showing up in code-behind?

亡梦爱人 提交于 2019-12-05 06:49:28
I booted into the Windows Developer Preview today, hoping to get some code out and into a functioning Metro application. I'm excited for the launch of the Windows Store, and I wanted to be a part of it. So I fire up VS11 Express, and start coding. I barely even get out one line when: "The name 'View' does not exist in the current context" So I go back to my XAML page. I dig around, and lo and behold, my button named View is still there, with the following code: <Button Name="View" Content="View the help page" HorizontalAlignment="Left" Height="142" Margin="765,275,0,0" VerticalAlignment="Top"

Screensaver in Windows 8

烈酒焚心 提交于 2019-12-05 06:42:07
问题 I have a screensaver written in C# which takes a screenshot of the Desktop and displays it as the, guess what, screensaver. This works pretty well except in Windows 8 where the screensaver launches in, what looks like, a separate Desktop with a solid background and thus i am only taking a screenshot of this solid background instead of the actual desktop. This only counts if the screensaver is launched by the timeout by windows itself, not if you execute the screensaver directly (by double

Remove X button in input - Metro

时光怂恿深爱的人放手 提交于 2019-12-05 06:21:09
问题 I write a Metro program in Javascript. The problem is Windows8 automatically adds an X button to it. Now how to edit or remove that button? Below is my layout, the X button overlaps the email input. 回答1: Details are here: http://msdn.microsoft.com/en-us/library/windows/apps/hh465498.aspx You need to use the -ms-clear pseudo element, and style it either as you need it, or display none it: input::-ms-clear { display: none; } Note that you likely want to not display none it, since this removes