WPF is a graphical subsystem for rendering user interfaces in Windows-based applications.
-1
votes
1answer
75 views
.net Windows app in a web page [on hold]
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
100 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
175 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
149 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
438 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 ...
1
vote
1answer
138 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
66 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
1answer
105 views
Program uses an older version of dll rather than the one embedded in the exe
I have a project for which I used to deliver an additional .dll file.
At some point, I have installed Costura.Fody package and started embedding this .dll in the .exe file to get a one-file standalone ...
0
votes
0answers
27 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 ...
1
vote
1answer
93 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
303 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
142 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 ...
8
votes
2answers
1k 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
187 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). ...
0
votes
0answers
55 views
Where to put Font and Control sizes in a ResourceDictionary structure?
I've begun to refactor our XAML Styles, Brushes, etc. into a proper directory and file structure and oriented on this organization example. While the article mentions where to put Styles and Brushes, ...
0
votes
0answers
161 views
Is there a better way to retrieve a ViewModel container starting from a Model?
I'm trying to figure out a more efficient method. To start, I have a viewmodel wrapping around a model. The model itself collectively becomes a tree. We'll call each model a Fragment:
public class ...
3
votes
1answer
233 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
199 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
201 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
129 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
89 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 ...
-1
votes
2answers
954 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
902 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
420 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
267 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 ...
3
votes
2answers
262 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
185 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 ...
5
votes
1answer
1k 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
172 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
893 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 ...
1
vote
2answers
123 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 ...
2
votes
0answers
262 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
349 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 ...
1
vote
1answer
256 views
What is the best approach to storing a multi-dimensional array with unknown bounds?
I'm trying to store content scraped from several lyric and chord websites into separate variables into either a multi-dimensional array, or into separate string arrays, but I've been stuck trying some ...
0
votes
3answers
209 views
Coded UI test Automation Technique
How is coded UI testing technique more favorable than any other testing technique? What is the main advantage of using a coded UI test?
0
votes
0answers
127 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 ...
0
votes
1answer
52 views
WPF4 Unleashed - how does converting child elements work?
In chapter 2 of the book WPF4 Unleashed the author shows an example of how XAML processes type conversion. He states that
<SolidColorBrush>White</SolidColorBrush>
is equivalent to
...
2
votes
0answers
966 views
What's the best way to expose a Model object in a ViewModel?
In a WPF MVVM application, I exposed my model object into my viewModel by creating an instance of Model class (which cause dependency) into ViewModel. Instead of creating separate VM properties, I ...
4
votes
1answer
424 views
WPF properties memory management
I'm trying to build binding system similar to the one that is used in WPF and I ran into some memory leaking problems, so here comes my question - how is memory managed in WPF property system?
From ...
1
vote
1answer
170 views
How much functionality needed to create a new class?
Right now I am working on my own small project of a WPF file back up application. I have come to a point where I want to create a method that will copy files recursively from one place to another.
...
1
vote
0answers
157 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 ...
2
votes
2answers
595 views
As a .NET WPF developer what are key differences I should be aware of when working with ASP.NET MVC? [closed]
I'm a fairly experienced desktop .NET developer with a solid feel for MVVM and WPF, and I've worked with JavaScript, jQuery and HTML/CSS in the past - though I'm pretty dated and haven't had a ton of ...
1
vote
1answer
549 views
Again MVVM / MVP story , passing interface of a view to its view model why it is bad?
I have used WPF for an Enterprise solution (hundreds views heavily used Data inputs and validation) in MVP pattern (it was a clean solution usually small amount of code behind forms and main code was ...
2
votes
1answer
201 views
xaml schedule control how to cope with items of vastly differing durations
I have to create a schedule control using WPF XAML for displaying items with duration as little as 1 seconds and potentially as large as couple of hours.
First thing which seems clear is that I ...
2
votes
1answer
485 views
How to create a WinForms project that is “WPF-ready”
I'm a C# developer who hasn't had the privilege of learning WPF yet. However, I recently initiated the architecture phase of a new project which I expect will eventually employ WPF (probably; although ...
4
votes
3answers
2k views
What are my options for using a C++11 library in a C# WPF application? [closed]
I am writing a cross-platform (OS X and Windows) desktop application in C++11. I intend to use the same C++11 core on both platforms, utilizing native frameworks for the UI (Cocoa and Objective-C on ...
0
votes
1answer
5k views
Where do put INotifyPropertyChanged Interface in Model or ViewModel [closed]
I am new to MVVM pattern I have a window which has 3 text boxes namely Name,Address,Description ,a save button and a listview which displays the above fields Name,Address,Description respectively ...
0
votes
2answers
1k views
Model and ViewModel for View
I am new to the MVVM pattern. I have a window which has 3 text boxes (Name, Address, Description), a save button, and a listview which displays the above fields. When the save button is clicked I want ...