windows-10-universal

What is the equivalent of Assembly.GetEntryAssembly() in .NET Core?

旧巷老猫 提交于 2019-12-01 16:58:13
问题 In .net framework we could get the starting assembly using: Assembly.GetEntryAssembly(); But that is removed from .NET Core. Also there is no AppDomain. How can I get access to the entry assembly in .NET Core and Windows Universal applications? (I need to find all of its embedded resource keys) 回答1: Assembly.GetEntryAssembly() is available in .NET Standard 1.5 , but not in versions 1.0 through 1.4. If you are only developing .NET Core and Universal Windows applications, version 1.5 should be

How to increase the font size of the date that is selected on a CalendarDatePicker

时光毁灭记忆、已成空白 提交于 2019-12-01 14:16:49
I have a CalendarDatePicker control on my UWP app. I am not able to increase the size of the font of the date that is selected using the FontSize attribute. How can I easily do this without overriding a lot of styles? Here is the basic code I have: <Page x:Class="CalendarPickerExample.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:CalendarPickerExample" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc

How to increase the font size of the date that is selected on a CalendarDatePicker

泪湿孤枕 提交于 2019-12-01 13:24:50
问题 I have a CalendarDatePicker control on my UWP app. I am not able to increase the size of the font of the date that is selected using the FontSize attribute. How can I easily do this without overriding a lot of styles? Here is the basic code I have: <Page x:Class="CalendarPickerExample.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:CalendarPickerExample" xmlns:d="http://schemas.microsoft.com

Template 10 Multiple Windows

纵饮孤独 提交于 2019-12-01 12:43:37
I'm currently exploring how to use Template 10, and would like to have two windows. One window is for moderation of photos, while the other will show the pictures to guests at an event. So far, I've seen Microsoft MultiViews sample but it seems that it does not use Template 10. Could someone point me/advice in a direction to be able to MultiViews using Template 10, or should I just abandon Template 10 altogether? You could use ProjectionManager for this. There's also a useful sample on MSDN . It basically allows you to open a secondary "window" just like PowerPoint does in the "presenter's

How can I lock the screen from within the Windows 10 Mobile app?

限于喜欢 提交于 2019-12-01 12:13:30
I was searching through UWP API Reference and I didn't find any way how to Lock the device from within app or with Secondary Tile. And I am frustrated, because there is a proof that it can be done. I don't want to make any advertisements here but for example this app: https://www.microsoft.com/en-us/store/apps/quicktiles/9wzdncrfhzts Can create secondary tile that just locks the screen. How can I do it myself? Thanks. I don’t think it is possible with the UWP libraries. I tried to do an app able to lock the screen and had to give up few week-end ago. You could vote for such idea here : https:/

How to use VisualState AdaptiveTrigger to change ListView Item FontSize

瘦欲@ 提交于 2019-12-01 11:45:03
I am using Visual State Adaptive Trigger to change page appearance depending on effective screen resolution. This works great, but I cannot get it to work for ListView Items. My ListView looks something like this: <ListView x:Name="listView" > <ListView.ItemTemplate> <DataTemplate> <TextBlock FontSize="20" Text="{Binding MyItem}"/> </DataTemplate> </ListView.ItemTemplate> </ListView> I can change the TextBlock font size statically in XAML. But I don't know how to reference this in VisualState setter target. Being automatically generated child, I cannot give TextBlock a name. My Visual State

Template 10 Multiple Windows

瘦欲@ 提交于 2019-12-01 11:22:59
问题 I'm currently exploring how to use Template 10, and would like to have two windows. One window is for moderation of photos, while the other will show the pictures to guests at an event. So far, I've seen Microsoft MultiViews sample but it seems that it does not use Template 10. Could someone point me/advice in a direction to be able to MultiViews using Template 10, or should I just abandon Template 10 altogether? 回答1: You could use ProjectionManager for this. There's also a useful sample on

Google Calendar API for UWP Windows 10 Application One or more errors occurred

本小妞迷上赌 提交于 2019-12-01 10:11:12
问题 I'm trying to use Google Calendar API v3, but i have problems while running the codes, it always gives me that error : An exception of type 'System.AggregateException' occurred in mscorlib.ni.dll but was not handled in user code Additional information: One or more errors occurred. I don't know why it does, also It should work as well. Here is a screenshot for it : Also my codes are : UserCredential credential; credential = GoogleWebAuthorizationBroker.AuthorizeAsync( new Uri("ms-appx://

Toast notification response in background task

安稳与你 提交于 2019-12-01 07:55:28
问题 I'm writing an application which can show toast notifications in a background task (I use BackgroundTaskBuilder) . In the notification I'm using two button, which should do two different function, but I can't get the notification's response. I read on the internet that I should start another background task for this, but I can't start another background task in a backround task. So my question is: How can I get that the user what button clicked in the notification? Thanks for the help. 回答1:

How to create .appx package for Universal Windows Platform(UWP) application?

。_饼干妹妹 提交于 2019-12-01 06:06:19
问题 I have created package for my universal windows platform application.But I am not able to find where the .appx file is generated for my package. It has generated .appxbundle file and all the other files.But .appx file is not generated. 回答1: An .appx is just a zip64 file, and a .appxbundle is a zip file containing such zip files. If you use makeappx.exe you can extract all the files inside your .appxbundle and see the individual .appx files within. MakeAppx unbundle /p bundle_name.appxbundle