windows-8

WebAuthenticationBroker.AuthenticateAsync throws exception

北城余情 提交于 2019-12-07 02:09:09
问题 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

How to place an XAML usercontrol in a grid

☆樱花仙子☆ 提交于 2019-12-07 01:59:47
问题 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

Fade in/out a TextBlock in a Windows Store Application [XAML/C#]

拈花ヽ惹草 提交于 2019-12-07 01:34:57
问题 can someone explain me how can I add a fade in and a fade out animation to a textblock when I load a form in a Windows Store application? I tried the WPF method but it didn't work... Thank you :) 回答1: Not sure if this is what you're looking for (or what "WPF method" didn't work), but with this resource: <Page.Resources> <Storyboard x:Name="Storyboard1"> <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="textBlock"> <EasingDoubleKeyFrame

programmatically close win8 app

假装没事ソ 提交于 2019-12-07 01:07:49
问题 I've begun tinkering with making windows 8 apps And I want to make an exit button. The problem is that Environment.Exit() and this.Close() that I'd use in winforms isn't in scope here. anyone know how to close the app Programmatically? 回答1: Application.Current.Exit(); But closing a Metro app is not recommended. It is usually suspended. 回答2: Application.Exit But be careful. You can fail certification by having code which forcefully closes the App. Make sure to read up on Certification Guidance

Where in Windows 8 app should you code 'privacy policy'?

那年仲夏 提交于 2019-12-07 00:31:37
问题 my app failed certification with reason : "4.1.1 Your app must have a privacy statement if it is network-capable . . . You must provide access to your privacy policy in the Description page of your app, as well as in the app’s settings as displayed in the Windows Settings charm." What are they talking about? what description? how do I set info displayed in windows settings? the app is C# 回答1: You should state whether your app is collecting any information and what you're doing with it. If you

Why exposed types must be sealed for WinMD/WinRT components?

≡放荡痞女 提交于 2019-12-07 00:23:06
问题 VS compiler does not allow to create sealed exposed types for WINMD type library. Why is this restriction placed ? (I know about sealed types advantages, my question is with respect to Win RT components). 回答1: This is an architectural limitation, imposed by COM. Which sits at the core of any WinRT type, they are derived from IUnknown and IInspectable. The problem with COM is that it only supports interface inheritance but not implementation inheritance. Which was a strong COM design goal,

WinRT and software ClearType font rendering

女生的网名这么多〃 提交于 2019-12-06 23:49:06
问题 Does WinRT provides an option to fall back to software ClearType font rendering (as Direct2D do via "Direct2D and GDI Interoperability") or we will be stuck with somewhat blurry hardware font anti-aliasing only? 回答1: No. Windows on ARM will not support ClearType. This is by design. Instead, Windows on ARM tablets will be required to have a high DPI. http://www.istartedsomething.com/20120303/cleartype-takes-a-back-seat-for-windows-8-metro/ 来源: https://stackoverflow.com/questions/7487080/winrt

Windows 8 24x24 badge logo image failing wac tool test

喜夏-厌秋 提交于 2019-12-06 23:45:19
问题 I am developing windows 8 app using tool Microsoft Visual Studio Express for Windows 8 When I am creating app packages to upload on app store it fails the WAC tool test and gives out following error. Image reference "images\badge_24.png": The image "C:\Program Files\WindowsApps \myproject\images\badge_24.png" has an ABGR value "0x1D5E50E9" at position (9, 0) that is not valid. The pixel must be white (##FFFFFF) or transparent (00######). I searched on net and found the link Badge Issue in VS

Windows 8 Flexboxes - Nesting Flexboxes with overflow enabled

老子叫甜甜 提交于 2019-12-06 23:44:30
I am attempting to create a horizontally flexible screen in a Windows 8 store app with several groups stretching out horizontally (contained in the outer Flexbox), and various fields under the groups listed vertically, wrapping from the bottom of the screen to the top as necessary (contained in a series of inner Flexboxes). This is a similar layout to a grouped Windows 8 ListView, but because I am displaying fields related to a single data item, and certain sections will contain ListViews elsewhere in the page, I cannot use a listview to display the data. I have run into a problem whenever the

Windows 8 - Running Eclipse (Java VM not found)

自闭症网瘾萝莉.ら 提交于 2019-12-06 23:43:32
问题 I just downloaded the Android Developer Tools Bundle. I started following the setup instructions and gotten as far as extracting the files to new location ("Development") as it says. I tried running the Eclipse app as instructed, yet a window popped up saying; A Java Runtime Environment (JRT) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following location: C:.........\Development\adt-bundle-windows\eclipse\jre