25,028 questions with .NET-related tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

Why TextTrimming="CharacterEllipsis" doesn't work?

<StackPanel > <TextBlock TextTrimming="CharacterEllipsis" Text="{Binding RevitView}" ></TextBlock> <Button MinWidth="30" HorizontalAlignment="Right" >...</Button> …

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
asked 2020-11-13T06:44:39.833+00:00
aa aa 21 Reputation points
accepted 2020-11-17T01:09:52.713+00:00
aa aa 21 Reputation points
1 answer

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); } …

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
asked 2020-11-15T14:42:00.013+00:00
essamce 621 Reputation points
commented 2020-11-16T16:15:27.05+00:00
essamce 621 Reputation points
1 answer One of the answers was accepted by the question author.

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…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
asked 2020-11-12T01:06:49.447+00:00
驰 陈 21 Reputation points
accepted 2020-11-16T07:07:02.683+00:00
驰 陈 21 Reputation points
1 answer

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…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
asked 2020-11-15T00:48:51.05+00:00
zleug 61 Reputation points
answered 2020-11-16T02:17:32.46+00:00
DaisyTian-1203 11,621 Reputation points
2 answers One of the answers was accepted by the question author.

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 =…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
asked 2020-11-13T11:58:18.147+00:00
essamce 621 Reputation points
accepted 2020-11-14T18:14:47.79+00:00
essamce 621 Reputation points
2 answers One of the answers was accepted by the question author.

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…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
asked 2020-11-12T10:59:49.017+00:00
Emon Haque 3,176 Reputation points
accepted 2020-11-14T12:43:10.88+00:00
Emon Haque 3,176 Reputation points
1 answer

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…

Universal Windows Platform (UWP)
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
asked 2020-11-12T20:00:55.097+00:00
Agha Khan 166 Reputation points
commented 2020-11-13T19:30:34.097+00:00
Agha Khan 166 Reputation points
2 answers

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…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
asked 2020-11-06T12:37:42.277+00:00
Roman Ivasyk 6 Reputation points
commented 2020-11-13T14:25:35.893+00:00
Emon Haque 3,176 Reputation points
1 answer One of the answers was accepted by the question author.

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; } …

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
asked 2020-11-12T08:16:28.23+00:00
essamce 621 Reputation points
accepted 2020-11-13T11:56:02.417+00:00
essamce 621 Reputation points
2 answers

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…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,873 questions
asked 2020-11-10T00:47:32.48+00:00
taro 1 Reputation point
answered 2020-11-13T06:22:58.137+00:00
Daniel Zhang-MSFT 9,621 Reputation points
0 answers

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…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
asked 2020-11-11T15:06:30.77+00:00
Duncan 1 Reputation point
commented 2020-11-13T06:21:58.15+00:00
Tim Roberts 81 Reputation points
1 answer

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…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
asked 2020-11-10T13:27:46.463+00:00
Emon Haque 3,176 Reputation points
commented 2020-11-13T02:01:14.327+00:00
DaisyTian-1203 11,621 Reputation points
3 answers One of the answers was accepted by the question author.

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…

Universal Windows Platform (UWP)
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
asked 2020-10-12T11:42:50.87+00:00
Indudhar Gowda 426 Reputation points
answered 2020-11-12T20:54:36.12+00:00
Agha Khan 166 Reputation points
2 answers One of the answers was accepted by the question author.

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…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
967 questions
asked 2020-10-09T07:06:29.727+00:00
Kalpana 286 Reputation points
accepted 2020-11-12T17:38:58.53+00:00
Kalpana 286 Reputation points
3 answers

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…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
asked 2020-06-16T19:40:04.663+00:00
EbbeK 1 Reputation point
commented 2020-11-12T16:35:24.427+00:00
EbbeK 1 Reputation point
0 answers

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…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
asked 2020-10-30T22:07:11.64+00:00
EbbeK 1 Reputation point
commented 2020-11-12T16:31:05.71+00:00
EbbeK 1 Reputation point
1 answer

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…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
asked 2020-11-09T22:21:24.193+00:00
Lloyd Sheen 1,476 Reputation points
commented 2020-11-12T12:21:44.763+00:00
Lloyd Sheen 1,476 Reputation points
0 answers

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() { …

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
asked 2020-11-11T14:38:52.33+00:00
Alvaro Rivoir 6 Reputation points
commented 2020-11-12T03:05:14.817+00:00
DaisyTian-1203 11,621 Reputation points
0 answers

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…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,873 questions
asked 2020-11-06T21:44:20.547+00:00
Questys Randy 1 Reputation point
commented 2020-11-12T02:59:45.73+00:00
Tianyu Sun-MSFT 29,446 Reputation points Microsoft Vendor
1 answer

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…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,873 questions
asked 2020-11-10T15:10:04.59+00:00
BeUnique 2,112 Reputation points
answered 2020-11-11T05:54:21.767+00:00
Daniel Zhang-MSFT 9,621 Reputation points