23,949 questions with .NET-related tags

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

Can Windows.Devices.WiFi.WiFiAdapter API be used in a WPF desktop app

From my WPF desktop application, I need to list available WiFi access points, and monitor a WiFi connection. Can this API provide the services I need?

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-07-28T13:13:03.72+00:00
Jeff Nygren 121 Reputation points
commented 2020-08-06T19:00:31.3+00:00
Jeff Nygren 121 Reputation points
2 answers One of the answers was accepted by the question author.

Trigger, Datatrigger - what's the difference?

Hi , my goal is select the first row inside the Datagrid. Works well with MoveCurrentToFirst. Only if the control get the focus is it blue. Is there a way to control it from the code? And if the focus is the DataGrid, the default…

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-08-06T05:55:32.053+00:00
Markus Freitag 3,786 Reputation points
accepted 2020-08-06T13:45:16.57+00:00
Markus Freitag 3,786 Reputation points
1 answer

how make a program to manage the PC

Hello. I want to make a program to manage the PC. Like screensavers, active directories. Q1. Only authorized users can use the PC. The lock screen is displayed and the lock is unlocked online with the specified ID and PW. When the usage time…

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,675 questions
asked 2020-07-31T01:25:55.047+00:00
Victor Jo 1 Reputation point
commented 2020-08-06T07:11:13.747+00:00
Roy Li - MSFT 32,051 Reputation points Microsoft Vendor
4 answers One of the answers was accepted by the question author.

C#, WPF Desktop, set focus to a textbox after mouse button click

Hello, Is there a way to set the focus on a TextBox control after a mouse click on a button? Right now, I'm taking the long way around. Button click. Delete Textbox Set the focus because length is 0, but works well.

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-08-05T06:28:42.077+00:00
Markus Freitag 3,786 Reputation points
accepted 2020-08-06T06:45:47.167+00:00
Markus Freitag 3,786 Reputation points
2 answers One of the answers was accepted by the question author.

C#, WPF Desktop DataGrid select first row.

Hello, <DataGrid Grid.Column="0" ItemsSource="{Binding View1}" IsReadOnly="True" AutoGenerateColumns="False" FontSize="18"…

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-08-04T13:14:59.92+00:00
Markus Freitag 3,786 Reputation points
accepted 2020-08-06T05:51:38.427+00:00
Markus Freitag 3,786 Reputation points
2 answers One of the answers was accepted by the question author.

Fade In/Out Window Transition In WPF

Hi, I am trying to create a transition between two windows, as one fades in the other fades out, in WPF. Below is my attempt to do this but have become stuck as I don't know what parameter I need to pass to the Begin() method in my PlayTransition()…

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-08-04T03:27:33.077+00:00
Code Adze 21 Reputation points
accepted 2020-08-06T03:21:05.743+00:00
Code Adze 21 Reputation points
2 answers One of the answers was accepted by the question author.

WPF C# Desktop App - Multilingualism, opportunities

Hello, Which possibilities do I have to deliver an application multilingual? Switching during runtime. Read out when the app starts With language identifier? Textfile? Thanks for good tips with examples. Greetings Markus

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-08-04T05:47:26.847+00:00
Markus Freitag 3,786 Reputation points
accepted 2020-08-05T18:32:22.35+00:00
Markus Freitag 3,786 Reputation points
2 answers

Find Window Form App design view on Visual Studio

Hi, Months ago, I downloaded a sample project from github, then I make a few changes to the UI of a WFA in that project (add some buttons, labels, ...). The problem is: I'm trying to re open the WFA design view to make some modification to that UI, but…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,831 questions
asked 2020-08-04T04:18:07.057+00:00
SalimMuvak 11 Reputation points
commented 2020-08-05T01:47:53.103+00:00
Charles He-MSFT 96 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

How do I install multiple clickonce(online only) apps from one clickOnce app? Preferably silently because i don't want a prompt for each installing app

My company has several ClickOnce(online only) apps that are actively in use and my job is to make an app that installs the necessary apps from one location(my app). All of which run from our local intranet server. I have found a way to silently install…

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
Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,907 questions
asked 2020-07-28T02:28:40.113+00:00
Enkhbold Munkhbold 136 Reputation points
accepted 2020-08-04T03:13:04.243+00:00
Enkhbold Munkhbold 136 Reputation points
1 answer

How can i display selected cell on datagrid, when modal is displayed

Hello, We have a Datagrid, which display a Modal window for each cell(a cell is product o x features filled inside modal). We have a requirement that when modal is displayed, the datagrid should highlit corresponding cell. The problem which we have 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,675 questions
asked 2020-08-03T08:51:36.157+00:00
Lawniczak, Kamil 1 Reputation point
answered 2020-08-04T03:03:45.35+00:00
DaisyTian-1203 11,616 Reputation points
0 answers

