uwp

Getting the first visible group in ListView does not work properly

半腔热情 提交于 2019-12-11 02:46:26
问题 I have created a sample app where I have a grouped ListView and while scrolling through the listview I want to get the top visible group in the UI (first visible group). But when I keep scrolling on a touch based device, it starts showing the next group (next to the top visible group) for as long as I keep my finger on the device. If I remove my fingers, it would correct the value. Here is my sample app: https://onedrive.live.com/redir?resid=91B2B9D9EA21A110!615&authkey=!AKJV0b_q7g-YZF4

Getting BLE Beacons in C++ Windows 10 Desktop Application

a 夏天 提交于 2019-12-11 02:36:44
问题 Has someone already figured out how to get BLE Beacons into a c++ desktop apps? I have some code from the following websites to get it done in c#: msdn sozial site and codefest.at post. Sorry, it's in german but the code is code but that'for C# and not c++ I also have the example from MS (msdn.microsoft.com/en-us/library/hh973459.aspx) how to use the WinRL For now I have the following code: #include "stdafx.h" #include <iostream> #include <Windows.Foundation.h> #include <wrl\wrappers

What should the value of Windows.Current.Content be after opening a secondary window?

限于喜欢 提交于 2019-12-11 02:35:45
问题 This is the suggested code in the App class from the Template10 article on implementing a shell: public override Task OnInitializeAsync(IActivatedEventArgs args) { var nav = NavigationServiceFactory(BackButton.Attach, ExistingContent.Include); Window.Current.Content = new Views.Shell(nav); return Task.FromResult<object>(null); } The new shell object is assigned to Windows.Current.Content. This is the suggested code for opening a secondary window (not with a shell), from the Template10

UWP web install - “Error in parsing the app package.”

时光毁灭记忆、已成空白 提交于 2019-12-11 02:34:45
问题 I created a simple web app and a simple UWP app. In the web app, I've added a link to my uwp app. But after clicking on the link, the error comes " Error in parsing the app package. ". The . appxbundle is reachable, because if I remove ms-appinstaller:?source= from url, the downloading starts. Also, I've configured web app for MIME types. The package seems to be valid, because if I double click on downloaded file, the installation completes. Here some code samples: Web.config: <system

Conditional package reference in UWP project

≯℡__Kan透↙ 提交于 2019-12-11 02:29:46
问题 I would like to use one NuGet package just for Debug configuration. I found possibility to do it in Visual Studio 2017 if I have a UWP project targeting Creators Update (15063). <PackageReference Include="Newtonsoft.json" Version="9.0.1" Condition="'$(Configuration)' == 'Debug'" /> But the package is still there also for Release configuration. 回答1: <Choose> <When Condition=" '$(Configuration)'=='Debug' "> <ItemGroup> <PackageReference Include="Newtonsoft.json" Version="9.0.1" /> </ItemGroup>

UWP_Can not start app using StartupTask Class?

混江龙づ霸主 提交于 2019-12-11 02:26:17
问题 I follow this article to startup my UWP app when system reboot. https://docs.microsoft.com/en-us/uwp/api/windows.applicationmodel.startuptask#uwp-app-startup-task-extension UPDATE I also tried that article, used exactly source code in that sample Configure your app to start at log-in and below is phenomenon: - when I click Request to Enable StartUp button on main page of UWP app, it shows Startup State as Enabled. - I check Task manager, this app is enabled in startup list. - After I restart

DropShadowPanel adapt to button template style

六月ゝ 毕业季﹏ 提交于 2019-12-11 02:14:15
问题 I'm using the UWP Toolkit's DropShadowPanel for apply a shadow effect on a Button control. Here the documentation : DropShadowPanel XAML Control The fact is i edited the button style's Template for Round borders but the DropShadowPanel doesn't follow the new Template : <controls:DropShadowPanel BlurRadius="4.0" ShadowOpacity="0.70" OffsetX="5.0" OffsetY="5.0" Color="Black" HorizontalAlignment="Left" Margin="91,90,0,0" VerticalAlignment="Top"> <Button x:Name="button" Content="Button" Style="

XAML UWP Flyout positioning

筅森魡賤 提交于 2019-12-11 02:13:45
问题 I am implementing a Flyout in a UWP app as you can see on the image below. I want the AutoSuggestBox in the Flyout to appear in (and fill) the PageHeader, but it appears below it. This is my XAML: <Button x:Name="searchButton" Margin="0" Padding="0" BorderThickness="0" RelativePanel.AlignBottomWith="pageHeader"> <Button.Content> <FontIcon Height="48" Width="48" Glyph=""/> </Button.Content> <Button.Flyout> <Flyout> <Flyout.FlyoutPresenterStyle> <Style TargetType="FlyoutPresenter"> <Setter

Why is ZipFile.CreateFromDirectory throwing access denied here?

故事扮演 提交于 2019-12-11 02:07:50
问题 I'm suffering from a file access problem. The main problem is I can't write a ZipFile in a folder which is acquired by the Folder Picker. While I've been working on this project, until I encountered this ZipFile problem, I did lots of jobs associated with creating files, with deleting files, with creating folders in that folder. It doesn't seem to matter for this problem. As the file-access documentation says, I have access permission on a folder which is chosen by the user when using the

Using a UWP C++ dll in Win32 C# WPF application

久未见 提交于 2019-12-11 02:07:09
问题 I'm attempting to use the SimpleCommunication C++ DLL that Microsoft in one of their UWP sample examples inside a Win32 C# WPF application. https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/SimpleCommunication/common/MediaExtensions/Microsoft.Samples.SimpleCommunication I've tried to add a reference to the both the .dll and .winmd files that are generated when building the SimpleCommunication .dll into my Win32 C# WPF application however whenever I attempt to call any