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

learn more… | top users | synonyms

1
vote
1answer
23 views

Where to call OnPropertyChanged

With WPF and MVVM, properties of the ViewModel are bound to UI elements. When a property changes, its set accessor calls OnPropertyChanged which in turn raises the PropertyChanged event of the ...
15
votes
4answers
2k views

How should I store readonly data to deploy with my application?

I'm developing a desktop application, and this application requires some information to run, but it doesn't change any of this information (the data must be loaded on every execution of the app, but ...
-2
votes
3answers
70 views

Most appropriate function naming for WPF's INotifyPropertyChanged implementation [closed]

Each time I was involved into a different WPF project over different companies, the INotifyPropertyChanged function implementations were named quite differently, either public void ...
0
votes
0answers
37 views

Using an online database for multiple users to store their data

I am considering changing my wpf application to use a online database instead of a local XML file. I have read some tutorials about binding data grids to Mysql database tables. But what I don't ...
0
votes
1answer
114 views

Alternative to ObservableCollection in c# wpf MVVM

I am new to wpf c# and MVVM approach. I have a working program that demonstrate the MVVM approach in wpf c# (by copying some code from the internet and applying it to may program). I have used ...
0
votes
0answers
15 views

Reconstruct ComboBoxItems based on a property (+ method return value) with different background colour [migrated]

I have these Study Points as a resource in the app.xaml file: <x:Array x:Key="StudyPoints" Type="local:StudyPointItem"> <local:StudyPointItem Number = "0" Title = "No study point ...
4
votes
3answers
74 views

Associate selection from GUI with executable code

I am currently writing a GUI for a C# application that adheres to the following software requirements (and am struggling with the conceptual design): Have a GUI with some choices of different ...
-1
votes
0answers
48 views

C# WPF Application with Entity Framework : How to manage multiple connections

An other developer and me have a C# WPF application which use the Entity Framework for handle the database. The main goal of the application is to manage differents reports that can be created, ...
3
votes
3answers
124 views

MVVM Commands - one command for everything or multiple commands?

In my last company, on handling view commands, in the ViewModelBase there were one central command implemented, like public ICommand ToolCommand { get; set; } And in the ViewModelBase, it's been ...
0
votes
0answers
29 views

Background layer for e-mail actions

My application features an e-mail layer (IEmailHandler) that implements various protocols (via IImapHandler, IPop3Handler etc.). Now when the user logs in, we fetch all their e-mail accounts (could ...
0
votes
2answers
131 views

Stateless vs Stateful ViewModel

Here are two links which briefly describe the difference between the two: stateless, stateful In short in the "Stateless" scenario we bind views directly to models, view models just expose the whole ...
1
vote
1answer
63 views

Knowledge base UI pattern

In our database backed (C# WPF / Entity Framework) application, we want to build a system to enter, store, display and search arbitrary content linked to our main entity. The challenge here is to find ...
6
votes
1answer
147 views

Is there a good formal pattern to manage state in MVVM?

I have started learning about Redux and React in the web-world, and the more I learn about it the more I'm realizing how painful state management is in the desktop-world with WPF's MVVM-style ...
2
votes
1answer
104 views

Should I use BackgroundWorker in Pipeline pattern?

I am planning the implementation of a Pipeline pattern as seen in this MSDN article. This is a WPF application for which I need to monitor progress of each stage of the pipeline in order to display it ...
0
votes
0answers
30 views

How to find existing UserControl and Window at Runtime

We have a LOB Application where I want my users to be able to create themselves a Menu (Left-handed main menu like a webpage). The "poweruser" creates menu, add some security and then the final users ...
2
votes
0answers
59 views

Dictionary-Sorting in bigger projects

My concern is how to handle ResourceDictionarys in a WPF (MVVM)-Project. I usually only create small Projects, so it doesn't matter that much, but since I created a Project-Template to handle some of ...
1
vote
0answers
160 views

How to manage dbContext in a multi-user application?

I put together my first line-of-business app using WPF/MVVM/EF6(db-first)/MSSQL and realised that multiple users could not see each others' changes because I was using one dbcontext and keeping it ...
0
votes
1answer
144 views

Why does ObservableCollection require all changes to be made on the UI thread?

And is there any danger to making my own INotifyCollectionChanged implementation that doesn't? I'm trying to make a class library contains a Log class, which in turns contains some sort of observable ...
-1
votes
1answer
88 views

.net Windows app in a web page [closed]

I am developing a feature related to Microsoft Outlook which has support only for Windows library. However, I have to put this into a web page for the users. In the process of consuming the windows ...
2
votes
1answer
280 views

How to Manage Privileges in C# WPF applications

I'm writing my first "large" program in C# and WPF. It's a Database system (MySQL) that has three main items, Contracts, Companies and People. I have the main UI down for the Companies section of the ...
1
vote
1answer
573 views

Best practice to extend Model in View Model

I'm facing an issue where I have a Model which I want to implement a GUI for. As I'm exploring MVVM and WPF I will of course use a View Model between the View and Model. I will also have a need to add ...
0
votes
1answer
433 views

Switch complex WinForms app to WPF MVVM

This question is connected with my older question C# Application GUI design dependent on configuration. I have built quite big WinForms application working in industry for a few years. It ...
1
vote
2answers
905 views

C# .NET MVVM software architecture and naming conventions

I am currently working on a software using C# .NET and WPF with the MVVM pattern. Though the software is almost done, I have been discussing our architecture for a long time and I would like to get ...
2
votes
1answer
265 views

Modular Filter Architecture for WPF

I am creating a little stock-management tool for private use. I have different views, which need similar but different filters. As an example I have a "current stock" list where I can filter for ...
1
vote
1answer
98 views

What are potential problems when write business logic code in GUI as MVVM pattern

Currently, I'm implementing MVVM pattern for a WPF application but not 100% no code behind, sometimes I put some business logic code into GUI and so what are potential problems for this? Thanks
0
votes
0answers
36 views

TreeView items with attached 'quick action' buttons

I’m building a visual hierarchy of objects based on the TreeView control. Each level within that hierarchy corresponds to a different kind of object, and as such it’ll be implemented as a separate ...
2
votes
2answers
167 views

Azure BLOB grained access

I have a standalone WPF desktop application which gathers data from Digital-to-Analog converter boards, computes, analyzes this data and then it creates binary files (proprietary format) with the ...
0
votes
1answer
576 views

Will TDD really save bug fixing time for WPF/MVVM

I'm looking for an update .net 4.5 WPF+MVVM+TDD tutorial for my team. I have found only one good tutorial https://deltaengine.fogbugz.com/?W199 My goal is to learn Test Driven Development using WPF ...
1
vote
1answer
225 views

What should the files and folder (Core, Assets, Common, Models, Resources, Views) in my project represent?

I am a novice programmer who has inherited a software project that contains the following files and folders. The project is using C# and WPF. What should I expect to find and continue putting inside ...
13
votes
2answers
5k views

How to choose NOT to use a framework (Caliburn.Micro, etc.) in a given MVVM application?

I have once started a MVVM/WPF project, which was eventually built and deployed, and for that I studied a lot of the Caliburn.Micro MVVM Framework. The fact is: I ended up not using Caliburn.Micro for ...
4
votes
1answer
314 views

Where to create a file in WPF/MVVM

I'm building a WPF/MVVM application that takes input from the user and generates an output document which it saves in a temporary folder and opens for display in the native application (e.g. MS Word). ...
3
votes
1answer
335 views

What does “Stateful” means in Stateful ViewModel in MVVM

I was reading about some XAML patterns, and there was the Stateful ViewModel, according to what I read it has nothing different than what we as just the "ViewModel". Here's a description for example :...
2
votes
0answers
259 views

Hierarchical ViewModels and tracking IsDirty/PropertyChanged events

I have a set of ViewModels depicted like in the below picture. And, I have a couple of commands AcceptCommand, CancelCommand in the Top Level View Model that are bound to Apply, Cancel buttons ...
1
vote
0answers
228 views

Choosing the right design pattern/architecture for a scenario

I have a situation, in which I would like your opinion about the best approach that I should take. Let's consider 10 classes (obj001, obj002 etc.) all which represent some business entities, and are ...
2
votes
0answers
1k views

Should UserControl's be Views in an XAML MVVM application (WPF or Store app)?

I am about to use Caliburn.Micro for a new XAML Store app (not sure what to call it nowadays - does not appear to be called a "Windows Store app" any longer). The documentation (see Simple Navigation ...
1
vote
0answers
195 views

Best style to use multiple custom UserControls in a Grid

I have the following: A MainWindow; with Children on the MainGrid in the MainWindow: ContentControl, displays the main content of the program and has a taskbar at the bottom for user interaction ...
1
vote
0answers
113 views

Switch Configuration of Several .Net Programs for Several Sections in a Simple Way

We build a highly configurable .Net Client/Server application. (Client is C#/WPF, Server is C#/WebService) There is a single code base, but each customer has its own 'profile'. The profile contains:...
-1
votes
2answers
1k views

Productivity using .Net WPF for large ERP (LOB) desktop applicatons ~1500 forms\dialogs [closed]

I am wondering if WPF will fit in my case: We want to refactor an old legacy application written in a 4GL language with about 1500 forms\dialogs. We want to do that in .Net (desktop application), now ...
0
votes
2answers
1k views

What is the best way to allow a user to specify a SQL server and database from a Windows application?

I am working on building a Windows application that will require a connection to at least two different Microsoft SQL Server databases (for example, a source and a target), which may or may not be on ...
5
votes
4answers
529 views

Unit testing when it's harder to come up with concrete cases than write the logic

I have little experience with unit testing, but at the project we're working on right now we decided to do unit testing. The project is a WPF/Entity Framework application, and the part I'm being ...
2
votes
1answer
375 views

WPF and data in the cloud

I need to create a WPF app that users will use on one machine and the manager wishes to use at home in the evenings. I have already suggested a web app which they don't want to do so suggested hosting ...
4
votes
2answers
323 views

Communication/Updates between units of works/entity framework contexts, colliding with user changes

I'm developing a WPF application using Entity Framework for my database communication. The application has a hierarchy of tabs where each tab has a db context. Each tab allows the user to view some ...
0
votes
0answers
233 views

Better and cleanest way to bind a ICommand to a RelayCommand

By reading various source code, I see that there is different ways of binding an ICommand to a RelayCommand : From the constructor MyAwesomeViewModel() { this._fooCommand = new RelayCommand((x)...
5
votes
1answer
2k views

Wpf: Event driven vs MVVM design pattern

I'm a beginning coder and I've been working on a WPF app for several months now and struggled to implement anything in MVVM due to time constraits to learn so I coded my program the only way to knew ...
3
votes
2answers
185 views

In WPF, should I base my converters on types or use-cases?

I'm looking for some advice on how to write my WPF value converters. The way I'm currently writing them, they are very specific, like (bool?,bool) => Brush, i.e. I'm writing each converter for a ...
-2
votes
1answer
1k views

Single Identity for Desktop and Web [closed]

I'm building a system has both a WPF desktop application as well as an Asp.net MVC application. I need a common user identity component so that user can log on to either one with the same credentials....
1
vote
2answers
143 views

UI Applications and operations in background threads

I am not really sure about what is the best way to deal with operations executed in background threads in an application I am writing. I am writing it in C# and I am following the MVVM design pattern....
2
votes
0answers
266 views

Have I created a Big Ball of Mud?

I'm working on a WPF application, trying to stay strict in separating View, ViewModel and Model. My application has a few different views in a relatively flat hierarchy. There is one view for editing ...
0
votes
2answers
2k views

Filtering common starting/ending characters from array/list of strings

Ok so for example I have an array of strings with each string as below: 364VMS1029 364VMSH920 364VMSH192 364VMSU839 364VMN2382 364VMR223 364VMR2X3 364VMN829 364VMN8757 364VMN831 How can I ...
0
votes
0answers
468 views

Encapsulate multiple properties into a single class to use as a custom DependencyProperty

My application is a WPF project implemented in C# .NET (4.5) using an MVVM architecture with no code-behind in the View. In order to eliminate the coupling between the View and the ViewModel I'm ...