0
votes
0answers
6 views

WPF - prevent user actions queuing-up while application is busy

What approach would you suggest for ignoring user requests (like mouse clicks) while application is busy (meaning that UI thread is blocked doing something). Concrete example for this might be sorting ...
4
votes
1answer
246 views

WPF - Raise KeyEvent Trigger in a Unit Test does not work

I would like raise a key event in a unit test. When a key is pressed, the TextBox should contain the pressed key in it's text property. Here is a minimal working example using Xunit: ...
6
votes
6answers
1k views

Constant Memory Leak in SpeechSynthesizer

I have developed a project which I would like to release which uses c#, WPF and the System.Speech.Synthesizer object. The issue preventing the release of this project is that whenever SpeakAsync is ...
6
votes
1answer
45 views

WPF Animation that bends and follows some path geometry

Okay, so I'm working on a loading screen and I want to flare it up a bit. Basically what I am trying to do is animate an object along path geometry data...I emphasize 'along' because keeping a fixed ...
1
vote
3answers
34 views

Cannot implicitly convert type 'System.Linq.IQueryable<Database.Table>' to 'bool'

Hello I am getting the error Cannot implicitly convert type 'System.Linq.IQueryable<Database.Table>' to 'bool' From this piece of code foreach (var file in files) { if ...
-6
votes
0answers
32 views

C# Application on top of the other application regularly? [closed]

I Want to write an application in C# (or WPF) that runs in system tray and every 20 minutes it appears in random place in screen and on top of all run applications about 2 sec and then back to system ...
0
votes
1answer
31 views

ObjectContext.SaveChanges: add new row wpf datagrid displays a duplicate

I am having some trouble with Entity Framework 4.0 with SqlCE 3.5 in a WPF Master-Details app. When calling ObjectContext.SaveChanges() int the RowEditEnding handler, the database gets updated ...
0
votes
2answers
35 views
+50

possible to use VisualTreeHelper.HitTest without a UI?

I would like to use the WPF HitTest ability on some shapes without showing them onscreen. I think my final application will have them all on screen, but my initial unit tests won't. Is this possible? ...
2
votes
3answers
35 views

BackgroundWorker stops running over long period of running

Is there a limit to the amount of time a BackgroundWorker will run without user interaction/change? I left a WPF program threaded with one running over night and it stopped at some point. I could ...
0
votes
1answer
34 views

How to set focus on an element of a user control?

I have a user control that has a TextBox on it. If I set focus on the TextBox in the constructor, then the TextBox works as expected. Sometimes though, I don't want the TextBox to have focus when the ...
0
votes
0answers
14 views

ListView contained in UserControl malfunctions if UserControl's visibility is set to Collapsed by default

This is a followup to this question: Identical ListViews display differently - Columns don't stretch on one I found that when displaying a child UserControl with a ListView within a parent ...
0
votes
3answers
287 views

How do I get the dimensions of a WPF element at run-time without specifying them at compile-time

The problem? <UI:PanelBrowser Margin="12,27,12,32"></UI:PanelBrowser> WPF is ridiculous in that not manually specifying properties (Such as Width and Height) in this case causes them to ...
0
votes
3answers
23 views

Disabling click event changing IsPressed on wpf checkbox

Due to strange requirements, I need to disable the user's ability to change the IsChecked property of a checkbox through the click event. I cannot disable the checkbox because right-clicking on it ...
3
votes
1answer
12k views

WPF - Implement ItemTemplate for an ItemsPresenter?

I've been working on a SplitButton control for WPF and its basically done, but I'm trying to go through all the possible properties that can be set on it and make sure they are actually implemented. I ...
1
vote
1answer
46 views

Application fails visualizing more than 600 Images

I wrote a WPF app that should swap (fast) between a large set of images (600+, 190Kb average size), but I'm finding some difficulties. private int appendImages(Canvas c, int start, int end) { ...

1 2 3 4 5 1856
15 30 50 per page