Find Jobs
Hire Freelancers

UWP VS2017 Raspberry Pi3 - Configuration of SerialPort and Beybinding to TextBox

$10-30 USD

已关闭
已发布将近 7 年前

$10-30 USD

货到付款
Attached is a project created in VS2017. It is a Windows Universal Platform project thats goal is to run on a Raspberry Pi3 The project got 2 problems * Serial port configuration * Keybinding to TextBox SerialPort During development I want to use virtual comports (se attached file) I configure the virtual comports to be a bridge. COM1 will talk to COM2 using a virtual null-modem. During testing I will send/receive from COM1 and my mockup will respond at COM2. ====> How do I configure the Comport OPEN(). I cant find the virtual port(s). They are visible in Device Manager and I am able to access then in C#.Net but not UWP. Keybinding The textbox will use input from a "keyboard emulating device" that sends a serialnumber and ends the string with Enter. ( 1234567890 + Enter) I have tried to use "code-behind" to catch the Enter-key but my solution will fire twice and its allowed to fire only once. ====> Create a more XAML solution This is a my best try.. But I did not work in UWP Here is an approach that to me seems quite straightforward, and easier that adding an AttachedBehaviour (which is also a valid solution). We use the default UpdateSourceTrigger (LostFocus for TextBox), and then add an InputBinding to the Enter Key, bound to a command. The xaml is as follows <TextBox Grid.Row="0" Text="{Binding Txt1}" Height="30" Width="150"> <[login to view URL]> <KeyBinding Gesture="Enter" Command="{Binding UpdateText1Command}" CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type TextBox}},Path=Text}" /> </[login to view URL]> </TextBox> Then the Command methods are Private Function CanExecuteUpdateText1(ByVal param As Object) As Boolean Return True End Function Private Sub ExecuteUpdateText1(ByVal param As Object) If TypeOf param Is String Then Txt1 = CType(param, String) End If End Sub And the TextBox is bound to the Property Public Property Txt1 As String Get Return _txt1 End Get Set(value As String) _txt1 = value OnPropertyChanged("Txt1") End Set End Property Source copied from [login to view URL]
项目 ID: 14446412

关于此项目

2提案
远程项目
活跃7 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
2威客以平均价$1,129 USD来参与此工作竞价
用户头像
Hello, Thanks for posting. I am a qualified and dedicated embedded developer. I create hardware and software for Raspberry. I should be able to help in both issues. I always value keeping good and timely communication. Availability : Full Day 24*7 hr and can start work immediately and right away.. Kind Regards Mahammad
$2,222 USD 在7天之内
5.0 (8条评论)
5.2
5.2
用户头像
Configuration of serial port key binding to text box i have experience in communicating pi and microcontroller(pic microchip)
$35 USD 在5天之内
0.0 (0条评论)
0.0
0.0

关于客户

SWEDEN的国旗
Västerås, Sweden
4.9
87
付款方式已验证
会员自3月 18, 2009起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。