windows-10-universal

How to do relative binding for button flyout in universal windows store app

廉价感情. 提交于 2019-12-12 02:07:47
问题 I want to bind my button flyout width and height with some other control but it not working <Grid > <Popup IsOpen="True" Name="popup"> <Grid Name="popupBorder" Background="Red" Height="100" Width="100" > </Grid> </Popup> <Button Content="check flyout" Name="btn" Click="Button_Click" > <Button.Flyout> <Flyout> <Border Name="flyoutBorder" Height="{Binding Path=Height, ElementName=popupBorder, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}" Width="{Binding Path=Width, ElementName=popupBorder,

Unexpected Error: DEP0001 - 1988946667

烂漫一生 提交于 2019-12-12 01:42:19
问题 I'm trying debug Windows 10 App and always get "DEP0001 - 1988946667" error. I'm trying: Connect Lumia 950 by USB and debug with "Device" mode in Visual Studio 2015 (I activated developers mode in phone) The previous step with ARM architecture Debug with Windows 10 emulator. I'm only can debug like local app in my laptop... But always I get the same error message... Any ideas? Update: The main problem is the build version of Windows 10. If returns to 1511 all works fine 回答1: The main problem

Windows-10 CreateFile2 error (ERROR_NOT_SUPPORTED_IN_APPCONTAINER)

末鹿安然 提交于 2019-12-12 01:35:51
问题 CreateFile2 api is returning ERROR_NOT_SUPPORTED_IN_APPCONTAINER when the file is not present/available in the path. My code is as below CREATEFILE2_EXTENDED_PARAMETERS ms_param = {0}; ms_param.dwSize = sizeof(CREATEFILE2_EXTENDED_PARAMETERS); ms_param.dwFileAttributes = FILE_ATTRIBUTE_READONLY; ms_param.dwFileFlags = FILE_FLAG_NO_BUFFERING; ms_param.dwSecurityQosFlags = SECURITY_DELEGATION; ms_param.lpSecurityAttributes = NULL; ms_param.hTemplateFile = NULL; g_hfile = CreateFile2(filename,

UWP App - InkCanvas and InkToolbar in HTML5/JS

孤者浪人 提交于 2019-12-12 00:55:02
问题 Can the new InkCanvas and InkToolbar (see this link) be used in Windows 10 UWP HTML5/JS apps? I see only C#, C++, and VB tabs in the documentation. This is in the documentation under XAML controls, which to my understanding is not part of the HTML support. Is there an alternative/complementary HTML5/JS tool set for these components? Thanks! 回答1: The types InkCanvas and InkToolbar are currently not supported in UWP HTML5/JS. For HTML5/JS, you can use this official sample as reference. There

windows 10 pivot item text

主宰稳场 提交于 2019-12-11 22:08:32
问题 I want to change the default text style (foreground color, font weight, etc) for pivot item header text when the header is selected. E.g., if I have the following: <Pivot> <PivotItem Header="One"></PivotItem> <PivotItem Header="Two"></PivotItem> </Pivot> I want the selected pivot item to be bolded when selected and/or change the foreground color (or maybe put the text in a border, etc). I don't want to change the default style for the unselected items. Thanx, 回答1: The XAML framework offers

UWP - SignTool Error: No certificates were found that met all the given criteria

落花浮王杯 提交于 2019-12-11 18:25:11
问题 I'm getting this error after our company changed its AD domain. UWP app development with VS 2019 and Windows 10 (1903) C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(4469,5): error APPX1204: Failed to sign 'D:\AzureDevOps-Workspace\UWP\Main\BoardPACWinApp\bin\x64\Release\BoardPACWinApp_3.51.11.0_x64.appx'. SignTool Error: No certificates were found that met all the given criteria. 5>C:\Program Files

UWP change NavigationViewItem height

余生颓废 提交于 2019-12-11 18:04:57
问题 On the image above, you can see my app (left) and Groove Player (right). I want to make NavigationViewItem height big like Groove Player, but I don't know how. I tried playing with Padding and MinHeight but it doesn't look the same. I want to do the same for the AutoSuggestBox and the Settings button, that are part of NavigationView. <NavigationView x:Name="navView" IsSettingsVisible="True"> <NavigationView.AutoSuggestBox> <AutoSuggestBox QueryIcon="Find" PlaceholderText="Search"><

Complicated background work in UWP, is it real?

牧云@^-^@ 提交于 2019-12-11 17:09:18
问题 Usually I work with Android but now I need to make background application/library/service in UWP. So, I need three background tasks/jobs/services: Every 15 minutes send POST request to the server Every 1 minute check some data Run via push notification a long-running tcp/ip connection which can run about 1 hour (how long can it run?) I am confused, is it possible for UWP? 回答1: The short answer,it is not complicated. Every 15 minutes send POST request to the server Background tasks can run as

WinIot Core v.10.0.16299.15 - RP3 - Microsoft Visual Studio Remote Debugger, MSVSMON not running

血红的双手。 提交于 2019-12-11 16:29:38
问题 This isnt my first project with WinIoT on a Pi. I have been using the WinIot image since its first version. I decided to update all my Pis to the latest WinIoT image. My VS is updated to the latest version 2017 15.15.2. When I go to remote debug my application, It fails during the deploy process with this error: 1>Error: Unable to connect to the Microsoft Visual Studio Remote Debugger named '[iphere]'. The Visual Studio 2017 Remote Debugger (MSVSMON.EXE) does not appear to be running on the

UWP FileOpenPicker locks\freezes app in debug

霸气de小男生 提交于 2019-12-11 16:13:57
问题 If the debugger is attached, calling this function causes the app to hang. If I run without a debugger, there is no hang, and file pickers work perfectly. private async void OnClick(object sender, RoutedEventArgs e) { FileOpenPicker openPicker = new FileOpenPicker(); } I'm certain this is something super simple, but I just don't know. Edit: Here's how I'm using it. Keep in mind, that the simpler function creates the hang issue without all my extra code after it. I've stuffed up the image