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

10
votes
1answer
49 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
41 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
155 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
107 views

WPF without MVVM

I know I should use mvvm, but just starting with WPF, here is my code: MainWindow.xaml ...
-1
votes
0answers
30 views

Show status images according to background worker

I work with WPF and have application which try to take data from server. This logic is inside background worker Do_Work event: ...
2
votes
2answers
28 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
2answers
711 views

Crack the safe, find the right combination

I recently started C# and I've got the feedback that I still repeat too much. I'm not entirely sure how I can make it less repetitive? ...
5
votes
3answers
323 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
78 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
120 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
762 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
51 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
264 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
82 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
32 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
139 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
103 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
162 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 ...
1
vote
2answers
212 views

UI error display window with task async in WPF

I am new to async and was wondering if any improvement can be made to the solution I put together from scattered information on the web. The following (working) code shows how a button press runs ...
4
votes
1answer
173 views

WPF MVVM Navigation

Following a lot of research and mainly based on this tutorial I came up with the following structure in my application: ObjectBase - all view models inherit it: ...
0
votes
1answer
234 views

WPF filling a DataGrid

I'm creating a WPF application with a DataGrid. I'd like some advice on the code I've written: ...
4
votes
2answers
93 views

Creating and Editing a UtilityMeter

I have some functionality that allows the user to create a Meter, which counts your gas, water, and electricity usage. A Meter ...
4
votes
2answers
258 views

Calculator with WPF

I built a calculator in C# with WPF for the UI. I'm still a beginner at WPF and C# in general, and I'm just looking for some constructive criticism. XAML ...
5
votes
2answers
502 views

Injecting JavaScript to website for ordering products

I am a newbie at programming and I helped my dad with making this program which orders multiple products to a website from a table of Excel. It involves 3 processes: Passing orders from Excel to ...
4
votes
1answer
578 views

WPF DateTimePicker user control

I've created a UserControl that should act as a control inside a Window: XAML: ...
2
votes
0answers
566 views

WPF MVVM Dialog with Prism, MahApps.Metro

I am building a Metro-themed WPF application with MVVM approach using Prism and MahApps.Metro. I have to show a custom dialog from view model. Currently, I am using ...
1
vote
2answers
68 views

FileSystemWatcher created event

I wrote a little function that monitors some directories. If a file gets created, it will check in the extension list for a match. Can you please tell me if I could make my function better in any way? ...
5
votes
2answers
54 views

Resx Translation Helper, V.2.0 Remove Files Window

Related to Resx Translation Helper, V.2.0 This is the code for the Remove Files window. I was able to keep code out of the code-behind here, but I have a feeling I botched something else. ...
7
votes
1answer
81 views

Resx Translation Helper, V.2.0

Related to Resx Translation Helper, V.2.0 Remove Files Window First, I implemented the changes suggested in my last question, then I changed my entire code base to support editing 1-N Resx files. ...
10
votes
4answers
371 views

Resx Editor in WPF

To aid in the localization of .resx files, I made a generic resx comparer that allows you to edit the values of the resx's. Also, this is my first proper adventure in WPF (I've just been using ...
6
votes
7answers
578 views

Speech Synthesis to showcase how various voices sound with System.Speech.Synthesis

I was wondering if you would be willing to give me some suggestions on shortening this code. I feel as if the amount of if statements I have is a bit much. ...
2
votes
1answer
303 views

WPF Data binding alternate datacontext inside Itemscontrol

What I'm trying to do is bind the controls generated by a ItemsControl.ItemTemplate to a new instance of my ContactInterface ...
11
votes
1answer
116 views

Rubberduck “GoTo Anything” Navigation

The next version of rubberduck is going to include a pretty nifty "goto anything" / find symbol navigation tool that lets the user enter an identifier name in a combobox: UI To achieve the ...
4
votes
0answers
180 views

Swapping Tab Order

The code I have below swaps two tabs around. This is done through creating an array, deleting all tabs and then recreating them which seems very inefficient to me. ...
10
votes
2answers
192 views

Settings, setting settings, and settings handlers

So, back in this question, I built a set of settings. Now, I am trying to clean the entire system up. This is the abstract base class: ...
5
votes
2answers
309 views

Display nested objects through custom displayers in WPF

First off, I am very new to WPF. These are the objects I want to display: ...
6
votes
2answers
642 views

Writing an IRC Bot from scratch

I have been learning C# for a couple years now, and using small projects to help myself learn. My most recent project is a complete rewrite of my first C# project that just got out of hand (the old ...
2
votes
1answer
233 views

C# Async and DataContext access

I'm using a DataContext to insert an object. Currently it's working, but I'm feeling things could be done better. Method is called from UI (Using Caliburn Micro Binding). IsBusy is a property used by ...
5
votes
1answer
136 views

WPF application depending on large file

I've got a quite simple WPF application, trying to implement a correct MVVM pattern. The application in itself is simple: one listItem and one textbox + button for searching. On init, the entire ...
12
votes
2answers
685 views

MVVM data binding for a video encoding form

I am creating a C# WPF application. I am intending to bind all of the GUI controls via data binding to my ViewModel, rather than code behind - as per MVVM. I have ...
4
votes
1answer
880 views

Insert String array as label content in datagrid row through radio button

I have written some code for inserting a label at runtime that has its content set to a string array into a datagrid row. All of this will initiate when certain radio buttons are checked. The code is ...
3
votes
1answer
658 views

Controlling a Windows Service from a WPF app

I have a WPF Control Panel app, where I'm trying to stay close to an MVVM architecture. The control panel (the "the CP") is for a WCF service ("the Scheduler"), hosted in a Windows Service ("the ...
4
votes
2answers
121 views

TabController for handling opening and closing of tabs

I created a class TabController to handle opening and closing of tabs. It needs some data from my viewModel, so should I pass in ...
1
vote
1answer
319 views

Wrapper classes for objects returned by 3rd party APIs

I am building a WPF application which uses a third party library to fetch objects which I want to allow the user to interact with. The objects are returned as interface types. Am I right in thinking ...
3
votes
1answer
56 views

Convertors converting unconverted objects

In my app, I have several convertors, like these two: ...
0
votes
1answer
37 views

Prefered Style Container for the Components in the DataTemplate

The following XAML is a close (tidied up) version of what I have use in my WPF application. If you have noticed there are two Styles applied to the same component ...
4
votes
1answer
198 views

Show dialog only once. Other calls should bring dialog to front, but otherwise not have a result

This code works, as far as I can tell, but there's something that just feels wrong about it. The intended flow is like this: If no dialog is showing Show dialog, return result else Move dialog ...
1
vote
1answer
616 views

Asynchronous method and collection binding

I have a WPF application, in which I'd like to bind a collection to a combobox using an asynchronous method : ...
5
votes
2answers
76 views

The cycle continues - VM's part 4

So, this is my refactored VM: ...