Tagged Questions

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

3
votes
1answer
60 views

improve code for delayed dispatcher invoke

I knocked this up quickly to allow delayed Invoke on the dispacther, along with canceling the existing invocation and replacing with a new one, this allows throttling an action. public static class ...
1
vote
1answer
125 views

C# based IRC application (with WPF as UI)

I would like to know how I could improve my C# project. I'm not really sure whether or not I'm allowed to just post a link to the Google Code project here, so sorry if it's not allowed, I'll edit my ...
0
votes
0answers
39 views

I want to use a usercontrol to call multiple usercontrols in a single MainWindow in wpf [closed]

I want to have a dashboard(usercontrol) in the MainWindow containing buttons, which upon clicking would call another usercontrol(say Add Contact) and display in the same Main window hiding the ...
4
votes
1answer
103 views

Is nesting grids a good idea?

I find myself nesting a lot of grids inside grids in WPF. I just found myself 3 Grids deep, and stopped to think: "Should I be doing this?" Is there some kind of performance cost? Is it ...
2
votes
2answers
195 views

Continues If statements

I have a program where it takes the students name and last name and score and saves it. When checking to see if a textbox has information in it, I use ALOT of If statements. Is there a cleaner way to ...
0
votes
0answers
41 views

Putting items next to each other

So I want to put some text next to it's lable. (both of which are text blocks - which are faster than lables as I understand it) The best way i've found for doing this is a strack panel. So I have, ...
1
vote
1answer
431 views

Image Proccessing Optmization?

I'm using Winforms C# .net 3.5. I'm getting frames and this is hiwo i handle them: delegate void videoStream_NewFrameDelegate(object sender, NewFrameEventArgs eventArgs); public void ...
2
votes
1answer
397 views

Helper methods for working with the WPF Dispatcher

I've written the following small helper class for use in my WPF applications. It comes up from time to time that I need to display message boxes, or otherwise interact with the UI from a non UI ...
1
vote
1answer
140 views

How can I improve this code about categories and subcategories?

This is the the code what I'm using. I'm working on LINQ TO SQL and I'm using this model in my program: ...
1
vote
1answer
258 views

Can someone help me to improve this code?

Here is the project which currently I'm working. http://www.megaupload.com/?d=NGJWS9C3 Sorry guys if the code is a mess. I'm a beginner, I'm still learning from you, and for that reason, I need a ...
-1
votes
2answers
192 views

Can you help to improve this code?

PLEASE, READ THE EDIT PART I guess I might use delegates. But I'm not certain if I can apply for it. private int[] Generate_Fraction(int li1, int ls1, int li2, int ls2) { int ...
4
votes
1answer
333 views

Trying to un-hack this DataTemplateSelector

I'm trying to emulate the default behavior of an ItemsControl in a ContentControl--Bind Content to an object property and use the correct DataTemplate based on that object's type. I've tried to ...
5
votes
1answer
409 views

Request of Code Review of my first WPF MVVM attempt

I needed to write code in WPF for a client. The application is done with prism (not my decision, they already had people working on it), so I got a sparkling clean new module to work in. Since this ...
4
votes
2answers
603 views

WPF MVVM confusion

I have been trying to wrap my head around mvvm for the last week or more and still struggling a bit. I have watched Jason Dolingers MVVM video and gone through Reed Copsey lessons and still find ...
2
votes
1answer
286 views

Custom UIElement Animations

Having fancy animations in WPF is quite nice so i tried to implement a generic fading animation for UIElements which i use for the Popups in my application. I was wondering if there was anything wrong ...

1 2
15 30 50 per page