Rendering issues when embedding a Win32 window inside WPF

Hello, We have a pretty big WPF application, and the task in hand is to embed a Win32 window (with C++ (QT) content in it) onto one of the WPF pages. Since this is a classic Win32/WPF interoperation, the natural way of implementing this is to use a…

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-07-29T18:26:23.46+00:00
CB 9 1 Reputation point
commented 2020-08-03T20:51:29.507+00:00
CB 9 1 Reputation point
0 answers

Are there alternatives to MSIX packages for .NETCore 3.1 Desktop WPF Apps hosting EFCore

I have created a .NET Core 3.1 desktop WPF app that hosts EntityFrameworkCore. The application runs in debug mode without error. My application requires the following Nuget packages: microsoft.entityframeworkcore,…

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-07-31T20:11:44.53+00:00
Michael 76 Reputation points
commented 2020-08-03T15:45:08.88+00:00
Michael 76 Reputation points
2 answers

Internal mouse handling in WPF app

Hello, I am building a game in wpf for a school project and I have noticed that the UI thread clogs up when I move the mouse over any window within the application (DispatcherTimer ticks are less frequent, which casues my game to lag and tear). 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,675 questions
asked 2020-04-24T16:39:44.287+00:00
Gabor Fazekas 1 Reputation point
answered 2020-08-03T08:40:35.16+00:00
Mouad Cherkaoui 6 Reputation points
1 answer One of the answers was accepted by the question author.

HD Camera Desktop Application on Windows 10

Hi, I've tested some older applications and camera library with HD camera on Windows 10. But it does not work properly, it has a delay on preview. However Camera application on same Windows 10 machine works normal without delay. I suppose the…

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,675 questions
asked 2020-07-31T13:14:27.087+00:00
iz111 86 Reputation points
accepted 2020-08-03T06:51:03.857+00:00
iz111 86 Reputation points
2 answers One of the answers was accepted by the question author.

WPF - C# Desktop App - XAML Window from left, top corner

Hello, The goal is to make it easy to place controls. I do something wrong, but what? As soon as I select a control, move it, the margins go into the code. Then nothing can be understood. What is the procedure for this simple…

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-07-30T10:07:04.28+00:00
Markus Freitag 3,786 Reputation points
commented 2020-08-02T14:39:36.587+00:00
Markus Freitag 3,786 Reputation points
2 answers One of the answers was accepted by the question author.

Looking for a good way to check which button was pressed with the command pattern.

Hello, I'm looking for a good way to check which button was pressed with the command pattern. Maybe you can make s sample with more buttons OK Cancel Yes No Wait public partial class MessageBoxTest : Window { 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,675 questions
asked 2020-07-31T06:57:23.35+00:00
Markus Freitag 3,786 Reputation points
commented 2020-08-01T14:56:44.097+00:00
Andy ONeill 361 Reputation points
0 answers

How can I handle two receive handlers correctly?

Hello, I have a control application that receives information from two handlers WPF - Desktop App ----- Handler1 ------- Handler2 If I'm in handler 1, handler 2 will have to wait and reverse. Is a locker object…

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-07-30T13:20:12.913+00:00
Markus Freitag 3,786 Reputation points
commented 2020-07-31T06:01:54.163+00:00
Markus Freitag 3,786 Reputation points
6 answers One of the answers was accepted by the question author.

WPF - C# Desktop App - Is there a way to call a Windows form from C# WPF?

Hello, Is there a way to call a Windows form from C#WPF? The idea is to create a separate message box. Or a WPF message box. With best regards Markus

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-07-28T14:35:17.05+00:00
Markus Freitag 3,786 Reputation points
accepted 2020-07-30T18:52:48.013+00:00
Markus Freitag 3,786 Reputation points
2 answers

WPF getting started

I am new to WPF, i have a requirement at client to do some WPF. Can someone please advise how do I get started in WPF ? I have knowledge on c#. Please provide some links or videos that may help. Thank you in advance

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-16T14:49:19.95+00:00
Rock Hitman 46 Reputation points
commented 2020-07-30T12:58:36.457+00:00
Mouad Cherkaoui 6 Reputation points
3 answers One of the answers was accepted by the question author.

WPF - C# Desktop App - good way for layout, xaml

Hello, sometimes everything is moved, sometimes inexplicably. Is there a short instruction somewhere, when to take what and how. TextBlock, Stackpanel. I created this dialog, all at once there were rows and columns in it, then the layout was…

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-07-29T13:34:27.607+00:00
Markus Freitag 3,786 Reputation points
commented 2020-07-30T11:48:35.777+00:00
Markus Freitag 3,786 Reputation points