Windows Presentation Foundation (WPF) is part of the Microsoft .NET framework used to create rich client user experiences for Windows application.

learn more… | top users | synonyms

1
vote
1answer
21 views

Slow Filtering Method on DataGrid

Sometime ago I asked a question regarding a slow Filtering method for my DataGrid. Months later and I have a relatively quick method, though I am still looking to ...
2
votes
2answers
57 views

C# SerialPort implementation

I'm writing a C# WPF project built with a MVVM pattern. This software is written to use a medical diagnostic device, so in our planning it will be certified IEC 62304. Since I've been mainly writing ...
3
votes
1answer
86 views

WPF/MVVM with Entity Framework, Repository and Unit of Work pattern

I'm building WPF/MVVM application and I'm struggling implementing Unit of work pattern. The part, about which I'm not sure is UnitOfWork class. Here is my thought: ...
6
votes
1answer
73 views

Creating interactive tours for WPF applications

I am developing a WPF component that can be used to create interactive tours for WPF applications. To further improve the API in terms of usability and intuitiveness, the input of other developers is ...
9
votes
5answers
283 views

Setting user permissions, where certain permissions imply other permissions

The purpose of the class is to set permissions for a user. These include delete, download, upload, view, etc. These properties often depend on other properties, and setting them has side effects. For ...
1
vote
0answers
26 views

Loading sub items of TreeView in background

I am working with a TreeView (default control from .Net Framework) that displays hierachical data. Data are bound to the view using MVVM pattern with the ...
1
vote
2answers
235 views

Simple Tic Tac Toe

I have written a simple Tic Tac Toe game in WPC C#. I am just a beginner and learning. Could you tell me if there is something wrong with my code / could be done better? I am pretty much satisfied ...
1
vote
0answers
17 views

Extension for BindableBase that can dispose the old value of a property if that property implements IDisposable and is not null

I am interested in hearing opinions on this. I need a way to dispose the old value of a property in a way that's compatible with BindableBase. Specifically, I have ...
6
votes
1answer
82 views

Eraser tool for GIF editor

I am making a GIF editor in C#, and I am currently working on the eraser tool. I am not sure what I can do to make it more efficient, because when I make the thickness (diameter) more than 30 (pixels) ...
3
votes
1answer
90 views

Implementing a filter

I have implemented a filter for filtering a IEnumerable of a specific type. To accomblish this goal i have created three classes: ...
1
vote
0answers
35 views

Automatically close popup after a certain period of time

There is a Popup in my application which I want to close automatically after a certain delay. And I want to have an attached behaviour which I could turn on/off and ...
5
votes
1answer
99 views

MVVM: Am I doing it right?

I read a lot of articles recently concerning XAML, WPF, data binding and MVVM. I also watched some MVVM tutorials and downloaded some MVVM samples. I finally got my first MVVM sample to work, but ...
2
votes
1answer
126 views

ReactiveUI And WPF - Reusing a value to update multiple properties

I've created my first ReactiveUI app in WPF. Simply, the user enters their full name in one textbox, and then the name gets split into its parts and displayed in the other textboxes. This is just an ...
4
votes
1answer
62 views

Enumerating smart card terminals asynchronously in ViewModel constructor

I started a project the other day and started going down the path of using async and await as I have never used it before and it seems like a good match. The app that I'm making is a WPF solution ...
0
votes
0answers
47 views

Helper method to find VisualChildren of multiple Types

I created an helper method to return a List of UIElements where the returned elements have to match with one of the ...
1
vote
0answers
67 views

WPF Track child collection validation errors

I have a need to get notified about validation errors that occur in a child collection of my ViewModel. For validation I use the ...
3
votes
3answers
218 views

Extracting Excel data out of an existing Excel file

I've made a method to extract Excel data out of an existing Excel file. It contains 3 tabs where info should be extracted from. The data should be stored to use local so it's always fast available. It ...
3
votes
1answer
72 views

Uploading .dll files to a local computer

I have created a simple application that has grown a little bit. Though most likely it won't grow anymore, I have looked back and I realized that it has become a little monster in terms of how many ...
-1
votes
2answers
91 views

Can this be written in a shorter way? Dynamic function call perhaps?

Below you'll find my switch case. My question is, for each function I am manually adding another case. Can this be somehow shortened? You see case names and function names are same. For example case ...
4
votes
1answer
52 views

FindAllReferencesCommand 2.0

Rubberduck 2.0 will feature a "Search Results" dockable toolwindow that will be used for displaying the results of Find all references, Find all implementations, and whatever else we need to find. It ...
4
votes
1answer
66 views

About Window in XAML

I just redid Rubberduck's About window in XAML: I do not like my XAML very much. The way I place the StackPanel for the white pane over two rows, only to ...
3
votes
3answers
79 views

Unit Test Settings

Recently, I redesigned the Rubberduck settings pane. Here is the unit test settings view, which is posted in this question: The part we are referring to is the section in the right pane. The rest ...
3
votes
1answer
57 views

Displaying inspection results, grouped per user selection

The Rubberduck 2.0 Code Inspections UI was recently redesigned (again!), this time featuring a GroupingGrid control (thanks @BrunoCosta!), and what appears to be a ...
1
vote
0answers
40 views

BackgroundWorker in WPF executing multiple methods

I've implemented a BackgroundWorker in my WPF app. My code is pretty ugly though. I've been told to write as little as redundant code as possible. IS there some generic Method I could employ to reduce ...
0
votes
1answer
68 views

