Tag: win universal app

通用Windows库(UWP)获取截图的方式?

我想创建一个ScreenCaptureLib.dll,旨在为通用Windows构建。 我们已经使用Windows.Forms进行了以下操作: https : //github.com/ShareX/ShareX/tree/master/ShareX.ScreenCaptureLib 显然,没有一个Windows窗体代码不起作用,我想在正确的方向上一些指针开始。 我很感激你的帮助。 谢谢迈克尔

使内容对话框像Groove应用程序中的那样移动

我创建了一个ContentDialog来应用一个Style(我不能用一个Message Dialog和一个PopUp来应用),但是我遇到了问题,它不能移动或我无法关闭它就像我出现的Frame一样单击Groove应用程序中的“Connexion”按钮 请你有任何想法,我可以在ContentDialog样式中修改哪一部分,以使这个ContentDialog可以移动并关闭它像顶部的图像 我在一个通用应用程序上工作

智能卡读卡器插件(卡插入)事件

背景: 我正在创建一个Windows 10通用应用程序 ,它从智能卡中读取一些数据(插入智能卡读卡器)并且工作正常,但在所有情况下,用户都应该触发从卡读取数据的过程。 题: 如何处理UWP中的“卡插入事件”,以便每次插入卡后都能读取卡中的数据?

将System.Web参考添加到Windows 10 Universal App

我在Gitgub上下载一个项目基本上是一个控制台应用程序。 但我想将此C#控制台应用程序转换为通用Windows应用程序。 我想在Windows 10通用中使用HttpUtility.UrlEncode,但我在.NET中找不到System.Web(添加引用)如何将此程序集添加到我的项目中? Error: The “HttpUtility” Does not existin the current context. 我使用Visual Studio 2015 我尝试这个问题: 如何将System.Web引用添加到Windows窗体应用程序但是不适用于Universal 10应用程序。 提前致谢!

在Windows Phone通用应用程序中更改内容对话框按钮的样式

我在我的xaml中定义了这个内容对话框: 而我这样称呼它: private void AppBarButton_Click(object sender, RoutedEventArgs e) { MessageBox(); } private async void MessageBox() { ContentDialogResult LogoutDialog = await AlertMessage.ShowAsync(); if (LogoutDialog == ContentDialogResult.Primary) { this.Frame.Navigate(typeof(MainPage)); } else { // User pressed Cancel or the back arrow. // Terms of use were not accepted. } } 问题:我的应用程序是否具有我的应用程序中所有按钮的样式。 我想将相同的样式应用于该对话框的主要和次要按钮。 我无法弄清楚如何实现这一目标。 是否可以将样式应用于这些按钮?

WebRequest不包含Windows 10 Universal App的“GetResponse”定义

我在GitHub上下载一个控制台应用程序,工作正常。 但我想将此C#控制台应用程序转换为通用Windows 10应用程序。 Visual Studio上的错误 : Web Request does not contain a definition for… 这是代码: private AccessTokenInfo HttpPost(string accessUri, string requestDetails) { //Prepare OAuth request WebRequest webRequest = WebRequest.Create(accessUri); webRequest.ContentType = “application/x-www-form-urlencoded”; webRequest.Method = “POST”; byte[] bytes = Encoding.ASCII.GetBytes(requestDetails); webRequest.ContentLength = bytes.Length; using (Stream outputStream = webRequest.GetRequestStream()) { outputStream.Write(bytes, 0, bytes.Length); } using (WebResponse webResponse […]

如何在UWP MVVM中使用CalenderView

我想绑定选定的日历视图项并将其设置为DateTime变量。 我的CalenderView Xaml看起来像: 我在Datacontext类中有一个DateTime项: private DateTime _DueDate; public DateTime DueDate { get { return this._DueDate; } set { if (this._DueDate != value) { this._DueDate = value; base.PropertyOnChanged(“DueDate”); } } } 和DateTimeConverter: public class DateConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, string language) { DateTime date = ((DateTime)value); return date.Day + […]

需要在webview Win 10 UWP中获取鼠标事件

我正在创建一个win 10 UWP应用程序。 我在其中添加了一个webview,我需要右键单击并拖动webview元素的drop事件。 但现在它正在为浏览器拍摄事件。 我如何处理webview中的输入事件

UWP – 仅在Designer中应用的字体

我有一个由我的主要UWP应用程序(Imp.Dash)引用的类库(Imp.Dash.Cook)。 在所述类库的页面中,我有以下XAML: 在尝试更改字体时,只有第三行有任何影响。 字体确实已更改,但仅限于设计器中。 在运行时,我什么都没得到。 没有输出错误或类似错误。 有没有人有任何想法我做错了,或者我如何调试它? 字体是位于我的类库的Resources文件夹中的.ttf。 它设置为Content , Do not copy 。 即使设置为Copy Always ,后者也没有任何影响。 我也尝试将它放在主要项目中,在Fonts下。 我有一个类似的图像资源问题,但在这种情况下,它不是一个嵌入式资源。 (参见UWP – 在类库中加载图像 )

Windows 10 Universal App(UAP)中的FileNotFoundException

我开发并发布了Windows通用应用程序。 要跟踪exception和应用程序使用情况,我启用了Application Insights,我可以使用以下调用堆栈找到FileNotFoundException: at Mindapp!+0x6e58d1 at Mindapp!+0x6ee2a4 at Mindapp!+0x86bd63 — End of stack trace from previous location where exception was thrown — at Mindapp!+0x6e58d1 at Mindapp!+0x6ee2a4 at Mindapp!+0x86d250 — End of stack trace from previous location where exception was thrown — at Mindapp!+0x6e58d1 at Mindapp!+0x6ee2a4 at Mindapp!+0x880c5e — End of stack trace from previous location […]