Aug
18
awarded Popular Question
May
15
comment ListView.GridViewColumn (*) width
Definitely a hack, but it is simple enough and works well enough that I like it.
May
15
comment How can I get a ListView GridViewColumn to fill the remaining space in my grid?
You'd get extra points if you created some sort of child GridView and columns so you could apply this to all GridViews instead of a custom implementation for each view.
May
14
awarded Analytical
Apr
3
comment What is the fastest way to calculate a Windows folders size?
Example of how MUCH faster for a directory with 900K files and a size of 9.5 GB: this method: 250ms, recursive method:~15 seconds.
Feb
21
awarded Commentator
Feb
21
comment Watermark / hint text TextBox in WPF
If you want to add this to a password box you'll have to add the following to the ShouldShowWatermark method: else if(c is PasswordBox) { return (c as PasswordBox).Password == string.Empty; }
Feb
15
comment Why is my two-way WPF binding becoming detached?
Even if I move the property to which I want to bind to the main datacontext, I get the same behavior.
Feb
15
comment Why is my two-way WPF binding becoming detached?
I am binding to my viewmodel. This window has a data context that contains and instance of my BackupViewModel name BackupVM. So I added DataContext="{Binding BackupVM}".
Feb
15
comment Why is my two-way WPF binding becoming detached?
I tried this and it doesn't work either. I know it is bound on load because I can verify the getter is called in the debugger. But when I click the other button the setter is never called.
Feb
15
awarded Student
Feb
15
asked Why is my two-way WPF binding becoming detached?
Oct
8
comment Detecting Exceptions During Beta Testing
Glad I could point you in the right direction.
Sep
12
awarded Scholar
Sep
12
accepted Reading a file with FileStream and FILE_FLAG_NO_BUFFERING
Sep
12
awarded Citizen Patrol
Sep
11
comment Reading a file with FileStream and FILE_FLAG_NO_BUFFERING
Wouldn't things break horribly all over FileStream if it didn't pass the actual address of the byte array to the underlying Readfile? I have had no problems with my approach so far except when trying to use a non-zero offset.
Sep
11
answered Detecting Exceptions During Beta Testing
Sep
11
comment Reading a file with FileStream and FILE_FLAG_NO_BUFFERING
Thank you @HansPassant . If you add your comment as an answer I will mark it as the answer so you get credit.
Sep
11
comment Reading a file with FileStream and FILE_FLAG_NO_BUFFERING
Yes but there is a reason it exists in the underlying Win32 API. I know there are requirements. I've read that link many times. FileStream will follow them if you tell it to. What does "File access buffer addresses for read and write operations should be physical sector-aligned, which means aligned on addresses in memory that are integer multiples of the volume's physical sector size" have to do with 4?
1 2