Skip to main content

Questions tagged [wpf]

WPF is a graphical subsystem for rendering user interfaces in Windows-based applications.

Filter by
Sorted by
Tagged with
4 votes
1 answer
104 views

I'm working on a WPF application which has many user interactions which start with opening a non model window, allowing some interaction with the window and the rest of the application (think ...
LOul's user avatar
  • 41
2 votes
2 answers
302 views

I’m working on a WPF MVVM application that has grown beyond just one or two User Controls. I now have multiple ViewModels that need to react to each other’s actions (e.g., selecting a customer in one ...
Sam's user avatar
  • 29
-3 votes
1 answer
232 views

I need to create a WPF application that gives me the possibility to connect to other computers in the same network. I'm looking into Windows Remote Desktop Services, but it seems like it doesn't have ...
Agostino's user avatar
1 vote
4 answers
891 views

I am an inexperienced developer fresh out of college. I was handed a Windows Forms Application to work on. The application previously relied on system time. They wanted me to make it so that we could ...
mpAppProg's user avatar
2 votes
2 answers
4k views

I'm trying to implement the MVVM-pattern in a new WPF-application. I'm using the MVVM Community Toolkit to reduce boilerplate code that comes with the pattern. In my application, I'd like to have a ...
Sam's user avatar
  • 65
0 votes
0 answers
171 views

I'm very new to DI, and must admit, am having a hard time understanding to what extent it should be used in an application. Even in a basic project, you can have hundreds of classes that have ...
wforl's user avatar
  • 19
0 votes
1 answer
340 views

Often I want to open a new window from within some view. I see opening a window as view logic. So I don't want code in my viewmodel that creates/opens/changes Windows or anything else that interacts ...
user2190492's user avatar
0 votes
1 answer
372 views

The main application loads plugins, list them and when user selects one it is initialized and displayed. Each plugin is a complex class library which contains several views/viewmodels/repositories/etc....
James0n's user avatar
0 votes
0 answers
689 views

I've got experience with WPF, but I have always been creating standard UI's. I want to build a drawing application for electrical wiring diagrams (single-wire diagrams). Example of the kind of ...
user2190492's user avatar
0 votes
1 answer
2k views

I know there are already questions about file structure in MVVM but I haven't found the pros and cons for the following two structures. What would be better for a large-scale project, and why choose ...
Tiran's user avatar
  • 3
2 votes
1 answer
335 views

We have a scenario that is in a VERY tightly controlled industrial environment. This is all C# on Windows. We gather data from different types of sources - sensors monitoring environmental data, ...
whopkinscom's user avatar
0 votes
1 answer
864 views

I am using a networking library I created which contains a Client class. I have a GUI which will display all these clients in a ListView with columns, such as one containing their online status. The ...
lol's user avatar
  • 113
1 vote
1 answer
2k views

I'm currently reading "Clean Code" by Robert Martin (which I should have read years ago), and it's given me a bit of a wakeup call, especially regarding keeping methods and classes small, ...
Andrew Stephens's user avatar
-2 votes
1 answer
407 views

I work on WPF applications used in testing hardware. I need to make my code base more testable and re-usable. I believe DI would help, but I'm not quite sure where to start. I've done my best with the ...
Dink McDinkleman's user avatar
1 vote
0 answers
2k views

Often I want to open a new window from within some view. I see opening a window as view logic. So I don't want code in my viewmodel that creates/opens/changes windows or anything else that interacts ...
user2190492's user avatar
1 vote
0 answers
136 views

I'm trying to implement the Command Processor pattern using MVVM for WPF. The Command Processor pattern that I'm roughly following is the one described in the book Pattern-Oriented Software ...
redcurry's user avatar
  • 133
2 votes
1 answer
378 views

I was wondering what is the best approach for a Data visualisation application for WPF and MVVM The key points are: The data is loaded, or needs just a little preparation such as pulling out ...
Piotr Golacki's user avatar
2 votes
1 answer
572 views

Imagine a program that designs plates with geometric cutouts. You start with a rectangular plate. A plate can have one or more rectangular depressions carved out of it. Each of these can have one or ...
Eric's user avatar
  • 121
1 vote
2 answers
850 views

We are working on a .NET desktop application written in C# and WPF, that communicates with a REST API server. The software has a layered design and consists of multiple projects. One project for the ...
user2190492's user avatar
3 votes
4 answers
2k views

I've got a Window, which gets a viewmodel instance injected into its constructor. The window sets its DataContext to that viewmodel. The viewmodel contains a command to "submit" the window ...
user2190492's user avatar
0 votes
1 answer
178 views

In WPF when Datagrid's CanUserDeleteRows property is set to true, then conveniently I don't need to implement deletion of elements from an underlying data structure. But it does mean that deletion ...
Piotr Golacki's user avatar
-3 votes
1 answer
1k views

I have multiple WPF applications running different programs some of them are interconnected so one might have to start another at some stage. I need a way to communicate and share large amounts of ...
Ay Ay Ron's user avatar
1 vote
2 answers
1k views

I am developing an engineering application (WPF, C#) that consists of a collection of other programs that perform specific engineering tasks. I guess you can think of it like Microsoft Office, however ...
porters's user avatar
  • 21
-2 votes
1 answer
250 views

I have a WPF MVVM application, the WPF is the UI frontend and I have another project in the same solution that does DB access, I do this by starting a Task from the frontend that executes the backend ...
user14092802's user avatar
1 vote
1 answer
856 views

I am creating a small data-driven desktop application using .NET 5 with WPF, ReactiveUI, Dynamic Data, and EF Core 5. The app uses a local SQLite database to store all persisted state, and relies ...
wired_in's user avatar
  • 332
0 votes
0 answers
86 views

I am trying to make a project which will help me to implement feature based licensing in future projects. The projects in this solution are C#/WPF Projects. So I have a Helper-Project with a class &...
Updater's user avatar
  • 101
1 vote
2 answers
365 views

I'm working on an Editor-GUI (C#, WPF, Windows-Desktop) for a quite complex domain model. The domain model consists of many different node types mainly coupled in a hierarchie. Also it is possible to ...
Michael Rall's user avatar
1 vote
0 answers
159 views

So basically I guess I know the role of MVVM, but correct me if I am wrong View: Basically it whats the users sees + it takes user interaction Also View: It shouldn't know what the model is ... but it ...
Said Amir's user avatar
1 vote
1 answer
810 views

I work with C# and WPF and not using MVVM approach. One of the important part of applications is communication among Windows Pages and UserControls. In MVVM they do it behind the scenes and let you ...
Hammas's user avatar
  • 111
-1 votes
1 answer
1k views

I may not being fully understanding MVVM or how MVVMCross works, but my understanding of views is that they are components of a window rather than the window itself. When you start up MVVMCross in C# ...
Jack Dane's user avatar
  • 101
2 votes
2 answers
1k views

There is a parent window that is the basis of the program, and there are several sub windows under it. Editor is one of the sub window and I'm making it. The code is as follows: // This is Code-Behind ...
wddfrwd's user avatar
  • 71
1 vote
2 answers
3k views

Currently, I'm making an Editor with MVVM pattern in WPF. Editor simply take an instance of a specific type as a reference and modifies it. The following code is the expected usage when editor ...
wddfrwd's user avatar
  • 71
0 votes
0 answers
81 views

We have a classic wpf line of business software at work. Put in a lot of data, save it, calculate some things, put out some useful data etc. Visually we have a dockable pane setup, like visual studio ...
Zuldaan's user avatar
  • 99
14 votes
5 answers
18k views

I'm struggling to find an elegant and idiomatic way of coding the following scenario using the MVVM paradigm in WPF and was wondering how other people would approach it. I have a UserControl in my ...
Pseudonymous's user avatar
0 votes
1 answer
276 views

In Form-based application (WPF/MVVM/SQLServer), consider the form that handles the classical actions that you can perform on any entity. Create Read Update Delete The problem, in general terms, is ...
AgostinoX's user avatar
  • 849
0 votes
1 answer
279 views

Premise: This is for learning purpose. I'm trying to adapt my Console Application code to be served through a WPF Application GUI that I would like to create. One problem is struggling me. Actually ...
exSnake's user avatar
  • 111
-3 votes
3 answers
3k views

When this question has been asked before on StackOverflow in 2011 and 2015, all answers as of now suggest to use a Singleton. But that’s not right. Singletons are defined by the Gang of Four to ...
John Doe's user avatar
0 votes
1 answer
172 views

I'm running a commercial accounting software packages which uses a SQL server database. I've also developed a WPF application which is basically a slimmed down version of the commercial software. ...
Troy Frazier's user avatar
-1 votes
2 answers
311 views

I'm implementing an event-driven game in WPF and have the following Blackjack class: public class Blackjack { public Dealer Dealer { get; } = new Dealer(); public Player Player { get; } = new ...
keelerjr12's user avatar
  • 1,273
2 votes
1 answer
145 views

In my UI application (WPF/C#, using MVVM design pattern), I have implemented a global exception handler which catches all unexpected (hence uncaught) exceptions and reports the application crash to ...
Ravigneaux's user avatar
1 vote
2 answers
2k views

I have a child view-model which notifies on a property change: public class ChildViewModel : INotifyPropertyChanged { private bool isSelected; public bool IsSelected { get => ...
user20416's user avatar
  • 693
0 votes
2 answers
2k views

public class LDLTrackViewModel : RailwayViewModel { private LDLTrack _ldlTrack; public LDLTrack LDLTrack { get => _ldlTrack; set { _ldlTrack = value; ...
danny10846's user avatar
2 votes
4 answers
1k views

Why does C# make you put in a dispatcher for a different thread to update the UI? Example: Dispatcher.Invoke(() = { lblerrorName.Content = ""; }); It always gives the 'running on different ...
NoOne's user avatar
  • 91
0 votes
1 answer
468 views

Assume I have a canvas that has rendered shapes. I can drag-move around that canvas as if I was in a zoomed in image to move all shapes around. Between the Model and ViewModel I have a ServiceLayer (...
Joe's user avatar
  • 405
7 votes
3 answers
2k views

I'm learning the MVVM pattern and something that comes up often is a duplication of data-types. Say I have a Person datatype. Intuitively I want it to look like this: public class Person { ...
asaf92's user avatar
  • 201
0 votes
1 answer
748 views

As part of my bachelors thesis, I'm trying to develop something akin to a painting program. That means, I have a toolset, be it selection, drawing, highlighting, etc. I'll have a canvas that displays ...
Joe's user avatar
  • 405
0 votes
0 answers
2k views

I have an application that connects to SQL Server using windows credentials, which works very well for the domain paradigm. The client is now transitioning away from having a domain server, and is ...
Paul Gibson's user avatar
0 votes
1 answer
51 views

I am new to WPF but actually I need to code in it. I have got a **UserControl(Window)** and there is a DataGrid in it. DataGrid can be used somewhere else in the future, but not 100% sure. Me and one ...
koviroli's user avatar
  • 111
0 votes
3 answers
3k views

So this is my DataStructure: Project - Name - ID - Image - History - User - Comment When my application first starts it is pulling all projects with all details. obviously ...
Felix D.'s user avatar
  • 105
0 votes
1 answer
380 views

I have a class that uses constructor DI for IEventAggregator public SomeViewModel(IEventAggregator eventAggregator) { this.eventAggregator = eventAggregator; ...
Bells's user avatar
  • 443

1
2 3 4 5 6