win-universal-app

Assembly allocated memory pointer automatically changed to 0xffffffff in an UWP C++ project

大城市里の小女人 提交于 2019-12-12 06:30:53
问题 I am porting Mupen64plus to UWP. For good performance, I have to port the dynamic recompiler. So I rewrote the file linker_arm.s using MS grammar and gets the project built. But the pointers out and base_addr are automatically changed to 0xffffffff when the nearby variables are modified in new_dynarec_init, which I can see from the watch window while running the release version of the app. This is the code for allocating space and declaring the variables. GLOBAL_VARIABLE extra_memory GLOBAL

EntranceThemeTransition not working on UWP?

旧时模样 提交于 2019-12-12 06:27:40
问题 Do the transitions work in apps for the Universal Windows Plattform (UWP) / Windows 10? I pasted the following code into an empty page, but the animation wouldn't work. <ItemsControl Grid.Row="1" x:Name="rectangleItems"> <ItemsControl.ItemContainerTransitions> <TransitionCollection> <EntranceThemeTransition/> </TransitionCollection> </ItemsControl.ItemContainerTransitions> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <WrapGrid Height="400"/> </ItemsPanelTemplate> </ItemsControl.ItemsPanel>

Few doubts related Windows push Notification service in WP Universal application

浪尽此生 提交于 2019-12-12 06:12:36
问题 I am a Windows Phone application developer. In my application I implemented push notification services using WNS . I have few doubts/questions regarding this. Please clarify How can we disable push notification for a specific application ? Can we prevent it from application side ? Or handle it from server side? If I un install my application and the server is still sending you the push notifications. Will it receive in to phone? Is that necessary to ask user permission before registering push

How to fill a Win10 XAML Polygon with tiles?

可紊 提交于 2019-12-12 05:59:13
问题 I am trying to make XAML Polygon filled with a transformed texture. The code worked well in WPF but in a Windows 10 app there seems to be no TileMode property. <Polygon Points="300,200 400,125 400,275" Stroke="Purple" StrokeThickness="2"> <Polygon.Fill> <ImageBrush TileMode="Tile" ImageSource="Assets/StoreLogo.png"> <ImageBrush.RelativeTransform> <TransformGroup> <ScaleTransform CenterY="0.5" CenterX="0.5" ScaleX="0.2" ScaleY="0.2"/> <SkewTransform CenterY="0.5" CenterX="0.5"/>

Binding VisualState to the ViewModel in Universal Windows 10 Apps

为君一笑 提交于 2019-12-12 05:53:42
问题 I used to use a custom Blend behavior to bind an enum on the ViewModel to VisualState 's that were named the same as the enum enumerations. However after including references and then including the using s, it seems the Bahaviors SDK is not currently supported. What is the current best way to change VisualState in a MVVM way in a Windows 10 Universal App? 回答1: "Behavior SDK" can be included by right-clicking on References -> Add Reference -> Universal Windows -> Extensions -> Behavior SDK.

Menu button at the bottom UWP Hamburger Navigation pane

微笑、不失礼 提交于 2019-12-12 05:32:36
问题 I am currently building a hamburger menu for my UWP app build using SplitView.Pane. The "Buttons" are listBoxItems in a listBox. Is there a way to make the setting icon be located at the bottom of the SplitView.Pane like in the native windows new App...Thanks 回答1: use 2 ListBox inside a RelativePanel. in down listbox set RelativePanel.AlignBottomWithPanel="True" and when select item from the fist listbox set the selectedIndex=-1 for the other listBox <SplitView.Pane> <RelativePanel> <ListBox

Select XAML TextBox in StackPanel using TextBox's Index

心不动则不痛 提交于 2019-12-12 05:29:18
问题 I have the following code: //All elements edited below have already been defined in MainPage.xaml int index = Window_1_Document_Page_1.Children.IndexOf(sender as TextBox); //Window_1_Document_Page_1.Focus(FocusState.Programmatic); Window_1_Document_Page_1.Children.Remove(sender as TextBox); Before deleting sender as TextBox , how do I set the focus to the TextBox above it? Thanks in advance. 回答1: Maybe there is a more elegant solution, but this should work: //Get index of control you want to

C# UWP disable phone keyboard for textbox or whole page

和自甴很熟 提交于 2019-12-12 05:08:10
问题 I have 2 TextBoxes. i made my own keyboard so the user uses my keyboard and its etrxa buttons. but when i tap on the textbox to type in it the phone keyboard on my phone emulator pops up. I tried the "PreventKeyboardDisplayOnProgrammaticFocus" but i read that it is only to disable it when the program itself chooses a textbox. I read that the InputPane can help me disable it but i can't understand how to use it and can't find a way to do it anywhere else. Can somebody help me i just want the

resize image before upload via background transfer in winjs

故事扮演 提交于 2019-12-12 04:56:12
问题 I would like to resize an image picked from the gallery of the phone before uploading it via background transfer so far I have:- filePicker.pickSingleFileAsync().then(function (file) { uploadSingleFileAsync(uri, file); }).done(null, displayException); function uploadSingleFileAsync(uri, file) { if (!file) { displayError("Error: No file selected."); return; } return file.getBasicPropertiesAsync().then(function (properties) { if (properties.size > maxUploadFileSize) { displayError("Selected

How do I connect to a Windows Universal App StreamSocket from a Console Application?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 04:32:23
问题 I am listening for connections through a Windows Universal App and would like to connect to that App through a Windows Console Application. I have done some basic code which I think should connect but I get a timeout error from the console application. {"A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 192.168.0.5:1771"} The windows universal app never even