uwp

Xamarin.Forms UWP - Print Webview with pagination support

一笑奈何 提交于 2019-12-11 07:44:06
问题 I'm working on Xamarin.Forms based project, trying to print the webview content with pagination. I've referred the following link already: How do I print WebView content in a Windows Store App? But unfortunately this way is not working with Xamarin.Forms because the way demonstrated in the above link is by filling the rectangle(windows shape) using webviewbrush (both the rectangle and webviewbrush are platform dependent controls to UWP). The problem is we can't use webviewbrush to draw

Build a Xamarin project via Roslyn and get the assembly

十年热恋 提交于 2019-12-11 07:38:58
问题 I need to build a Xamarin solution (the UWP project of the solution) from a console application (another solution). In windows or web applications all the referenced files are listed in the project`s file. Therefore, I am able to simply emit the project's compilation and get the assembly file. var solutionPath = "folder\solution name.sln"; var workspace = MSBuildWorkspace.Create(); var solution = await workspace.OpenSolutionAsync(solutionPath, CancellationToken); var project = solution

What class library to use to be reference on UWP and ASPNETCORE apps

╄→尐↘猪︶ㄣ 提交于 2019-12-11 07:34:08
问题 I would like to create a class library that can be used on my aspnetcore app and uwp app. Please correct me if I'm wrong, the way I understand the image below (first image) I can create a .net core class library and have it reference to uwp and aspnetcore. What I've done is I created, a .NET Core Class Library , Aspnet Core Web App , and UWP . I tried to reference .Net Core Class Library on my Aspnet Core Web App , no errors. Now, I tried to reference .Net Core Class Library on my UWP and it

XAML Custom Textbox Events and Properties not Updating in Real Time

本小妞迷上赌 提交于 2019-12-11 07:31:37
问题 After a creating and changing my custom Win 8.1/UWP TextBox control to inherit from TextBox and wiring up the TextChanged event, the Text property is not accurate when subscribing to the TextChanged event. Here's my control: [TemplatePart(Name = "PART_ctlTextBox", Type = typeof(TextBox))] public class CustomTextBox : Control { public CustomTextBox() { DefaultStyleKey = typeof(CustomTextBox); } protected override void OnApplyTemplate() { base.OnApplyTemplate(); var textBox = GetTemplateChild(

Uwp serial devices

大兔子大兔子 提交于 2019-12-11 07:31:08
问题 I'm creating a UWP APP to receive the data from waspmote board, I was used WindForm to develop it, it can work, but because UWP doesn't support using System.IO.Port so I use using Windows.Devices.SerialCommunication; I look through the papers, but I still have no idea how can I start, how can I convert the windform code to UWP code? the windform code as below public Form1() { InitializeComponent(); getAvailablePorts(); } void getAvailablePorts() { // Get a list of existing ports String[]

Cannot get Keyboard Accelerators to work…AT ALL

旧巷老猫 提交于 2019-12-11 07:29:19
问题 I've also posted this question to Microsoft's Documentation here. I am trying to implement both Access Keys and Keyboard Accelerators in a UWP app, which, as I understand it, is "good coding practice". Here is a snippet from MainPage.xaml where I try to implement the "open" shortcut key of "Ctrl+O" <MenuFlyoutItem Text="Open" AccessKey="O" Click="menuFileOpen"> <MenuFlyoutItem.KeyboardAccelerators> <KeyboardAccelerator Modifiers="Control" Key="O" Invoked="menuFileOpen"/> </MenuFlyoutItem

How to troubleshoot local Windows UWP (Cordova) networking issues

守給你的承諾、 提交于 2019-12-11 07:23:01
问题 I have a Windows 10 UWP application built using Ionic/Cordova, so my http requests originate from the embedded webview. I can run my application at home, or on a tablet connected via cell and the http requests all work. However, when I run this on any office machine (work machines), the requests other than to local host appear to be blocked. I initially thought this was the network, however using Wireshark, I can see the request if I just run them in the machine browser, but I can't see them

Create UWP package using cmake

ⅰ亾dé卋堺 提交于 2019-12-11 07:17:31
问题 I'm working on simple hello world application: // main.cpp #include <iostream> int main(int argc, char ** argv) { std::cout << "Hello world!" << std::endl; return 0; } // CMakeLists.txt cmake_minimum_required(VERSION 3.0.0) project(hello) add_executable(${PROJECT_NAME} main.cpp) I'm trying to build it using: cmake -G "Ninja" "-DCMAKE_SYSTEM_NAME=WindowsStore" "-DCMAKE_SYSTEM_VERSION=10.0" ninja And it seems to build, but I'd like to additionally generate UWP package (.appx) to be able to

MediaPlayerElement fullscreen button does not hide navigation bar

有些话、适合烂在心里 提交于 2019-12-11 07:11:57
问题 I added a MediaPlayerElement to my XAML as follow: <MediaPlayerElement x:Name="EmbeddedPlayer" AreTransportControlsEnabled="True" HorizontalAlignment="Stretch"> <MediaPlayerElement.TransportControls> <MediaTransportControls IsSkipBackwardButtonVisible="True" IsSkipBackwardEnabled="True" IsSkipForwardButtonVisible="True" IsSkipForwardEnabled="True"/> </MediaPlayerElement.TransportControls> </MediaPlayerElement> The problem is that the Fullscreen button provided by MediaTransportControls does

Minimise a CommandBar in UWP with on click event

久未见 提交于 2019-12-11 07:01:31
问题 I have a commandbar in my UWP application, and I want to hide the bar and only display a ellipsis button when a user click on the hide button. In additional, I would like the commandbar to be opened/shown when the application is being launched. This is what my command bar looks like, And I am trying to get something like this, when I click on the last button: Here is my code for the designer: <CommandBar IsSticky="True" Name="WebViewCommandBar" Height="52" Background="{StaticResource