Hannsen
Hannsen
CC#
Created by TBB#0342 on 11/29/2024 in #help
Custom Controls won't show in XAML Designer when referenced via .dll
Did you try, close VS, delete obj and bin directories in both projects. - Open CustomControl project, rebuild in Debug and Release, open WPF project, rebuild. - After rebuild, does the designer show something?
3 replies
CC#
Created by floribe2000 on 11/26/2024 in #help
SerialPort ParityReplace on Linux
Something like this. - e.EventType you could also find out if it is an RXParity issue.
21 replies
CC#
Created by floribe2000 on 11/26/2024 in #help
SerialPort ParityReplace on Linux
c#

internal class Program
{
static void Main(string[] args)
{
var sp = new SerialPort();

sp.DataReceived += Sp_DataReceived;
sp.ErrorReceived += Sp_ErrorReceived;
}

private static void Sp_ErrorReceived(object sender, SerialErrorReceivedEventArgs e)
{
SerialPort sp = (SerialPort)sender;
string indata = sp.ReadExisting();
Console.WriteLine("Error Data Received:");
Console.Write(indata);
}

private static void Sp_DataReceived(object sender, SerialDataReceivedEventArgs e)
{
SerialPort sp = (SerialPort)sender;
string indata = sp.ReadExisting();
Console.WriteLine("Data Received:");
Console.Write(indata);
}
}
c#

internal class Program
{
static void Main(string[] args)
{
var sp = new SerialPort();

sp.DataReceived += Sp_DataReceived;
sp.ErrorReceived += Sp_ErrorReceived;
}

private static void Sp_ErrorReceived(object sender, SerialErrorReceivedEventArgs e)
{
SerialPort sp = (SerialPort)sender;
string indata = sp.ReadExisting();
Console.WriteLine("Error Data Received:");
Console.Write(indata);
}

private static void Sp_DataReceived(object sender, SerialDataReceivedEventArgs e)
{
SerialPort sp = (SerialPort)sender;
string indata = sp.ReadExisting();
Console.WriteLine("Data Received:");
Console.Write(indata);
}
}
21 replies
CC#
Created by floribe2000 on 11/26/2024 in #help
SerialPort ParityReplace on Linux
I cannot test this, since i do not have serial port hardware, but if i were you, i would give it a shot. - Good luck
21 replies
CC#
Created by floribe2000 on 11/26/2024 in #help
SerialPort ParityReplace on Linux
Just an idea, but you might try using ErrorReceived event additianally to DataReceived. - Maybe you will be able to get your data there and handle it further.
21 replies
CC#
Created by floribe2000 on 11/26/2024 in #help
SerialPort ParityReplace on Linux
The issue of ParityReplace being ignored on serial ports in linux often stems from the way linux handles serial port configurations. Unlike windows, linux might not support certain parity setttings or might interpret them differently. Thic can lead to unexpected behavior when trying to use parity settings like ParityReplace.
21 replies
CC#
Created by floribe2000 on 11/26/2024 in #help
SerialPort ParityReplace on Linux
🫡
21 replies
CC#
Created by floribe2000 on 11/26/2024 in #help
SerialPort ParityReplace on Linux
No description
21 replies
CC#
Created by floribe2000 on 11/26/2024 in #help
SerialPort ParityReplace on Linux
Line 354
21 replies
CC#
Created by floribe2000 on 11/26/2024 in #help
SerialPort ParityReplace on Linux
21 replies
CC#
Created by floribe2000 on 11/26/2024 in #help
SerialPort ParityReplace on Linux
21 replies
CC#
Created by floribe2000 on 11/26/2024 in #help
SerialPort ParityReplace on Linux
Did you try setting ParityReplace to null?
21 replies
CC#
Created by Erich21 on 11/26/2024 in #help
Changing the visibility/animations of UI elements
If you post some code, than we can assist why it is not working as you expect
9 replies
CC#
Created by Erich21 on 11/26/2024 in #help
Changing the visibility/animations of UI elements
9 replies
CC#
Created by Erich21 on 11/26/2024 in #help
Changing the visibility/animations of UI elements
Inheriting MainWindow, wont give you the same instance which is rendered.
9 replies
CC#
Created by floribe2000 on 11/26/2024 in #help
SerialPort ParityReplace on Linux
So you want to change the parity, depending on the "data" (message) you are transmitting?
21 replies
CC#
Created by floribe2000 on 11/26/2024 in #help
SerialPort ParityReplace on Linux
like what are your /dev/ttyX settings?
21 replies
CC#
Created by floribe2000 on 11/26/2024 in #help
SerialPort ParityReplace on Linux
On linux, did you check the port settings itself?
21 replies
CC#
Created by floribe2000 on 11/26/2024 in #help
SerialPort ParityReplace on Linux
Hmm
21 replies