Why TextTrimming="CharacterEllipsis" doesn't work?
<StackPanel > <TextBlock TextTrimming="CharacterEllipsis" Text="{Binding RevitView}" ></TextBlock> <Button MinWidth="30" HorizontalAlignment="Right" >...</Button> …
how to respond to List.Clear()
hi, we trying to define canvas with itemssource , but the only problem it doesn't respond to list.clear(), public IList<object> ItemsSource { get { return (IList<object>)GetValue(ItemsSourceProperty); } …
Through the "System.Speech.DLL" Get voice pack problem.
Hello, everyone. I'm using the WPF programming tool on Win10, my job needs to install the multi-language voice packs for testing the Text-To-Speech on my current OS. So far, I have installed Japanese, Korean, French, German, Italian, and Portugal 6…
How to use multiple dictionaries in WPF for controls independently
Hi All. I use several dictionaries in my project. One dictionary is MaterialDesignInXAML. When I added this library to my project, it styled all the controls. I would like to use this library for RadioButton and TextBox only, but it did not affect…
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
minimize(automate) this binding boilerplate:
hi, is there a way to minimize(automate) this binding boilerplate: private static TextBlock NewTextBlock(TextBlockViewModel textBlockVM) { var textBlock = new TextBlock(); Binding dc = new Binding() { Source =…
Is UDP viable for trading Server and Clients?
I've experimented once on UDP (Unicast, Multicast and Broadcast) and undermined it always as I read a lot about its unreliability in data transmission. Today, I've read an article, UDP Delivers BUT I'm not sure whether it's suitable for this, my first…
Smooth Bezier Segment for UWP
If we look WPF implementation of Bezier cure you will find 3 functions (WPF mini-language) C for cubic Bezier (3 arguments) Q for QuadraticBezierSegment (2 arguments) and S for Smooth Bezier Segment (2 arguments). So, this path works fine which contains…
WPF DataBinding sets Property twice for Chinese Keyboard Layout
I have the following code C# code: using System.ComponentModel; using System.Windows; namespace WpfApp1 { public partial class MainWindow : Window, INotifyPropertyChanged { private string _textPropertyToBind; public string…
custom canvas with itemssource
hi, i'm trying to create custom canvas with bindable itemsource of type object, i did the following: public IList<object> Items { get; private set; } public IEnumerable ItemsSource { get { return Items; } …
Screen display is slow even after executing Form.ShowDialog method
Currently, I am conducting a continuous test to execute a SQL statement in an application created in C #. If the continuous test is performed for about 3 to 4 hours, it will take about 5 seconds to display the screen by executing the Form.ShowDialog…
SaveFileDialog does not handle longpath format
Targeting core 3.1 on windows 10 Setting a Microsoft.Win32.SaveFileDialog.InitialDirectory = "\?\C:\" results in the error: System.ArgumentException: Value does not fall within the expected range. at at…
Is it necessary to have two TCP Socket per client
As I was learning WPF and MVVM, I developed a small Trading Server and 2 type of Clients in WPF. In that application I'd 2 Scoket per client on both Client and Server side, one for Receive and one for Send byte[]. In some places I read that TCP Socket is…
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
SVG to DataTemplate not working which as PathGeometry
I have 3 Country Flags in SVG , I need to Convert SVG to DataTemplate. Example : France Flag , this is Working <DataTemplate x:Key="France"> <Grid HorizontalAlignment="Stretch"> <Path…
![](https://techprofile.blob.core.windows.net/images/QNL7mP5_BgAAAAAAAAAAAA.png?8DACC1)
How to debug in Visual Studio where there is a timespan feature specified
Hi I am writing a C# wpf app, and there are calls for timers in it and the timer has a timespan feature in it, for example. These timespans's are specified as TimeSpan.FromHours(1). How do I debug these lines to see if the method below it gets…
BluetoothLEDevice PairAsync intermittantly fails
Working on an application that connects to a bluetooth low energy device that requires an initial pairing before the device characteristics and services can be subscribed or read etc. Sometimes the pairing of the device fails, unfortunately, the result…
BLE 4.2 connection failing due to access denied
Hi, We are running into a connection issue on multiple windows 10 computers (regardless of the version) when attempting to connect (pairing/bonding/connecting) to a ble 4.2 device using our wpf application (the issue can also be reproduced with the…
ListBox with WrapPanel as ItemPanel does not scroll to top when contents are set
I have a ListBox with a WrapPanel as the ItemPanel. When the ItemsSource is set the ListBox does not go to the top. I have read lots of posts (none of which work) about all sorts of ways to do it. I try to use MVVM and none of the them use that. It…
WPF DefaultStyleKey vs DefaultStyleKeyProperty.OverrideMetadata
What is the difference between these static XXXXXXX() { DefaultStyleKeyProperty.OverrideMetadata(typeof(XXXXXXX), new System.Windows.FrameworkPropertyMetadata(typeof(XXXXXXX))); } and public XXXXXXX() { …
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
Click Once application fails to fully launch when certain other applications are running
Our click once application runs fine if everything else on the workstation is closed. When certain other applications, including Amazon Music and Visual Studio Code (when VS Code has updates available), are running the main window for our application…
C# Win Form Design - Form design bottom edge not coming properly in Laptop resolution
I am facing one more issue. bottom curve edge not coming properly in my laptop resolution. the same alignment will be working in desktop properly. but, when i am checking the form at my laptop then the bottom edge is not coming properly. when i…