随笔分类 -  UWP

UWP 专栏
摘要:你应该覆盖Button样式 <Page.Resources> <Style TargetType="Button" x:Key="CustomButtonStyle"> <Setter Property="Background" Value="{ThemeResource SystemControl 阅读全文
posted @ 2021-07-14 18:32 MaxBruce 阅读(259) 评论(0) 推荐(0)
摘要:有时候需要获得一个元素,相对窗口的坐标,在修改他的位置可以使用。 那么 UWP 如何获得元素坐标? 我提供了一个方法,可以获得元素的坐标。 首先需要获得元素,如果没有获得元素,那么如何得到他的坐标? 假如 xaml 是这样,而我需要获得 MainTextBlock 相对窗口的坐标 <Grid Bac 阅读全文
posted @ 2021-07-13 22:14 MaxBruce 阅读(107) 评论(0) 推荐(0)
摘要:无论是装微软的什么应用,只要报这个错误,下载这个证书: http://download.microsoft.com/download/2/4/8/248D8A62-FCCD-475C-85E7-6ED59520FC0F/MicrosoftRootCertificateAuthority2011.ce 阅读全文
posted @ 2021-05-18 11:28 MaxBruce 阅读(3015) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/manupstairs/p/14582794.html 阅读全文
posted @ 2021-04-05 10:09 MaxBruce 阅读(38) 评论(0) 推荐(0)
摘要:上一篇《2020年的UWP(2)——In Process App Service》中我们了解了UWP和Desktop Extension可以通过AppService进行数据交互。本篇我们就来梳理在不同场景,UWP和Desktop Extension可能存在的交互方式。 对Desktop Extens 阅读全文
posted @ 2021-02-20 15:17 MaxBruce 阅读(276) 评论(0) 推荐(0)
摘要:在《迁移桌面程序到MS Store(8)——通过APPX下载Win32Component》中我们讨论了通过APPX来下载Service部分的安装包。但是纯UWP的客户端并不能自动运行下载的exe或者msi文件。本篇将着手解决这个问题。假设我们有如下结构的application,蓝色APPX中包含UW 阅读全文
posted @ 2021-02-20 14:38 MaxBruce 阅读(102) 评论(0) 推荐(0)
摘要:尽管目前 UWP-RT 库中还没有自带操作Sqlite数据库的API,不过,真要使用的话也不难,因为通过 Nuget ,我们其实可以获取很多支持 Sqlite 操作的第三方组件,当然了,组件虽多,但不是个个都好用,有的会发生这样那样的错误。目前找到一个比较不错的,而且支持 LINQ 操作。 方法/步 阅读全文
posted @ 2021-02-09 14:54 MaxBruce 阅读(254) 评论(0) 推荐(0)
摘要:创建一个UWP项目 然后创建一个通用C++运行时项目 右键点击C++项目,添加一个C++类 头文件.h #pragma once namespace Test{ public ref class MyMath sealed { public: int add(int a, int b); };} 源 阅读全文
posted @ 2021-01-22 13:40 MaxBruce 阅读(213) 评论(0) 推荐(0)
摘要:关于UWP的历史,其起源是Microsoft在Windows 8中引入的Metro apps。(后来又被称作Modern apps, Windows apps, Universal Windows Apps等)无论是从目的还是从效果上看,这一类应用模型都与iOS/Android比较相似,是为了更有利 阅读全文
posted @ 2021-01-20 20:44 MaxBruce 阅读(487) 评论(0) 推荐(0)
摘要:最早的时候App Service被定义为一种后台服务,类似于极简版的Windows Service。App Service作为Background Task在宿主UWP APP中运行,向其他UWP APP提供服务,可用于UWP APP间通讯及交换数据。 早期的App Service应用场景较为单一, 阅读全文
posted @ 2021-01-16 18:18 MaxBruce 阅读(139) 评论(0) 推荐(0)
摘要:xml 代码 <Page x:Class="ContentControlWithTemplateSelector.TestPage1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http:// 阅读全文
posted @ 2021-01-10 23:53 MaxBruce 阅读(107) 评论(0) 推荐(0)
摘要:主页面 <Page x:Class="CheckMemoryLeak.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w 阅读全文
posted @ 2021-01-10 23:21 MaxBruce 阅读(581) 评论(0) 推荐(0)
摘要:xml code <Page x:Class="AdaptiveLayout.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.c 阅读全文
posted @ 2021-01-10 22:44 MaxBruce 阅读(57) 评论(0) 推荐(0)
摘要:【UWP开发】自定义锁屏&桌面壁纸 mtobeiyf关注 2015.11.01 00:16:55字数 394阅读 1,249 调用通用的API来设置桌面壁纸,可以实现很多有趣的功能。在Windows通用平台中,可以使Windows.System.UserProfile命名空间下的类UserProfi 阅读全文
posted @ 2021-01-10 19:56 MaxBruce 阅读(120) 评论(0) 推荐(0)
摘要:xml code <Page x:Class="UWPDemo.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winf 阅读全文
posted @ 2021-01-06 23:44 MaxBruce 阅读(374) 评论(0) 推荐(0)
摘要:private void initalAlarmHanle() { string cancelAlarm = "CancelAlarmEvent"; ConnectionManager.AddHandler(cancelAlarm, async (v) => { string clockId = " 阅读全文
posted @ 2021-01-03 16:36 MaxBruce 阅读(88) 评论(0) 推荐(0)
摘要:xml code <UserControl x:Class="WinTest.HPControl.ReminderTimer" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://sche 阅读全文
posted @ 2021-01-03 15:58 MaxBruce 阅读(127) 评论(0) 推荐(0)
摘要:xml code <Page x:Class="MyApp.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/ 阅读全文
posted @ 2021-01-02 23:36 MaxBruce 阅读(87) 评论(0) 推荐(0)
摘要:Xml code <Page x:Class="MyApp.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/ 阅读全文
posted @ 2021-01-02 21:50 MaxBruce 阅读(145) 评论(0) 推荐(0)
摘要:反射指程序可以访问、检测和修改它本身状态或行为的一种能力。 程序集包含模块,而模块包含类型,类型又包含成员。反射则提供了封装程序集、模块和类型的对象。 您可以使用反射动态地创建类型的实例,将类型绑定到现有对象,或从现有对象中获取类型。然后,可以调用类型的方法或访问其字段和属性。 优缺点 优点: ·  阅读全文
posted @ 2021-01-02 19:44 MaxBruce 阅读(193) 评论(0) 推荐(0)