uwp

How to make isTextSearchEnabled property work in case of ComboBox with icons in the beginning of text?

牧云@^-^@ 提交于 2021-01-29 11:11:49
问题 In a ComboBox, we can jump to an item by typing its first few letters. This is when IsTextSearchEnabled property is set, which by default is true. I have a custom ComboBox with images in the beginning, followed by a short text. icon1 + Violet icon2 + Red icon3 + Blue If I type "r", I expect to navigate to the Red item in the dropdown. However, because of an icon in the beginning, the IsTextSearchEnabled property does not behave as expected. How can I make this work? For example, in MyDropdown

Lottie UWP support

笑着哭i 提交于 2021-01-29 11:04:55
问题 I was trying around with Lottie for Xamarin.Forms on iOS and UWP and now I am totally confused. Because my UWP App doesn't show the animations, i searched a little and found out, that UWP is not supported by Lottie. But because the Nuget is referencable from within my UWP App, I looked into the description of that Nuget and the Lottie Team wrote, that it is. So what is now correct? And if UWP IS supported, are there additional steps needed to do? 回答1: That appears to be a "typo" in the nuget

TCPListener and StreamSocket

本秂侑毒 提交于 2021-01-29 10:32:53
问题 I have an odd problem. I'm trying to get a TCP connection going from my local PC to a remote hololens. On PC, I use the standard C# APIs (TCPClient, TCPListener) and on the Hololens I'm forced to use the UWP stuff (StreamSocket, StreamSocketListener). I have tested the following configurations: StreamSocket (local PC) <-> StreamSocketListener (Hololens): Working StreamSocketListener (local PC) <-> StreamSocket (Hololens): Working TCPClient (local PC) <-> StreamSocketListener (Hololens):

Passing command line arguments to WPF Core 3.0 sideloaded application

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-29 10:04:21
问题 I have a WPF app that runs on Core 3.0. I published it via Windows Application Packaging Project. Because it's WPF app, I needed to add this to appxmanifest: <Extensions> <uap5:Extension Category="windows.appExecutionAlias" Executable="MyApp.exe" EntryPoint="MyApp"> <uap5:AppExecutionAlias> <uap5:ExecutionAlias Alias="MyApp.exe" /> </uap5:AppExecutionAlias> </uap5:Extension> </Extensions> Then I published the WPF app as sideloaded and it works just fine when I start it from the Windows Start

Experience/Examples using Nordic nRF52840 (BLE) with C#?

ⅰ亾dé卋堺 提交于 2021-01-29 09:18:42
问题 Does anyone have experience using the Nordic NRF52840 with a C# app to act as a receiver? I'm trying to communicate with an Onset InTemp thermometer and although I've had quite a bit of success with the native Windows 10 BLE, I'm having some problems. See: C#, BLE. Why does GetGattServicesAsync hang forever? Is there a work around such as turning off/on BLE? for details. Nordic advertises that they only have C++, Python and Node.js libraries. See https://devzone.nordicsemi.com/f/nordic-q-a

Why is the form / page in my UWP app truncated at run time (doesn't reflect design time size)?

ε祈祈猫儿з 提交于 2021-01-29 08:29:16
问题 At design time in my UWP app, I've left enough room for everything I want (six buttons across the top and a TextBlock which will ultimately contain more text): Note too, the textBlocks at the bottom of the page. At runtime, the top TextBlock is terribly truncated, and all of the TextBlocks at the bottom of the form/page don't display at all, presumably for the same reason: If this is working as designed (by Microsoft, that is, not by me), what do I need to do to fall in line with the accepted

Drawing image using Blur effects in UWP is not properly set size for the image

风格不统一 提交于 2021-01-29 08:20:51
问题 I want to blur the image using slider. For this, I have used Win2D Blur effects and draw the image in CanvasControl and added the canvas over the actual image. Download sample here Steps. 1. Added CanvasControl in button click. It will add a child to grid over the actual element 2. Change Slider to apply the blur 3. Issue: Image stretched and it's size too large and look like cropped. Not in the given size (500, 400) [XAML] <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="7*"/>

How to get a certain UI control from two classes

喜欢而已 提交于 2021-01-29 07:21:09
问题 I'm developing a UWP application with two window pages on two separate screens. It's include: Mainpage.xaml Mainpage.xaml.cs Page2.xaml Page2.xaml.cs My scenario: get the mouse position(X) while moving on the secondary screen (Page2). write it in the text block on the first screen (MainPage), Changing at the same time. In MainPage.xaml <Page x:Class="LineDraw.MainPage" xmlns:local="using:LineDraw" ... .. <Grid> <TextBlock Name="textblock" Text="N/A" HorizontalAlignment="Stretch"

How do I make an Xbox Game Bar Widget Transparent while Game Bar is visible?

这一生的挚爱 提交于 2021-01-29 07:13:35
问题 Prior to version 5.420.10222.0 of the Xbox Game Bar, I was able to make my Widget transparent with the Game Bar visible by setting the Widget Page Background to Background={ThemeResource SystemControlTransparentBrush} . After this update, the widget is only transparent AFTER I hide the Game Bar. The Widget Transparency Sliders under Open Game Bar > Settings > Personalization do nothing to the transparency of all widgets until Game Bar is hidden once again. I tried this on the three QA/Test

SKSharp not loading Bitmap Xamarin Forms

蹲街弑〆低调 提交于 2021-01-29 07:07:19
问题 I'm trying to load "png's" into a ListView in a XamarinForms app using Android and UWP projects. Here is my xaml of the ListView. <ListView x:Name="TemplateListView" ItemsSource="{Binding TemplateData}"> <ListView.ItemTemplate> <DataTemplate> <StackLayout Orientation="Vertical"> <Image Margin="20,0,0,0" Source="{Binding ImageData}" Aspect="AspectFit" HeightRequest="120"></Image> <Label Text="{Binding Title}" FontSize="16" /> </StackLayout> </DataTemplate> </ListView.ItemTemplate> </ListView>