windows-8

How to Form POST to Paypal from WinJS iframe Windows 8 App?

醉酒当歌 提交于 2019-12-07 04:08:20
问题 I have a Windows 8 App using Javascript/HTML and within an iframe I have a Paypal form: <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="on0" value="Pages"> <select name="os0"> <option value="10">$1.95</option> <option value="25">$2.95</option> </select> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="encrypted" value="[removed]"> <input type=

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

怎甘沉沦 提交于 2019-12-07 03:38:49
问题 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=

Get window width / height in Windows store apps

落花浮王杯 提交于 2019-12-07 03:22:52
问题 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? 回答1: You can find out the size of the

Dependency Injection framework for Windows 8 metro apps

大兔子大兔子 提交于 2019-12-07 03:14:46
问题 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, ...) 回答1: Here is the source for Ninject WinRT: https://github.com/remogloor/ninject It just not yet released. 回答2: You could try Unity 3.0 for .NET4.5 Preview. 回答3: I've been using the Beta version of Autofac Portable Library (which is supported in Metro apps) and it is working

Serialize XML data (Incremental storing) in Windows 8

ⅰ亾dé卋堺 提交于 2019-12-07 03:09:25
How to serialize XMl data in Windows8.For Metro the methos are asynchronous. For saving an action can be passed that will be called once the save operation is complete. When loading data you'll want to pass an action that will received the loaded data and an exception parameter that will be populated if the data could not be loaded. How is it possible. Below is the code for serializing in wp7.. how is it poessible in windows 8?? private void SaveProfileData(Profiles profileData) { XmlWriterSettings xmlWriterSettings = new XmlWriterSettings(); xmlWriterSettings.Indent = true; ProfileList =

Visual Studio 2012 Web Publish on Windows 8 RTM Fails Browser Launch

走远了吗. 提交于 2019-12-07 02:42:46
问题 I'm developing an ASP.NET MVC 4 site using Visual Studio 2012 Premium on Windows 8 RTM x64. When I right click on the web application and choose Publish, Visual Studio 2012 returns the message: "fail to open url of 'http://.../'. Exception:Class not registered" The publish process seems to work correctly but it fails to launch the browser. This happens every time I try to Publish the site and it happens with Chrome (21.0.1180.79 m) or Firefox (14.0.1). Furthermore, since the site isn't

Resizing a control in Windows store app

旧时模样 提交于 2019-12-07 02:41:25
Was just wondering how I would go about letting the user resize a TextBox control at runtime by dragging its corners in Windows Store App. Less importantly, is the same technique used for the resizing of all controls? Thank and regards! Here I am giving you only for textbox as for others it's same. XAML Code <Page> <Canvas Background="{StaticResource ApplicationPageBackgroundThemeBrush}"> <Grid x:Name="grdTextbox" Canvas.Left="300" Canvas.Top="300" Height="40" Width="200"> <Thumb x:Name="ThumbBottomRight" Background="White" Height="10" Width="10" HorizontalAlignment="Right" DragDelta=

Finding memory leaks in a managed Win8 metro app?

馋奶兔 提交于 2019-12-07 02:41:13
问题 I'm currently working on a metro game for Windows 8 using C# and SharpDX. The project is going well, but recently there's been a need to start tracking down memory leaks and I'm not really sure where to begin. The built in memory profiler in Visual Studio 11 doesn't work for metro apps yet, WinDBG can't seem to connect to metro apps (unless I'm using it incorrectly), and I'm having a hard time finding any information about looking at managed allocations in .NET 4.5 for metro. Does anyone have

Windows 8 Metro style listbox

≡放荡痞女 提交于 2019-12-07 02:11:38
问题 I'm building a wpf metro style application, but for the start, page I needed to create Windows 8 start screen like listbox in windows 7 and .NetFramework 4.0 . I used Listbox and Wrappanel now, but as you see it's not clear!!! Please help me to fill the blank cell. EDIT change place of buttons 回答1: look at : http://www.codeproject.com/Articles/370650/Simple-Metro-Style-Panorama-Control-for-WPF by Sacha Barber 回答2: this is not trivial at all... even microsoft guys told me that on a recent

Your developer license has expired (Windows 8)

為{幸葍}努か 提交于 2019-12-07 02:10:41
问题 My temporary developer license (using Visual Studio 2011 Beta and Windows 8 Consumer Preview) expired and a popup asked me to aply for a new one. This all seemed to work, but when I build and deploy to the local machine it takes me to the app store and tells me that the developer license has expired. I've tried: Unistalling my app from the home screen Cleaning my project solution Removing my developer license using powershell command Unregister-WindowsDeveloperLicense and getting new license