win-universal-app

Show flyout using BottomAppBar

血红的双手。 提交于 2019-12-05 02:37:59
I'm trying to show a simple Flyout (with informational content) when a AppBarToggleButton within BottomAppBar is pressed, but my solution doesn't work. :( This is my code: <Page.BottomAppBar> <CommandBar> <AppBarToggleButton x:Uid="MapPageAppBarLegend" Label="" Icon="List"> <FlyoutBase.AttachedFlyout> <Flyout> <TextBlock Text="Informations here..."/> </Flyout> </FlyoutBase.AttachedFlyout> </AppBarToggleButton> </CommandBar> </Page.BottomAppBar> Nothing appears.. Can anyone help me to showing this flayout? Thank you very much and sorry for my english language. :) Pame Everything is quite

Change a Windows Store App's title text

人走茶凉 提交于 2019-12-05 02:34:51
How can I change the shown title of the app? (Like Photos does) In Winforms that would be form1.Text = "new title"; . How do we do that in UWP? using Windows.UI.ViewManagement; ... ApplicationView appView = ApplicationView.GetForCurrentView(); appView.Title = "Title text goes here"; Parham.D When I use ApplicationView , it appends the Title to the assembly name. We could edit Application -> Display Name in the Package.appxmanifest file. 来源: https://stackoverflow.com/questions/33400597/change-a-windows-store-apps-title-text

C# UWP - Can't add reference to project in same solution

坚强是说给别人听的谎言 提交于 2019-12-05 02:29:29
I need to write a UI for an API utility that I need to use. I have created a new Universal Windows App for the UI, added the API utility project to the solution and now need to reference the API utility from the UWP project - but I just get 'Unable to add a reference to project 'XXX'. If I create a Windows Forms Application or a console project and add that to the solution, I can do the referencing, no probs. What is it about UWP that I don't understand? You should create a portable class library for your API utility. See MSDN: https://msdn.microsoft.com/en-us/library/gg597391(v=vs.110).aspx

Adding references in a shared (.shproj) project

混江龙づ霸主 提交于 2019-12-05 02:09:48
I'm having an issue with adding a dll reference to a shared project. As seen in the picture below I have a Universal solution with a project for windows and a project for windows phone. In the HubApp1.Shared project I need to add a reference for some code in Class.cs. I will be using Class.cs in both the Windows project and the Windows Phone project. I have scoured Bing for how to fix this and I couldn't find anything. You must add the reference in both WP and Windows project. The reason for this is that shared project is not compiled into any output DLL - it is compiled into the project that

Listview group in uwp

狂风中的少年 提交于 2019-12-05 00:45:39
问题 I have a simple view with a ListView , I would like the ListView has two groups, a group for items with property complete= 1 and another group with complete= 0 . This is my class: public class myClass { public string name{ get; set; } public bool complete{ get; set; } } This is my XML: <ListView x:Name="MasterListView"> <ListView.GroupStyle> <GroupStyle > <GroupStyle.HeaderTemplate> </GroupStyle.HeaderTemplate> </GroupStyle> </ListView.GroupStyle> </ListView> <DataTemplate x:Key=

Windows 10 Universal App - Type exists in both “Windows.Foundation.UniversalApiContract”

心不动则不痛 提交于 2019-12-05 00:10:33
somehow (I have not even done anything) I get many erros in Visual Studio 2015 but I cant understand what the problem really is. It says that a lot of "types" exists in both "Windows.Foundation.UniversalApiContract" libraries. Can somebody help me? What can I do to rescue my solution and my project? I've tried to clean and rebuild it sometimes and this doesn't helped. Looks like you are referencing both the Windows 10 SDK metadata (UAP) and the Windows 8.1 SDK metadata (Windows). Are you mixing old and new binaries, or an old project file? Try to create a new project from scratch and added

Device ID in a UWP app (threshold 1)

倾然丶 夕夏残阳落幕 提交于 2019-12-05 00:09:46
问题 In Phone 8.1 you could get the device ID using HardwareIdentification, and even though the documentation says it exists for Desktop apps, it does not exist for a UWP app. What is the alternative or a way to get a hardware ID for a UWP? 回答1: You're running into a common issue when migrating an app from Windows (Phone) 8(.1) to the Windows Universal Platform . The reason you're not seeing the HardwareIdentification is pretty simple: You don't reference the required sources! You only see

InvalidOperationException “get_MetadataToken() cannot be used on the current platform” when creating tables

删除回忆录丶 提交于 2019-12-04 23:29:53
问题 This is an interesting problem for me. On my work machine, my code works perfectly fine, but on my home machine when starting with a new sqlite file I get an InvalidOperationException when db.Database.Migrate() is called. According to Windows Update , both machines are up to date. Visual Studio 2015 also shows as up to date on both machines. I'm running EF7 rc1-final The stacktrace isn't exactly deep: System.InvalidOperationException occurred HResult=-2146233079 Message=The API 'System

ArgumentException - Use of undefined keyword value 1 for event TaskScheduled in async

可紊 提交于 2019-12-04 22:36:01
Getting System.ArgumentException - Use of undefined keyword value 1 for event TaskScheduled in async apis. There is something wrong when running the first await statement in an Universal app with Visual Studio 2013 Update 3. I am using WP8.1 Universal and silverlight apps after I installed Visual Studio 2013 Update 3. The exceptions happens in Emulator/Device modes. I have spent a couple of days researching this issue without any resolution. I have a sibling article at Windows Dev center forum but I have not heard any answers from Microsoft. The code is straight forward. Once the internal

Visual Studio 2013 update 3, Designer won't load

旧巷老猫 提交于 2019-12-04 21:39:16
问题 I have the following situation. I installed Visual Studio Update 3 last night. Now I have a problem that when I open my projects (Universal Apps) which i have done while i had update 2, my designer won't load and it throws an exception: Does anyone knows how to solve this? I guess this is not a bug because probably everything was tested by Microsoft, and this is not RC update. Im about to delete this update if i don't figure out the solution. I'm guessing that it might have to do with xaml if