Quantcast
Channel: Caliburn.Micro: Xaml Made Easy
Browsing all 1760 articles
Browse latest View live
↧

New Post: ConventionManager.ApplyItemTemplate - doesn't apply template if...

In ConventionManager.ApplyItemTemplate the property type of the items collection is checked before applying the DefaultItemTemplate: if it is not a generic type, the method returns. This seems too...

View Article


New Post: WPF AutoCompleteBox

Thank you James! This helped me a lot!

View Article


New Post: How to detect Clean, Dirty, Invalid status of View (not ViewModel)

Consider this sequence of events: User clicks in TextBox (View is Clean, ViewModel is Clean) User edits value in TextBox (View is now Dirty) User presses Tab, this triggers LostFocus and...

View Article

New Post: How to detect Clean, Dirty, Invalid status of View (not ViewModel)

Only the Binding knows the View's Dirty (and Valid) state given that both the ViewModel and View needs this information it would make sense for the Binding (or BindingGroup) to communicate this to the...

View Article

New Post: How to detect Clean, Dirty, Invalid status of View (not ViewModel)

You can use the ValidationExceptionBehavior from Attributes-based Validation in a WPF MVVM Application to communicate validation errors to the ViewModel.

View Article


New Post: How to detect Clean, Dirty, Invalid status of View (not ViewModel)

tibel: thanks for the link but that is no help - it uses the standard (broken) WPF Binding behavior - just what I have already

View Article

Image may be NSFW.
Clik here to view.

New Post: How to detect Clean, Dirty, Invalid status of View (not ViewModel)

I am failing to explain the issue, please consider this image: The key thing is to understand how the idea of "Dirty" and "Valid" is handled during an edit-in-progress with a TextBox with...

View Article

New Post: How to detect Clean, Dirty, Invalid status of View (not ViewModel)

Regarding the lost focus issue: are you sure it is not enough to set the UpdateSourceTrigger to PropertyChanged in the Binding, where needed? Some controls (i.e. TextBox) by default use a OnFocusLost...

View Article


New Post: How to detect Clean, Dirty, Invalid status of View (not ViewModel)

Very sure (1) I don't want to UpdateSource() during an Edit-in-progress, I only want to reflect the true Clean, Dirty, Invalid status of the form (2) This will incorrectly update the TextBox with the...

View Article


New Post: How to detect Clean, Dirty, Invalid status of View (not ViewModel)

The real issue is not with Binding, in my opinion, but with the TextBox control itself. Or better, with any control used for input, where such input is not 'atomic'. In a Checkbox, the...

View Article

New Post: How to detect Clean, Dirty, Invalid status of View (not ViewModel)

The TextBox is working exactly as it should The Binding class is at fault for 2 reasons (1) It wasn't designed correctly (2) It's design is too sealed / black-boxy to allow us to fix it My working...

View Article

Source code checked in, #c6edb740263c

Bringing Coroutine and Task together so they can be used interchangeable.

View Article

New Post: How to detect Clean, Dirty, Invalid status of View (not ViewModel)

Solution I settled on: use PropertyChanged as you suggested but expose types such as DateTime to the View as strings (for TextBoxes) Turning off Binding's parsing, formatting and validation

View Article


New Post: How to detect Clean, Dirty, Invalid status of View (not ViewModel)

I used a similar approach, but embedded parsing in a control, and dealt with formatting on the control itself (it is a constrained TextBox with additional properties for numerical/DateTime/TimeSpan...

View Article

New Post: "TypeInitialization Expected" thrown on Bootstrapper

I added "this.bootstrapper.ToString();" right after "this.bootstrapper = new AppBootstrapper();" and it still throws an exception at the "this.bootstrapper = new Appbootstrapper();" without doing the...

View Article


New Post: "TypeInitialization Expected" thrown on Bootstrapper

Again... Sorry for the useless notification, it decided to post the exact same message every time I refreshed the page :(

View Article

New Post: "TypeInitialization Expected" thrown on Bootstrapper

Here is the TypeInitializationException in full: System.TypeInitializationException was unhandled HResult=-2146233036 Message=The type initializer for 'MyDll.Helpers.AppBootstrapper' threw an...

View Article


New Post: "TypeInitialization Expected" thrown on Bootstrapper

That's not quite the whole exception - the InnerException is missing. A TypeInitializationException is just a wrapper exception, and the real exception is in the InnerException property. It looks as if...

View Article

New Post: "TypeInitialization Expected" thrown on Bootstrapper

I'm such a noob, what namespace is "ArgumentNotNull" under in the category "Common Language Runtime Exceptions"? I clicked on "Find" in the "Break when an exception is:" dialog box and typed in...

View Article

New Post: "TypeInitialization Expected" thrown on Bootstrapper

Should be System.ArgumentNullException.

View Article
Browsing all 1760 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>