ID

Uploaded

Status

Description

Work Items

Action

14931
by outbred
Aug 3, 2013
7:01 PM

Being evaluated

I've been using Cinch in our commercial product MPE+ (http://www.accessdata.com/mpe-clickonce) for a couple of years now (since its WPF inception) and have made some additions/changes to your framework for what I wanted to get out of it.

It's high time I push those changes back up to you so that you can decide whether to incorporate them or not.

The modified WPFMessageBoxService fully supports localization and explicitly having a parent window.
The WPFSaveFileService now supports a default extension.
I added a DispatcherService (may be redundant with MEFedMVVM, I know, but mine's better :)) and a FolderBrowserService that natively supports the new style browser dialog in Vista/Win 7.

I prefer the DispatcherService I put into Cinch b/c it always tries to avoid UI thread locks, which we would otherwise encounter from time to time in our complex, multi-threaded app.

I've uploaded a zip only of the V2 (VS2010 and SL) folder for your perusal.

Thanks for all your work on this! And hopefully, you get some functionality for free from this. :)

Download

7947
by HelmutE
Jan 3, 2011
9:14 AM

Being evaluated

Patch to being able to call Dispose() on the view through it's data item WorkspaceData.
Just call Dispose() on the WorkspaceData so it's going to call the Dispose() of the view, if it implements IDisposable.

Added a call to Dispose() on closing a tab in TabcontrolEx on it's data item.

Download

5917
by DanielRose
May 10, 2010
11:00 AM

Being evaluated

Minor fixes to UnityProvider:
- Changed #if debug to #if DEBUG. Since code is now compiled in debug-builds, added #using System.Diagnostics
- Used string alias instead of String
- Rethrow the exception to preserve stack trace.
- Fixed some spelling errors.

Download

5896
by DanielRose
May 5, 2010
10:37 AM

Being evaluated

I took the NumericTextBoxBehavior and slightly modified it to produce IntegerTextBoxBehavior. I simply changed the Regex so only integers are valid.

This could be done using a common base class in the future, but for now I simply copied the code.

Download

5070
by manuvdp
Jan 25, 2010
8:29 AM

Applied

patch for DispatcherNotifiedObservableCollection

AddRange method and RemoveRange method added.


Applied May 4, 2010: Done

Download

4855
by Manuvdp
Jan 7, 2010
4:33 PM

Applied

Patch for DispatcherNotifiedObservableCollection : AddRange and RemoveRange so its possible to do an BulkAdd

source article :
http://khason.net/blog/how-to-addrangeremoverange-in-silverlight-observablecollectiont/

Greetz
Manu
http://www.manuvdp.be


Applied May 4, 2010: Done

Download

5025
by DanielRose
Jan 22, 2010
11:41 AM

Applied

I expanded the RegexRule to allow setting RegexOptions for doing the matching. An additional (optional) parameter to the constructor allows passing the options. If none are specified, RegexOptions.None is used.


Applied May 4, 2010: Did these aready

Download

4469
by Manuvdp
Nov 18, 2009
9:10 PM

Applied

Here is a set of 10 code snippets for visual studio for the Cinch framework. They will really boost development ( I think :o) )
just type:
'cinch' and then press the TAB key

Whats inside:
0. Cinch: EditableValidatingObject overrides
1. Cinch: INotifyPropertyChanged for reference type
2. Cinch: INotifyPropertyChanged for value type
3. Cinch: INotifyPropertyChanged + DataWrapper for reference type
4. Cinch: INotifyPropertyChanged + DataWrapper for value type
5. Cinch: INotifyPropertyChanged for collections
6. Cinch: INotifyPropertyChanged
7. Cinch: Command
8. Cinch: Background worker
9. Cinch: ViewMode


Installation:
Unzip and copy the file in
C:\Users\*****USERNAME*****\Documents\Visual Studio 2008\Code Snippets\Visual C#\My Code Snippets\


Greetz
Manu


Applied May 4, 2010: did these already

Download

4465
by manuvdp
Nov 18, 2009
10:13 AM

Applied

Code snippet for Cinch Property
Copy this file in
C:\Users\*****USERNAME*****\Documents\Visual Studio 2008\Code Snippets\Visual C#\My Code Snippets

Greetz
Manu


Applied May 4, 2010: Did these already

Download

4922
by GONZ01D
Jan 13, 2010
1:04 PM

Applied

I am using your framework to great effect and it's made my life a lot easier - kudos.

I have experienced one problem though when hosting a WPF usercontrol in an elementhost in a WinForms app that creates a popup.

In this scenario the following code in the WPFUIVisualizerService.CreateWindow() method causes an unhandled exception :

if (setOwner)
win.Owner = Application.Current.MainWindow;

This is due to the Application.Current property being null because my WPF User Control is being used via a WinForms elementhost and as such will not have an Application instance as would normally be expected for a standard WPF app.

To resolve this I made a code change:

if (setOwner)
{
if (Application.Current != null)
{
//The Application.Current property may be null when WPF is being used via a WinForms elementHost control.
win.Owner = Application.Current.MainWindow;
}
}

I'd like to suggest the above code change as an update to your class as it will cover both circumstances in which the popup may be used.

Many thanks and keep up the good work!

Regards,

Gareth


Applied May 4, 2010: I have now included this in codebase

Download

View All