uwp

Facebook Login - Windows 10 UWP - Desktop

孤者浪人 提交于 2019-12-22 06:37:17
问题 I am building a new Universal Windows 10 UWP App, and trying to do a Facebook login. On Facebook, I have set the Windows App section of my app to have the identifier of my app: Windows : s-1-15-xxxxxxxxxxxx Windows Phone : fef49b712e5a843cbfeb0c9d780423fc (Not the actual one) In the package manifest file, I have added the protocol of: msft-fef49b712e5a843cbfeb0c9d780423fc Which means I set my redirect_uri parameter to: msft-fef49b712e5a843cbfeb0c9d780423fc://authorize When running on a phone

UWP Page Transition Animations

二次信任 提交于 2019-12-22 04:25:09
问题 I programing in Windows 10 UWP. I have a Frame in Xaml that I would like to have the Page/Content to slide left and off screen when the use navigates away from the page to another page. Any Idea how to do Frame Navigation Animations? 回答1: Try to use build-in animation: protected virtual void SetUpPageAnimation() { TransitionCollection collection = new TransitionCollection(); NavigationThemeTransition theme = new NavigationThemeTransition(); var info = new ContinuumNavigationTransitionInfo();

Bind UWP ComboBox ItemsSource to Enum

时光怂恿深爱的人放手 提交于 2019-12-22 04:05:06
问题 It's possible to use the ObjectDataProvider in a WPF application to bind an enum's string values to a ComboBox's ItemsSource, as evidenced in this question. However, when using a similar snippet in a UWP application, the ff. error message is displayed: "ObjectDataProvider is not supported in a Windows Universal project." Is there a simple alternative to do this in UWP? 回答1: Below is a working example from one of my prototypes. ENUM public enum GetDetails { test1, test2, test3, test4, test5 }

UWP WrapPanel Replacement?

青春壹個敷衍的年華 提交于 2019-12-22 03:43:58
问题 Is there a replacement for this WPF code? <WrapPanel> <TextBlock Width="100" Height="20"/> <TextBlock Width="30" Height="50"/> <TextBlock Width="150" Height="70"/> </WrapPanel> This is really stupid if there is none... Update: I forgot to mention that the width of the WrapPanel is smaller than the total width of all the TextBlocks combined. This means that some of the items need to wrap to a second row. I thought that this is what most people used a WrapPanel for, but apparently some use it

Vector Map Tiles on Bing Map Control

江枫思渺然 提交于 2019-12-22 01:37:31
问题 Hello I am working on a UWP map based application. I am currently using Raster Tiles data to remove the Bing Map default tiles. I Want to now shift to using Vector Tiles on the Bing map control. For Raster Tiles I know there are two ways: Set Tile data via the HTTPTileSource Set Tile data via the BitMapTileSource I want to know how can I implement Vector Tiles on the bing map control. The Vector tiles I get are of the extention .pbf . I have to hit the URL and get the .pbf file now how do I

Get Installed win32 application

放肆的年华 提交于 2019-12-22 01:33:05
问题 Is there any way to get installed win32 applications in UWP project?(since in uwp project I am unable to add reference of wmi call and registry).If so how it is achieved ? 回答1: Classical win32 application can get installed win32 applications on the device by reading the registry. But in a store app, in short answer, it cannot. A store app runs in an isolated sandbox and cannot read the system level registry. For details reasons about why store app doesn't support access the registry please

Why does this ScrollViewer's ScrollBars appear twice?

帅比萌擦擦* 提交于 2019-12-22 01:16:47
问题 I edited a ScrollViewer 's template to wait only 0.5 seconds before hiding the scrollbars, and this succeeds in hiding them at that time, but they reappear for another 0.5 seconds. Why? To reproduce, create a page resource for a ScrollViewer's Style with the default Template (find it here on MSDN) and change the 3 occurances of "3" to "0.5". Then use the following XAML: <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <ScrollViewer Height="500" Width="500" Style="

How to create a square button?

。_饼干妹妹 提交于 2019-12-22 01:03:14
问题 Thanks for @Justin XL and @grek40 help me so much. I must apologize for my poor English that troubles everyone so much. And I think I need to improve this question to help any others in the furture. Here is the newest: I need to make a square button like this: My programme is a fullscreen programme that different device has different window's size. So my square button should be can resizeable also beaucase I want to make a Reactive UI. And now how can I make a square button? Thank you. 回答1:

UWP speech recognition failure requires restart with foreground and timeout

萝らか妹 提交于 2019-12-22 00:37:36
问题 I'm trying to use continuous speech recognition in UWP application, but each time after number of successful results in very different random moments during processing ContinuousRecognitionSession_ResultGenerated just stops receive recognition event: SpeechRecognizer contSpeechRecognizer = new SpeechRecognizer(); private CoreDispatcher dispatcher; protected async override void OnNavigatedTo(NavigationEventArgs e) { bool permissionGained = await AudioCapturePermissions

UWP Template Control with Event Handler

三世轮回 提交于 2019-12-22 00:35:50
问题 I am new to UWP and trying out. Please point me to links if its too basic. I am developing an Custom Control ( UWP Template Control ), with some Text box and Buttons. Ideally, I want to use this control in my MainPage as Header Control, depending on each button click in Templatecontrol, I want to render different pages. Now coming to basic question, How do I hookup the event handler in CustomControl This is my Generic.xaml: (Project1.Library) <ResourceDictionary xmlns="http://schemas