24,170 questions with .NET-related tags

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

C# WPF Access from ViewModel to MainWindow

Hello, I have this. public class ViewModel : INotifyPropertyChanged { The goal is to get access from ViewModel to MainWindow. So I can change the color and so one. public partial class MainWindow : Window { public MainWindow() …

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,685 questions
asked 2020-07-16T12:48:30.113+00:00
Markus Freitag 3,786 Reputation points
accepted 2020-07-18T14:04:10.063+00:00
Markus Freitag 3,786 Reputation points
1 answer One of the answers was accepted by the question author.

How I can call a Init() function from my ViewModel?

Hello, How I can call a Init() function from my ViewModel? <Grid DataContext="{StaticResource vm}"> What is different with StaticResource and without? I need without static, then the list works not. public partial…

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,685 questions
asked 2020-07-14T10:13:10.147+00:00
Markus Freitag 3,786 Reputation points
accepted 2020-07-18T13:59:57.497+00:00
Markus Freitag 3,786 Reputation points
0 answers

How I can insert the Window Close Event in my ViewModel?

Hello, How I can insert the Close Event in my ViewModel? How I can access for all classes for my own Logger? public partial class MainWindow : Window { //public Logger Log; public MainWindow() { …

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,685 questions
asked 2020-07-15T12:41:55.56+00:00
Markus Freitag 3,786 Reputation points
commented 2020-07-17T07:57:37.653+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
1 answer

Convert Wpf form to Pdf report

Dear Sirs: We have a WPF application which display a complex form for a medical data record. User can also click a button to convert the form into the Pdf format for further reading. The current implementation is a two steps conversion which is to 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,685 questions
asked 2020-06-15T02:45:49.347+00:00
Jeff Wei 6 Reputation points
commented 2020-07-17T07:17:26.33+00:00
Jeff 老魏 1 Reputation point
1 answer

C# WPF ViewModel change background color for textbox

<TextBox Name="txtSlot" Text="{Binding Path=GebindeSlot, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Height="33" Margin="22,376,183,232" Grid.Column="3" /> Hello, How can I…

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,685 questions
asked 2020-07-16T09:50:49.357+00:00
Markus Freitag 3,786 Reputation points
answered 2020-07-17T03:45:28.89+00:00
DaisyTian-1203 11,616 Reputation points
2 answers One of the answers was accepted by the question author.

How to customize the appearance of TextBox to underline?

How to customize the appearance of TextBox to underline?

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,685 questions
asked 2020-07-04T07:41:02.6+00:00
qwecskcnjff1 41 Reputation points
accepted 2020-07-17T00:00:10.873+00:00
qwecskcnjff1 41 Reputation points
0 answers

Own ViewModel - Threads - Dispatcher

Hello, I use my own ViewModel with properties that display the data via binding. If the properties are set by a thread (Socket Client). Can this lead to problems? Would I have to use Dispatchers, if so, how do I do it correctly? Thanks for response. …

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,685 questions
asked 2020-07-14T18:54:38.987+00:00
Markus Freitag 3,786 Reputation points
commented 2020-07-16T06:05:55.387+00:00
DaisyTian-1203 11,616 Reputation points
0 answers

Adorner in textbox

I have created an adornerlayer over wpf textbox. This code block will return the bounds of the text in textbox, i have written this block in onrender method of a adorner class. Rect startPosition =…

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,685 questions
asked 2020-07-13T10:03:03.173+00:00
Naveen kumar 1 Reputation point
commented 2020-07-15T17:06:53.2+00:00
Naveen kumar 1 Reputation point
1 answer

binding for the text control - WPF - C#

Hello, How I can make a binding for the text control? I use as DataContext ViewModel. public class ViewModel : INotifyPropertyChanged { private CollectionViewSource cvs1 = new CollectionViewSource(); private…

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,685 questions
asked 2020-07-13T13:57:48.877+00:00
Markus Freitag 3,786 Reputation points
commented 2020-07-15T02:47:51.507+00:00
DaisyTian-1203 11,616 Reputation points
0 answers

WPF Window fliker issue

Dear friends, Please let us know how to resolve. WPF Window fliker issue , when switch one window to another Window with C# code. Thanks Asif

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,685 questions
asked 2020-07-14T05:18:41.743+00:00
Asif Mehdi 6 Reputation points
commented 2020-07-14T12:25:56.893+00:00
Asif Mehdi 6 Reputation points
1 answer One of the answers was accepted by the question author.

How to print PDF with WPF ?

I don't find WPF example. Who can help 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,685 questions
asked 2020-06-22T07:40:40.21+00:00
929Free 281 Reputation points
commented 2020-07-14T05:21:25.62+00:00
Asif Mehdi 6 Reputation points
0 answers

how to application control gpio hardware by the gpio driver (WDF like windows sample)

how to application open gpio driver (WDF like windows sample) for control hardware gpio? 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,685 questions
asked 2020-07-13T06:12:38.047+00:00
SeeSun 1 Reputation point
commented 2020-07-13T07:09:50.507+00:00
DaisyTian-1203 11,616 Reputation points
2 answers One of the answers was accepted by the question author.

SeriLog WPF

Hi, why ist the date not written? Why green wavy line? I need a logger for whole application, global Logger. Did I make it correct? How I can start the console logger? How I can start the console logger only in DEBUG mode? …

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,685 questions
asked 2020-07-12T16:55:23.937+00:00
Markus Freitag 3,786 Reputation points
answered 2020-07-13T07:05:57.13+00:00
Markus Freitag 3,786 Reputation points
0 answers

How to set the mask for 64 core 128 thread CPU( about Process.ProcessorAffinity )

Source https://learn.microsoft.com/zh-cn/dotnet/api/system.diagnostics.process.processoraffinity?view=netframework-4.7.2#System_Diagnostics_Process_ProcessorAffinity Could you help me ?How to set the mask for 64 core 128 thread CPU( about…

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,685 questions
asked 2020-07-10T09:28:39.937+00:00
Ma Linru (马 林茹) 1 Reputation point
commented 2020-07-13T03:46:02.28+00:00
DaisyTian-1203 11,616 Reputation points
11 answers

WPF Application master detail

Hello together, I want to add a order number, then add a material number with quantity. Master, Detail with C# OrderNumber = ……… Fill the list OrderNumbers On right site I need a MaterialList Input: Material = …….. Quantity = …… …

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,685 questions
asked 2020-07-09T06:33:45.65+00:00
Markus Freitag 3,786 Reputation points
commented 2020-07-12T17:32:07.787+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
2 answers One of the answers was accepted by the question author.

Understanding SignedXml.LoadXml (system.Security.Cryptography.Xml)

Hi, I'm using digital signature as a subscription License on my program and am trying to read a part of the XML file to check if my program will work or not. I dug around MSDN and found this for an explanation:…

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,685 questions
asked 2020-07-03T05:15:49.653+00:00
Enkhbold Munkhbold 136 Reputation points
accepted 2020-07-10T05:53:18.46+00:00
Enkhbold Munkhbold 136 Reputation points
1 answer

Unknown Publisher in Set Up project in WPF

I am using Microsoft Visual Studio Installer Projects to create a set up project for my WPF application using .NetCore in Visual Studio 2019. How can I change the publisher from unknown to known when installing the application?

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,685 questions
asked 2020-07-08T18:17:24.817+00:00
Natalie Al Massry 1 Reputation point
answered 2020-07-09T10:37:34.01+00:00
Sabrina Cosolo 126 Reputation points
1 answer

WPF Problem Resources Generator

Severity Code Description Project File Line Suppression State Error The "ResourcesGenerator" task failed unexpectedly. System.ArgumentException: Illegal characters in path. 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,685 questions
asked 2020-07-08T02:04:10.087+00:00
Marc Andrei B. Regulacion 1 Reputation point
answered 2020-07-08T07:45:28.077+00:00
Sabrina Cosolo 126 Reputation points
0 answers

How to Fix WPF Resources Generator PRoblem

Severity Code Description Project File Line Suppression State Error The "ResourcesGenerator" task failed unexpectedly. System.ArgumentException: Illegal characters in path. 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,685 questions
asked 2020-07-08T02:20:42.107+00:00
Marc Andrei B. Regulacion 1 Reputation point
commented 2020-07-08T06:37:21.3+00:00
DaisyTian-1203 11,616 Reputation points
1 answer One of the answers was accepted by the question author.

WPF Button textblock

I need to create two textblocks in the button control, but, I can't. Who can teach me? I need c# code. Thanks! My code: Button btn_Click = new Button(); btn_Click.Name = "Btn_1"; btn_Click.Height = 100;

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,685 questions
asked 2020-07-08T02:33:46.717+00:00
929Free 281 Reputation points
commented 2020-07-08T03:58:10.2+00:00
929Free 281 Reputation points