23,992 questions with .NET-related tags

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

cannot set multiple base to custom control error

i'm trying to build a wpf custom control library, want to create some controls that inherited from wpf controls (textBox, label, ...) and i wanted them all to be inherted from a base class and wpf control, here is one of them: public class…

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,676 questions
asked 2020-06-13T11:36:08.453+00:00
essamce 621 Reputation points
accepted 2020-06-21T06:25:12.35+00:00
essamce 621 Reputation points
1 answer One of the answers was accepted by the question author.

drag the three endpoints of the two lines

I use the mouse to draw two lines, how to drag the three endpoints of the two lines,Similar to the effect below(it is a usercontrol,i want to line or path,not a usercontrol),I want to have two lines, and I can drag their common endpoint

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,676 questions
asked 2020-06-17T05:31:07.617+00:00
qwecskcnjff1 41 Reputation points
accepted 2020-06-21T05:18:52.353+00:00
qwecskcnjff1 41 Reputation points
2 answers One of the answers was accepted by the question author.

Add new Views and Viewmodels in Caliburn.Micro?

I would like to use Caliburn.Micro in my new MVVM projects. After reading the documentation, I understood that Caliburn.Micro takes care of the connection between views and view models on its own (if of course the naming convention is followed). For…

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,676 questions
asked 2020-06-08T19:25:09.04+00:00
perfect code 271 Reputation points
accepted 2020-06-20T17:57:43.953+00:00
perfect code 271 Reputation points
2 answers One of the answers was accepted by the question author.

WPF DataGridCheckBoxColumn Control question

Hello, I need modify DataGridCheckBoxColumn Control inside checkbox size, but i don't find a way to modify it, Who can tell me ? Thanks

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,676 questions
asked 2020-06-19T02:39:51.367+00:00
929Free 281 Reputation points
commented 2020-06-19T06:11:37.873+00:00
929Free 281 Reputation points
1 answer

BLE 4.2 connection dropping packets while using external dongles

Hi, Running into a packet drop issue when trying to stream data from a medical device to a hp desktop (WPF app) commonly used in hospitals and clinics. The application is using BluetoothLEDevice PairAsync to pair with the device and the device requires…

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,676 questions
asked 2020-06-16T19:34:19.027+00:00
EbbeK 1 Reputation point
answered 2020-06-19T03:16:08.407+00:00
MSFT-RobinChen 1 Reputation point
1 answer One of the answers was accepted by the question author.

WPF Treeview Binding

Hi Experts, I would like to populate WPF Treeview with Directory and subdirectories. For that I followed this https://social.msdn.microsoft.com/Forums/vstudio/en-US/bdc74177-0db3-4e9d-9a08-96406eb981a8/wpf-treeview-with-checkboxes?forum=wpf link. My…

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,676 questions
asked 2020-06-17T21:54:43.123+00:00
abhijeet khopade 21 Reputation points
accepted 2020-06-18T17:28:47.917+00:00
abhijeet khopade 21 Reputation points
1 answer

What is the correct package to create an HTTP client in a WPF Core3 desktop app?

I have a WPF desktop app using Microsoft.WnidowsDesktop.App.WPF and Microsoft.NETCore.App v3.1. I would like to add an HTTP client for simple GET/POST... What is the correct package to add an HTTP client so I can accomplish WPF-REST Web API…

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,676 questions
asked 2020-06-18T11:50:13.437+00:00
Michael 76 Reputation points
commented 2020-06-18T16:44:07.76+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
1 answer

How to speed up a WPF DataGrid bound to an ObservableCollection?

The application is WPF/MVVM. A DataGrid's ItemSource is bound to an ObservableCollection<LogItem> where LogItem is a plain class of 5 strings and one enumerated value, none of which support the INotifyPropertyChanged interface. The problem is that…

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,676 questions
asked 2020-06-17T15:26:34.737+00:00
Richard Haggard 6 Reputation points
answered 2020-06-18T06:01:23.957+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
2 answers One of the answers was accepted by the question author.

WPF: When is data binding applied?

Hallo, i stuck at a behaviour i can't explain nor find any help in the documentation or various forums. The following code is needed to explain my problem/ to ask my question. A simple WPF (VB.Net) app that has an combo box (BindingBox) that binds to…

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,676 questions
asked 2020-06-15T15:58:31.217+00:00
Michael 26 Reputation points
accepted 2020-06-16T14:05:56.59+00:00
Michael 26 Reputation points
1 answer

events in custom control in wpf

I've made this user control and it works well, I'm trying to covert it to a Custom Control, but I can't hook up my handler to those 3 events. any help will be appreciated. <Canvas x:Class="SMFU.UserControls.Public.MovableChildCanvas" …

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,676 questions
asked 2020-06-11T16:58:09.337+00:00
essamce 621 Reputation points
commented 2020-06-16T07:29:58.127+00:00
DaisyTian-1203 11,616 Reputation points
3 answers

