23,953 questions with .NET-related tags

Sort by: Updated
1 answer

WPF DataGrid column header mouse events

I have following events with subscriptions in the class, derived from DataGrid: private void SubscribeHeaders(DependencyObject sender = null) { sender = sender ?? this; for (int childIndex = 0; childIndex <…

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,675 questions
asked 2020-06-29T06:23:36.72+00:00
Arli Chokoev 1 Reputation point
answered 2020-06-29T08:41:13.04+00:00
DaisyTian-1203 11,616 Reputation points
1 answer

wpf custom control property of type class

hi i'm trying to create a custom control with a public property Boundary of type MovingBoundary(as below), but when i'm trying to use my custom control in a xaml i cant't initialize Boundary property. <custom:MyCustomControl …

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,675 questions
asked 2020-06-25T12:42:24.607+00:00
essamce 621 Reputation points
commented 2020-06-29T07:40:09.767+00:00
DaisyTian-1203 11,616 Reputation points
1 answer One of the answers was accepted by the question author.

WPF ViewModel DataContext between UserControl Windows

Hi, have anyone a small sample for me like this: Master Window Sub Window In the Sub Window is a UserControl Window How can i send data via datacontext from the Master Window to the UserControl Window? I can set the first data easy from…

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,675 questions
asked 2020-06-15T09:26:46.217+00:00
Bernd Riemke 41 Reputation points
commented 2020-06-28T15:16:19.727+00:00
Bernd Riemke 41 Reputation points
0 answers

How know WPF DataGrid ItemsSource bind finish

Datagrid control ItemsSource Attribute bind List, but , I donot know When is the data loaded ?

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,675 questions
asked 2020-06-24T02:50:54.953+00:00
929Free 281 Reputation points
commented 2020-06-28T01:13:06.557+00:00
929Free 281 Reputation points
1 answer One of the answers was accepted by the question author.

class property access in parent only

hi, i'm new to c#, i want solve this problem : public class Location { public int X { get; set; } public int Y { get; set; } public Location() : this(0, 0) { } public Location(int x, int y) { X =…

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,675 questions
asked 2020-06-26T20:25:16.93+00:00
essamce 621 Reputation points
commented 2020-06-27T08:47:49.08+00:00
Daniele 1,996 Reputation points
0 answers

MVVM & Microcontrollers

I am creating an application that can control a micro controller. So the GUI allows me to say things like Define if a particular pin is an input pin or output pin. So there is a combo box with [In, Out] values. Integer (or other) text fields 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,675 questions
asked 2020-06-25T20:55:23.393+00:00
hfaun 1 Reputation point
commented 2020-06-26T06:23:29.263+00:00
DaisyTian-1203 11,616 Reputation points
1 answer

Undrstanding the MVVM pattern

Hello everyone. I want to get some clarification about MVVM a possibly help me with a WPF app I have this class, witch represent a User public int Id { get; set; } private string _Name; 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,675 questions
asked 2020-06-25T00:59:06.183+00:00
Eduardo Gomez 3,416 Reputation points
commented 2020-06-26T05:58:03.82+00:00
DaisyTian-1203 11,616 Reputation points
0 answers

Blank space when system's scale changed

When I dock simple WPF window to right or left side (scale set to 125% or higher) and then return the system scale to original value 100% an ugly blank space appears at the bottom of the window as you can see here: The WPF application is newly…

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,675 questions
asked 2020-04-03T07:29:53.833+00:00
Lukáš Koten 1 Reputation point
commented 2020-06-25T07:07:06.463+00:00
Lukáš Koten 1 Reputation point
1 answer

How to monitor the current status of the printer In WPF?

When I print a document, I have no paper, this time, I want to get finished or paperless status? 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,675 questions
asked 2020-06-23T04:47:36.647+00:00
929Free 281 Reputation points
commented 2020-06-25T06:50:44.34+00:00
DaisyTian-1203 11,616 Reputation points
7 answers

DataGridTemplateComboboxColumn in WPF

Hi all: I'm new in WPF and I'm having a hard time trying to make the Combobox works in a DataGridTemplateColumn. I don't want to use DatagridComboboxColumn because the cells on this column look like a text column, the user has to click on it so 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,675 questions
asked 2020-06-09T21:34:01.697+00:00
Carlos Lino 6 Reputation points
answered 2020-06-25T06:45:31.043+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
0 answers

WebBrowser -> acces to css when mouse hover of html id style -> get, set, click inside wpf + c#

Hello i need a help, how can i decide the problem with it. I wan to get value from the html elements my id and style while the mouse is moving hover the element --> get, set and do auto click by the elements... so.. First of all i have loaded…

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,675 questions
asked 2020-06-23T17:33:54.017+00:00
Absurt Reputation 1 Reputation point
commented 2020-06-25T03:35:54.493+00:00
DaisyTian-1203 11,616 Reputation points
3 answers

Asp.net Core 2.1 web api deployed successfully but not getting response from my web api url

Can you please guide me why i am not getting response from following link https://otgapi.azurewebsites.net/api/values This url shows https://otgapi.azurewebsites.net/ api deployed successfully.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,180 questions
asked 2020-06-17T10:47:10.39+00:00
A b d u l Wahab 1 Reputation point
answered 2020-06-25T03:27:41.12+00:00
Monalla-MSFT 11,641 Reputation points
3 answers

A question about fades in XAML

Hello all I have a question about XAML. I looked at a lot of examples these last few days trying to figure something out without any success... What I am trying to achieve is this: I created a style for some buttons I will be using. I would like those…

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,675 questions
asked 2020-06-23T20:39:32.417+00:00
Richard Hille 1 Reputation point
answered 2020-06-25T00:55:04.747+00:00
gekka 6,671 Reputation points MVP
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,675 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,675 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,675 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,675 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,675 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,675 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,675 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,543 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