uwp

2019-11-25-win10-uwp-发布旁加载自动更新

。_饼干妹妹 提交于 2019-12-21 09:30:15
原文: 2019-11-25-win10-uwp-发布旁加载自动更新 title author date CreateTime categories win10 uwp 发布旁加载自动更新 lindexi 2019-11-25 15:45:47 +0800 2019-02-03 15:10:19 +0800 Win10 UWP 在很多企业使用的程序都是不能通过微软商店发布,原因很多,其中我之前的团队开发了很久的应用,结果发现没有用户能从微软应用商店下载所以我对应用商店没有好感。但是作为一个微软粉丝,怎么能不支持 UWP 开发呢。但是做出来 UWP 应用还是需要用户能用,经过了很长的时间,和很多大佬聊了之后,终于对新的项目使用旁加载的方式,使用自己的服务器提供下载更新 本文告诉大家如何搭建一个 asp dotnet core 服务器,将一个 UWP 程序使用旁加载发布,同时支持自动更新 首先创建一个简单的 UWP 程序,这个程序显示当前的包的版本,通过程序的包的版本就可以知道是否更新成功。 在 17134 也就是系统的版本是 1803 的时候,就支持自动更新 UWP 应用,因为我所在的团队的客户的系统都是可以控制的,于是全部都升级到 1803 的系统。 虽然旁加载对于证书不是很友好,但是因为我的应用都是预装的,本来的两大问题一个就是自动更新问题,另一个是从应用商店下载的问题

2019-11-25-加强版在国内分发-UWP-应用正确方式-通过win32安装UWP应用

心不动则不痛 提交于 2019-12-21 09:28:06
原文: 2019-11-25-加强版在国内分发-UWP-应用正确方式-通过win32安装UWP应用 title author date CreateTime categories 加强版在国内分发 UWP 应用正确方式 通过win32安装UWP应用 lindexi 2019-11-25 08:57:35 +0800 2019-11-25 08:57:35 +0800 UWP 几乎所有国内的 UWP 开发者都知道,在国内开发 UWP 应用最大的问题不在于那么多系统的适配和不断修改的 API 接口,而是用户根本无法下载安装应用。在国内除非能掌握入口,否则想要将 UWP 开发应用在商业团队是很难的。刚好我所在的团队能将硬件设备直接给到用户,此时预装的系统里面就可以带上自主开发的 UWP 应用,解决了用户无法在应用商店安装应用的坑。但是大多数的团队都不能这样做,同时我的团队如果只是依靠硬件设备预装,那么会限制用户量。本文告诉大家如何使用传统的方法,将 UWP 作为 win32 应用安装包方法分发给用户安装 将 UWP 作为安装包的方式分发也就是通过旁加载的方式,而微软干的不错的时使用旁加载如果使用的证书不清真,那么就要求用户信任证书。而大多数的用户都无法成功安装证书,我测试了几个应用,发现通过这个方式的没有一个能成功安装。所以需要解决的问题是先帮助用户安装证书,然后再安装应用。而 UWP

Scrollviewer not working on a grid

情到浓时终转凉″ 提交于 2019-12-21 09:19:56
问题 Hi I am learning UWP in windows 10, I need to scroll through a grid. They have two pieces of code are very similar, my intent is to scroll in grid2, the first piece of code: <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="*"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <CommandBar VerticalAlignment="Top" Grid.Row="0"> <CommandBar.Content> <TextBlock Name="CurrentDateText" Margin="10,10,0,0" HorizontalAlignment="Left" VerticalAlignment="Bottom"

String format using UWP and x:Bind

点点圈 提交于 2019-12-21 08:16:06
问题 Does anyone know how to format a date when using x:Bind in a UWP Windows 10 app? I have a TextBlock that is bound (x:Bind) to a DateTime property on my ViewModel which is read from SQL. I want to format the output to "dd/MM/yyy HH:mm (ddd)". Is there a simple way of doing this? The default format is "dd/MM/yyy HH:mm:ss" which I presume is coming from a default. Could this be replaced maybe? Thanks. 回答1: Use a StringFormatConverter (check if you maybe use some library, which already includes

String format using UWP and x:Bind

。_饼干妹妹 提交于 2019-12-21 08:15:07
问题 Does anyone know how to format a date when using x:Bind in a UWP Windows 10 app? I have a TextBlock that is bound (x:Bind) to a DateTime property on my ViewModel which is read from SQL. I want to format the output to "dd/MM/yyy HH:mm (ddd)". Is there a simple way of doing this? The default format is "dd/MM/yyy HH:mm:ss" which I presume is coming from a default. Could this be replaced maybe? Thanks. 回答1: Use a StringFormatConverter (check if you maybe use some library, which already includes

UWP Accessing Frame for page navigation through Usercontrol an Object?

坚强是说给别人听的谎言 提交于 2019-12-21 07:22:12
问题 I'm currently developing a UWP application that involves several Usercontrol objects inside of a Map ( using Windows.UI.Xaml.Navigation ). with these Usercontrol objects I sometimes require the user to be able to press a button in the objects and be taken to a new page, the only issue is I can't seem to access the page's Frame to be able to use the Frame.Navigate(typeof([page])); method. How would I go about this and/or are there any alternatives? I've been stuck on this most of the day!

UWP Accessing Frame for page navigation through Usercontrol an Object?

冷暖自知 提交于 2019-12-21 07:21:49
问题 I'm currently developing a UWP application that involves several Usercontrol objects inside of a Map ( using Windows.UI.Xaml.Navigation ). with these Usercontrol objects I sometimes require the user to be able to press a button in the objects and be taken to a new page, the only issue is I can't seem to access the page's Frame to be able to use the Frame.Navigate(typeof([page])); method. How would I go about this and/or are there any alternatives? I've been stuck on this most of the day!

Auto detect URL, phone number, email in TextBlock

回眸只為那壹抹淺笑 提交于 2019-12-21 06:28:12
问题 I would like to automatically highlight URL, Email and phone number in UWP. It is possible in Android but it seems this features has been forgotten by Microsoft. In my use case, I get the text from a web service, so I don't know the text format which is a user text input on the web platform. 回答1: The platform is not supporting this feature (yet). When I've to do the same thing, I've ended with my own solution which is to: create an attached property receiving the text to format use some regex

Universal Windows (UWP) Range Slider

跟風遠走 提交于 2019-12-21 05:40:53
问题 I want to create range slider in UWP . I didn't find any example. There are only single sliders but I want it like . Does anybody know how can i do it? Please help me. 回答1: To create a range slider in UWP, we can create a custom control or use UserControl. Here I use UserControl for example: Firstly, I add a UserControl named "MyRangeSlider" in my project. In the XAML: <UserControl x:Class="UWP.MyRangeSlider" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http:/

Name does not exist in the namespace

泪湿孤枕 提交于 2019-12-21 05:25:09
问题 I am working on a simple UWP project using data template binding in VS 2015. When ever I try to specify the type for the Datatemplate I get an error. XAML: <Page x:Name="RootPage" x:Class="Adaptive_News_Layout.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:Adaptive_News_Layout" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup