uwp

How to convert HTML to RTF in UWP

允我心安 提交于 2020-02-08 02:33:28
问题 I want to convert HTML to RichTextBlock in UWP. I found some answers in stackoverflow tried the code in following link link But when I try to bind html property in richtextblock controls it gives error saying The name "Properties" does not exist in the namespace "using XAMLHtml" I included following code to convert HTML to RTF in XAMLHtml.cs file class XAMLHtml { public class HtmlProperties : DependencyObject { public static readonly DependencyProperty HtmlProperty = DependencyProperty

SwipeItem XAML Binding ignored

落爺英雄遲暮 提交于 2020-02-07 03:19:16
问题 I am having trouble getting any binding to work for a SwipeItem within a RadListView (which is similar to a standard ListView ). In particular, I am trying to bind to the Command property; however, I have attempted to bind to other properties, e.g., Text , but to no avail. <telerikDataControls:RadListView ItemsSource ="{Binding Users, Mode=OneWay}"> <telerikDataControls:RadListView.ItemTemplate> <DataTemplate> <SwipeControl> <SwipeControl.RightItems> <SwipeItems> <SwipeItem Text="Delete"

UWP XAML add data binding outside datatemplate

丶灬走出姿态 提交于 2020-02-07 02:36:23
问题 I'm trying to add button to this datatemplate but I cannot access the ICommand EditTripClick Command from the ViewModel. So I am wondering is it possible to access it although I am in a datatemplate? Example code of what I want to do <CommandBar OverflowButtonVisibility="Auto"> <AppBarButton Label="Add trip" Icon="Add" Command="{x:Bind ViewModel.NewTripClickCommand}"/> <AppBarButton Label="Refresh" Icon="Refresh" Command="{x:Bind ViewModel.RefreshClickCommand}"/> </CommandBar> <controls

Cannot find a Resource with the Name/Key TopCornerRadiusFilterConverter in uwp

守給你的承諾、 提交于 2020-02-04 22:56:24
问题 After installing WinUI into UWP application.I am getting ' Cannot find a Resource with the Name/Key TopCornerRadiusFilterConverter ' error Sample code: xmlns:controls="using:Microsoft.UI.Xaml.Controls" controls:DropDownButton Content="test"></controls:DropDownButton> Application version: 回答1: Cannot find a Resource with the Name/Key TopCornerRadiusFilterConverter in uwp After install the WinUI nuget package, it will display note window said: Thanks for installing the WinUI NuGet package! Don

How to stop Control-I from inserting a tab in a UWP TextBox at CoreWindow scope?

女生的网名这么多〃 提交于 2020-02-04 03:58:28
问题 Strange behavior (to me) when I have a TextBox in a UWP app. Create a Universal, Blank App UWP app in Windows 10. Add a TextBox to the default grid with this code: <TextBox Text="There's not much spam in it" Name="textBox" /> Build and run the application. Click inside of the TextBox Type Control-I. A tab is inserted. What causes this behavior? I'm trying to set up window level shortcuts in a Windows 10 application by hooking up a handler to Window.Current.CoreWindow.KeyDown , but I think

Reference to type 'Component' claims it is defined in 'System'

≡放荡痞女 提交于 2020-02-01 05:35:06
问题 Trying to get some WMI objects in a UWP application. Running VS2015 on .net 4.6. I'm getting errors for the ForEach and method calls stating "Reference to type 'Component' claims it is defined in 'System'" with error CS7069. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Management; namespace SystemInfo { class wmiObject { static osDetails Program() { ManagementObjectCollection osDetailsCollection = getWMIObject

Install UWP without developer-mode and sideloading

心不动则不痛 提交于 2020-01-30 12:37:08
问题 In the win10 UWP with non-store, install app should open developer-mode or side-loading mode. However, My company have high security level. I can't change any setting for target notebooks. Specifically, these notebooks even not "for developers" in update&security. My job is create an auto wifi-selector app with UWP for company. So, this app will not upload to Microsoft store. Has any way to install UWP app to hundreds of notebooks with not open developer-mode or side-loading mode. 回答1:

UWP resources not found

心已入冬 提交于 2020-01-30 11:52:27
问题 I have an UWP application which is working fine on various machines but on one particular machine, it is crashing silently. When I debugged the installed app through visual studio I figured out that it is not getting the resources on the XAML file e.g {ThemeResource ComboBoxDropdownContentMargin} {Binding TemplateSettings.DropDownContentMinWidth, RelativeSource={RelativeSource Mode=TemplatedParent}} The Output window is showing the following exception Exception thrown at 0x751641E8

Install an appx or appxbundle in a Windows Phone 10?

早过忘川 提交于 2020-01-30 08:27:05
问题 I'm developing an UWP app which is running without any troubles when it's being debugged using VS2015 but when it's installed using an appx or appxbundle. I've read many packaging and installation guides and it doesn't seem I'm leaving steps out (I just need to deploy the app in a device for testing purposes only), but this behavior makes me wonder if maybe I am... I'm not sure if I've let enough information but I really don't know what else to explain :( Could anyone tell me what should I do

TextBox with only numbers

纵饮孤独 提交于 2020-01-30 06:27:06
问题 I need to create a TextBox with only numbers but I couldn't do. I have tried to put : InputScope = "Numbers" but this only work on Mobile. Also I have tried on TextChanging this: private void textBox1_TextChanged(object sender, EventArgs e) { if (System.Text.RegularExpressions.Regex.IsMatch(textBox1.Text, "[^0-9]")) { textBox1.Text = textBox1.Text.Remove(textBox1.Text.Length - 1); } } 回答1: You can either prevent any non-numeric input whatsoever, or just filter out digits in the text.