23,980 questions with .NET-related tags

Sort by: Updated
1 answer

Screen.PrimaryScreen.WorkingArea is not giving full screen?

I am trying to make an Windows form app that will auto scale to full screen. The problem is that I do not want to make it full screen if it is less than 1680x1050. So I tried to use Screen.PrimaryScreen.WorkingArea.Width / Height to get the resolution. …

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-17T08:42:17.137+00:00
Sean Huang 1 Reputation point
commented 2020-06-24T12:18:51.097+00:00
Sean Huang 1 Reputation point
2 answers One of the answers was accepted by the question author.

wpf ,datagrid row has inner datagrid,select cell problem

One datagrid ,each row has one detail datagrid, i want to select cell outter datagrid and inner datagrid same time,but it's failed.when select cell in inner datagrid,the outer datagird cell selected will unselect,how to select cell outter datagrid and…

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-24T03:42:34.453+00:00
建军 刘 21 Reputation points
commented 2020-06-24T07:44:14.783+00:00
建军 刘 21 Reputation points
1 answer

wpf Viewport3d.GeometryModel3D.LinesCollec

hi. I want to add an ObservableCollection of Lines and ObservableCollection of arcsegment to Viewport3d. the goal is to draw arcs based on the Lines so whenever line.x/line.y updated it automatically updates the arcs, however my question is not…

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-23T07:56:26.983+00:00
essamce 621 Reputation points
answered 2020-06-23T13:01:09.38+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
2 answers One of the answers was accepted by the question author.

Flowlayoutpanel control in a child form can not be modified

when the father form has a flowlayoutpanel control, child form can not modify its any attribute though the modifiers of flowlayoutpanel is public. But other controls of father form like button can be modified in child form.

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-23T05:10:29.6+00:00
flavous lei 21 Reputation points
accepted 2020-06-23T08:07:21.993+00:00
flavous lei 21 Reputation points
2 answers One of the answers was accepted by the question author.

How to create a grid-line document in a WPF Application

Does anybody have a link to a WPF example application that creates a document page with grid lines? Please see below:

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-11T21:58:28.373+00:00
R Evans 211 Reputation points
accepted 2020-06-22T18:30:34.637+00:00
R Evans 211 Reputation points
2 answers One of the answers was accepted by the question author.

wpfCore3.1 binding mouse event to mvvm

is there a way to bind xaml control mouse event to mouse event handler in viewmodel? i'm using wpf core3.1 MS VS2019.

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-21T06:29:44.07+00:00
essamce 621 Reputation points
accepted 2020-06-22T08:45:39.383+00:00
essamce 621 Reputation points
2 answers

What is the correct MSAL package for a WPF core 3.1 desktop app?

I have a WPF desktop app built on the .NET Core 3.1 framework. I would like to add the ability to acquire a token and call Microsoft Graph API from this desktop app. Microsoft.Identity.Client does not list .NET Core 3.1 as a dependency. Is this 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,676 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,559 questions
asked 2020-06-20T15:36:44.697+00:00
Michael 76 Reputation points
answered 2020-06-22T06:08:48.9+00:00
DaisyTian-1203 11,616 Reputation points
1 answer One of the answers was accepted by the question author.

WPF samples - how to use the example projects included?

I downloaded the samples from GitHub but apart from getting a Form with some |Layout and Control details, I can notfind any way to try any of the examples. How to load/run any of the examples in the Solution? The only way I can figurte out is 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-20T19:19:59.417+00:00
Anonymous
commented 2020-06-21T11:40:14.937+00:00
Anonymous
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