Clarify INotifyCollectionChanged

I have a TreeView bound to an ObservableCollection with a ViewModel. The TreeView includes folder-like elements that will have child items. Most times opening the app we won't need to view those child items so I'm not filling them in when the app opens,…

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,676 questions
asked 2020-06-11T12:01:25.887+00:00
Ken Krugh 116 Reputation points
commented 2020-06-16T05:20:16.797+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
1 answer

Memory leak. Class with finalizer

Created a minimal reproducing application. Reproducing conditions: Visual Studio 2017 WPF application Launch the application under the debugger WPF window code (class with finalizer, very busy WPF main thread): code: using…

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,676 questions
asked 2020-06-15T10:00:47.693+00:00
Igor Buchelnikov 1 Reputation point
commented 2020-06-15T14:17:58.28+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
2 answers One of the answers was accepted by the question author.

WPF custom data grid with button

In WPF xaml, I would like to make a custom data grid with button in cell. I want to create button(Say "Add" button) in the last cell of each row as shown in below pic. While pressing "add" button some operation will happen…

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,676 questions
asked 2020-06-12T02:24:43.93+00:00
Arun Menon 21 Reputation points
accepted 2020-06-15T07:27:56.813+00:00
Arun Menon 21 Reputation points
6 answers One of the answers was accepted by the question author.

WPF BindingGroup Validation

I am using a StackPanel to host several TextBoxes that have validation rules attached. I also have a StackPanel.BindingGroup validation as follows: <StackPanel.BindingGroup> <BindingGroup Name="ValidateAllFields"…

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,676 questions
asked 2020-06-09T02:02:00.597+00:00
Allanjb 246 Reputation points
answered 2020-06-15T04:40:01.893+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
0 answers

Cross Origin Requests not working in Web Browser control - C# - WPF

Hi, I have a Web Browser control in my WPF application and its source is set to an URL that will load few icons and images from different domain than the Origin. All cross domain requests are not working. How can I enable cross domain requests in Web…

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,676 questions
asked 2020-06-10T20:35:50.527+00:00
Manigandasuresh S 1 Reputation point
commented 2020-06-15T02:23:17.03+00:00
DaisyTian-1203 11,616 Reputation points
1 answer

How to display 3 single channel array in wpf?

I have 3 IntPtr Pointers of Red, Green, and Blue channels. I need to display these pointers as an RGB image. I know the width and height of the image. If I convert it as a single pointer it takes processing cost. Here is my Conversion Code, public…

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,676 questions
asked 2020-06-12T10:31:41.967+00:00
Tamil Prakash S 1 Reputation point
answered 2020-06-14T15:41:43.49+00:00
Ken Tucker 5,846 Reputation points
1 answer

Custom Control edit template cause compilation failure in Visual Studio 2019 (version 16.7 Preview 2)

In Visual Studio 2019 version 16.7 Preview 2, while try to edit the template of my custom control using Edit Template option in designer which causes compilation failure due to empty properties fields generated. Please find the code genereate details. …

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,676 questions
asked 2020-06-11T03:03:40.413+00:00
Magesh Sankar 31 Reputation points
commented 2020-06-12T08:12:22.35+00:00
DaisyTian-1203 11,616 Reputation points
1 answer One of the answers was accepted by the question author.

TextBlock Right TextAligment Doesn't work inside a ScrollViewer

Hi, Im coding in XAML. Im trying to create a TextBlock inside a ScrollViewer with a Right Textaligment. but no matter what I put, when the text exceeds the width of the TextBlock, It always shows the text from the left to the right. Here is a piece…

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,676 questions
asked 2020-06-11T10:54:37.5+00:00
Miguel Cortés Rodríguez 21 Reputation points
commented 2020-06-12T07:35:07.767+00:00
Miguel Cortés Rodríguez 21 Reputation points
1 answer

WPF, XAML, Combobox: Cannot find source for binding with reference

I have some comboboxes that use the same possible input values. Hence I tried to create a style and then set the style on my combo boxes. However, I am getting the error System.Windows.Data Error: 4 : Cannot find source for binding with reference…

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,676 questions
asked 2020-06-12T06:23:47.837+00:00
hfaun 1 Reputation point
answered 2020-06-12T06:51:32.247+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
0 answers

ColumnSpan in Grid is not working properly when MaxWidth is 0 in VisualStudio 2019 (Version - 16.4.5)

In my project created in VisualStudio 2019 with version 16.4.5, I have some columndefintions in grid and also uses columnspanning. But when I set maxwidth as 0 for some definition, the columndefinitions are not spanned to full width properly. Code…

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,676 questions
asked 2020-06-11T11:30:16.9+00:00
Shobika Palani 36 Reputation points
commented 2020-06-12T03:57:24.873+00:00
DaisyTian-1203 11,616 Reputation points