uwp

set focus to a textBox in uwp [duplicate]

笑着哭i 提交于 2019-12-06 04:16:10
This question already has answers here : Uwp navigation example and focusing on control (2 answers) Closed 2 years ago . I have a Universal Windows Platform project that has a textBox element. I'd like to set the focus to it when a Radio Button is clicked. In the Radio Button click event, I can say: txtBoxID.IsEnabled = true; txtBoxID.Text = ""; But how do I set the focus? I saw some answers saying to use: FocusManager.SetFocusedElement( but my FocusManager class doesn't have that method. edit: Solved, thanks. Just needed to know what argument to pass to SetFocus. The other fellow's question

Xamarin : Segmented Control for windows uwp

倾然丶 夕夏残阳落幕 提交于 2019-12-06 03:11:24
How can I make a custom renderer for Segmented Control in windows UWP. I followed this link to custom render the segmented control in IOS and android. But I couldn't find anything for windows UWP. Can anyone provide any resource in this or is there any alternate way of doing this similar to segmented control in windows UWP. Himanshu Dwivedi I found the Solution myself. I recently found a nuget package FreshEssentials . It has the implementation of segmented button group. Follow this github link to find the implementation. It is easy to use. There is a Xamarin Forms cross platform library now

How to specify parameters for the executable file in a StartupTask

為{幸葍}努か 提交于 2019-12-06 03:07:00
When desktop applications set to run on startup, they usually start minimized to system tray. The common approach to implement this behavior is an special parameter for the executable when adding a shortcut to the Startup folder or registry: MyApp.exe /startminimized I need the same thing in a converted desktop app. Thanks to the StartupTask , I'm able to run the executable of the app on startup: <desktop:Extension Category="windows.startupTask" Executable="MyApp.exe" EntryPoint="Windows.FullTrustApplication"> <desktop:StartupTask TaskId="MyStartupTask" Enabled="true" DisplayName="Some

Cannot connect to StreamSocketListener

断了今生、忘了曾经 提交于 2019-12-06 02:59:52
I'm trying to connect to a StreamSocketListener in my Windows 10 app. This is working if the client socket is inside the same app. But if I try to connect from another application (e.g. Putty) it doesn't work. After a few seconds putty says "Network Error: Connection Refused". Here is my sample code: public sealed partial class MainPage : Page { private StreamSocketListener listener; public MainPage() { this.InitializeComponent(); listener = new StreamSocketListener(); listener.ConnectionReceived += Listener_ConnectionReceived; listener.BindServiceNameAsync("12345").AsTask().Wait(); } private

Irritating blank space between Title Bar and Tabs in Xamarin.Forms UWP project

余生长醉 提交于 2019-12-06 02:43:38
I'm practically new to Xamarin.Forms and I'm developing a rather simple cross-platform application. The app displays good enough in Android, but in UWP there is a stupid blank space. The project consists of a TabbedPage with 4 NavigationPages inside it, in order to push and pop pages inside them. After a little digging into UWP platform specifics, I was able to change the style of my tabs. I've been looking 3 days now for a solution, and it's driving me crazy. The only solution that I have found so far (with the help of Live Visual Tree from VS 2015), is to change the Visibility property to

Automatic updates are not available for the configured target platform min version

杀马特。学长 韩版系。学妹 提交于 2019-12-06 02:31:56
I tried create package for UWP platform (.appxbundle) and it seems now we finally have update for Visual Studio 2017 that creates .appinstaller file for you. But I face with some problem around min target version. When I try to create package via Store -> Create and it tells me this dialog: I can't enable this checkbox but I set the minimum target version at 16299 as tells us article from Help me choose the version link: Thank you for any help in advance! This is a new feature of the Windows 10 April 2018 Update (Build 17134) , so install the Windows 10 April 1803 SDK , set Min/Target Build to

How to find error in 'The program .. has exited with code -2147483645 (0x80000003).'

杀马特。学长 韩版系。学妹 提交于 2019-12-06 02:30:33
I have an uwp project testing on Win 10 iot core with raspberry pi 3. I do remote debugging on device. After a while the application crashes and only i can see in debug is that error.'The program .. has exited with code -2147483645 (0x80000003).' how can i see more meaningful things about this. The debug is stopping after that. Edit The output in vs 2015 no more message showing.Only that error. My project is about ble devices. I am making some read and write operations with using ConcurrentDictionary from different threads. But all of those operations in try catch block. I cannot be sure the

How to see (approximate) memory usage in an UWP App while it's running

拥有回忆 提交于 2019-12-06 02:20:35
问题 According to this article on Diagnosing memory issues with the new Memory Usage Tool in Visual Studio: 1. Memory caps on Phone devices : In particular for Phone, there are specific memory limits enforced on an application based on the size of the memory in the device. Allocating more than the specified limit will cause an OutOfMemoryException and will result in app termination. All well and good, and in Visual Studio you can use the Diagnostics tool to see memory usage during development. Is

Xamarin.Forms UWP - How to hide or change color of Picker / ComboBox dropdown arrow

こ雲淡風輕ζ 提交于 2019-12-06 01:53:44
I'm working on a Xamarin.Forms project for UWP right now, and I'm using a custom renderer for Pickers. I'm actually overlaying the Picker on top of a label and icon so that when the user clicks the label/icon, it opens the picker. In order to accomplish this, I'm basically setting everything on the picker to transparent - the border, text, and background. The picker still functions just fine, and all picker elements are invisible, except the picker arrow is still visible. How do I affect the color of the picker arrow (in order to make it transparent), or just get rid of it altogether? Getting

C# XAML : UI not update after change an instance of ObservableCollection

老子叫甜甜 提交于 2019-12-06 01:51:52
问题 I am fairly new to C# and try to develop Windows 10 UWP app as a hobby project. Part of MainBrowser.XAML <GridView x:Name="browserPane" ItemsSource="{x:Bind fileInCurrentFolderList,Mode=OneWay}" SelectionChanged="browserPane_SelectionChanged" Margin="0,48,0,0"> <GridView.ItemTemplate> <DataTemplate x:DataType="classes:Item"> <StackPanel Margin="10"> <Image Height="268" Width="200" Source="{x:Bind Thumbnail}" x:Phase="1" Stretch="UniformToFill"></Image> <TextBlock Width="200" Text="{x:Bind