Optimize/ refactor program that highlights differences between two text collections

I made a simple comparison window in WPF that has two RichTextBoxes highlighting the differences (in red) of two StringCollections. I knocked the code up in about 5 minutes and having gone back to ...
4
votes
1answer
62 views

Saving User Settings in Univeral App for Windows 10

I am a self-taught programmer, so please be gently. Please give as much feedback as possible for my code. I want to make sure I am doing things the right way and efficient way. What is the proper ...
5
votes
2answers
105 views

Easly cancellable operations WPF

Several times we need to be able to revert the data the user is inserting to a previous state (cancel data update). In order to keep DRY and for the sake of separation of concerns I thought about a ...
5
votes
1answer
742 views

Navigation between pages in WPF MVVM application

EDIT: Here is the code repo: https://github.com/AntwanReno/navi I did a project in WPF MVVM. Just a single Window with single ...
5
votes
1answer
73 views

Categorize episode-file names - Follow up

This is a follow up to this question. I have implemented changes to the code as they were suggested in the previous question and have made a few changes of my own. But it has been mentioned that the ...
5
votes
1answer
80 views

DialogService which can return a result and closes Window

I wanted to have a DialogService that can return an arbitrary result. The views to be displayed are implemented as UserControls, and UserControls cannot close themselves (nor directly the parent ...
9
votes
1answer
106 views

Code Explorer 2.0: A folder hierarchy to organize VBA projects

Next release of Rubberduck will introduce a very cool @Folder annotation system that the Code Explorer will use to organize modules into - you guessed it - folders: ...
0
votes
1answer
65 views

Creating multiple new child forms from a single form

I have a simple application reading IO and plotting chart on UI. There is one instance that I need to plot three graphs at a time, and to make this easier, I made a graph form where I declared all ...
11
votes
2answers
100 views

Markdown Markup Editor: MK2

Following on from this question I have added some more functionality to Markdown Markup, and made it more WPF idiomatic. It now supports saving data from any of the four boxes, and loading Markdown ...
5
votes
1answer
84 views

Markdown Markup Markleft Markright Editor

I have a blog that I occasionally post to, but it's a PITA because of the fact that it has it's own WYSIWYG editor and doesn't support Markdown. So I have to switch the WYSIWYG editor to the HTML ...
3
votes
2answers
169 views

Handling events in a multi threaded environment

I have a service that raises multiple events, some of them can be raised at the same time. I need to process those events and run a potentially long running method based on the event arguments. What I ...
1
vote
2answers
143 views

WPF without MVVM

I know I should use mvvm, but just starting with WPF, here is my code: MainWindow.xaml ...
2
votes
3answers
57 views

Path validation helper in a 'path input box'

I have a helper extension method that I use for path string validation. It looks as below. It's purpose is to work with network paths as well, so in case a network resource is not available, I do not ...
5
votes
3answers
790 views

Crack the safe, find the right combination

I recently started C# and I've got the feedback that I still repeat too much. How can I make it less repetitive? ...
5
votes
3answers
333 views

Fetching, adding, and viewing games

This is a simple application that will eventually manage certain files for video games. For now, I'm only posting code that handles fetching, adding, and viewing games. I'm trying to keep things ...
3
votes
1answer
256 views

WPF canvas drawing very slow

I am building a map editor to easily create 2d levels. To visualize how my level looks like I am using a canvas. On this canvas I can select which block is filled with a certain type ( like solid ). I ...
1
vote
1answer
317 views

Updating WPF MainWindow from an async task

Is this an acceptable approach to update WPF MainWindow from an async task, using events thrown from a public static class? In MainWindow.cs, I subscribe to ...
8
votes
4answers
994 views

C# WPF Simple Calculator

I've implemented simple +-*/ calculator in WPF. I know that here are few implementations of the same thing, but each is different, with different advantages or ...
1
vote
1answer
65 views

RadioButton Selection Extremely Slow

I have a DataGrid that I filter when the user inputs text into a search box. The column that is filtered is based upon which radio button the user selects (Name, Town or Post Code). Although initially ...
2
votes
3answers
428 views

DataGrid Filter Method Very Slow

I'm having a lot of trouble in my Database program with trying to implement an effective DataGrid filtering method. After taking advice from a previous code review I'm trying to implement a DataModel ...
0
votes
1answer
295 views

Filling TextBoxes from a WPF DataGrid

I have a very basic method at the moment that fills text boxes with data relevant to the selected company. I load the data into a DataGrid using this method; CompanyDataService ...
1
vote
1answer
113 views

Nested Grids layout with ScrollViewer and TextBoxes with wrappable text

I need to handle a resizable WPF ScrollViewer that scrolls vertically and stretches horizontally and contains stretched wrappable TextBoxes. I have the following XAML WPF layout (the smallest example ...
1
vote
4answers
105 views

Update extremities losses when selected type changes

The following code works, but is it a good idea to call another method in a setter? ...
4
votes
3answers
163 views

Removing this odd while(true) for checking the queue

I was reviewing some WPF code I've written in C# last year. The scenario is the following: I've got a usercontrol that show usermessages and it's docked in the bottom of the application's workspace ...
1
vote
1answer
264 views

Change uniform grid after window resize

I have a uniform grid in this application. After resizing the window (when width < 300) it removes the right column from the grid, and deletes items. After ...
0
votes
1answer
171 views

WPF ugly event dictionary

I have a WPF application that gets data from a web-server. It contains two Views LeftView RightView three Models ...