Questions tagged [wpf]
WPF is a graphical subsystem for rendering user interfaces in Windows-based applications.
27
questions with no upvoted or accepted answers
4
votes
0
answers
122
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 ...
3
votes
0
answers
178
views
Should I build a custom text editor from scratch or enhance existing ones?
I'm developing a Windows WPF app that needs to edit a certain type of document and I need a highly customized editor to do so:
The text is a transcription of an audio feed, and I need to sync the the ...
3
votes
0
answers
659
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 ...
3
votes
0
answers
4k
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 ...
3
votes
0
answers
322
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 ...
2
votes
0
answers
275
views
Software License for project using .NET and Sql Server Express
I considering making my application open source on github. I don't intend to sell it (neither in binary form nor source code form). It probably isn't even useful to a lot of people except maybe for ...
1
vote
0
answers
983
views
WPF Best way to create viewmodel from another viewmodel
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 ...
1
vote
0
answers
78
views
Issue implementing the Command Processor pattern using MVVM for WPF?
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 ...
1
vote
0
answers
97
views
Should all interactions go to ViewModel?
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 ...
1
vote
0
answers
564
views
Opening new Window from ViewModel using Castle Windsor
I've been following the quick tutorial on using Castle Windsor in MVVM WPF:
TUTORIAL
I've set everything up (as for the basics) but I came to the point of creating a new Window after a button click. ...
1
vote
0
answers
846
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 ...
1
vote
0
answers
652
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 ...
1
vote
0
answers
774
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
0
answers
191
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:...
0
votes
0
answers
213
views
What approach for this kind of drawing application in C#/WPF
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 ...
0
votes
0
answers
469
views
WPF - Custom MenuItem with buttons or new Window? (or other?) - Update : what is your opinion of my solution?
Context
I'm currently doing a project with WPF, which I'm fairly new to. What I am trying to do is a custom and configurable taskbar-like application.
What I currently have
I managed to create a ...
0
votes
0
answers
66
views
Is it secure to make a seperate project which checks whether a license is active
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 &...
0
votes
0
answers
76
views
Is a lot of Wiring code a sign of over engineering or bad design?
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 ...
0
votes
0
answers
1k
views
.NET WPF Best way to store a connection credential
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 ...
0
votes
0
answers
572
views
WPF DI with DbContext per form
Trying to figure out how to keep class methods clean, follow EF's guidance of short-lived DbContexts, and use DI in WPF. Issue I'm having is implementing transactions with DI. I'm trying to figure ...
0
votes
0
answers
415
views
Should I populate view model inside or before creating it
I'm not sure if softwareengineering exchange is right for the question.
I need to populate view model with some values I query from the database.
I do it like:
var db = new NPoco.Database(...
0
votes
0
answers
606
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) ...
0
votes
0
answers
1k
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 ...
0
votes
0
answers
244
views
does class reference itself static anti pattern in prism
I have an application and my desing approach look like this:
class Manager
{
public int State;
static Manager _instance = null;
public static Manager Instance
{
get { return ...
-1
votes
1
answer
487
views
How to integrate WPF and AKKA
I'm new to AKKA and i can't figure out a general proper way to integrate a backend actor system with my WPF views.
I studied a few examples i found (all very similar, probably based on this), but in ...
-2
votes
1
answer
3k
views
Check is finish async and await behavior
I am trying to understand the async and await.Now i want to apply async and await keyword in my current project.My process structure are:
//DataAccess
Private List<Users> GetAllUsers()
{
......
-3
votes
1
answer
433
views
Inter application communication .Net
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 ...