-
By "Win8" do you mean WinRT? Some features of the WinRT runtime are more similar to Silverlight 2 than to modern XAML. As a result the PropertyInfo control uses the SL2 binding scheme because the modern binding scheme can't be implemented :( <csla:PropertyInfo Name="blah" Source...
-
Does anyone have an example of a Style for a TextBox using the PropertyInfo Control with CaliburnMicro? I have been trying to cobble something together based on the WP example but have had absolutely no success. I get the impression that the DataTriggers aren't firing but I have no idea what I am...
-
WinRT is missing some features used by the 'modern' PropertyInfo control in WPF/SL. The WinRT version of PropertyInfo uses an implementation more similar to what we did for Silverlight 2.0, which was also missing these features. As a result, the Property property can't be a binding expression...
-
I'm trying to use the PropertyInfo control in a WinRT app, and I can't get the binding to work correctly. I want to bind another control's appearance to the IsValid meta data for a BO property that the PropertyInfo control exposes. The problem is that the binding is triggered only once when...
-
I have the following XAML defined for the PropertyInfo control: <csla:PropertyInfo x:Name="piField1" Source="{Binding Model}" Property="{Binding Model.Field1}"/> I then have the following Border element with its BorderThickness bound to the PropertyInfo's IsValid...
-
I have a property using an enum and an int on the private backing field: public static readonly PropertyInfo < TransactionStatusEnum > TransactionStatusProperty = RegisterProperty< TransactionStatusEnum >(c => c.TransactionStatusID, "TransactionStatus" , TransactionStatusEnum...
-
Although it is relatively complex, most of the WPF/SL samples now use a style (defined in App.xaml) for the TextBox control that relies on the PropertyInfo control to do its work. The style gets its information from PropertyInfo and uses that information to control the appearance of the TextBox control...
-
Hello, I have implemented MyPropertyInfo<T> derived from PropertyInfo<T> and a custom PropertyInfoFactory which returns my derived type. My BO declaration however uses the lambda RegisterProperty overload and is declared as PropertyInfo<T>, not my subclassed type private static PropertyInfo...
-
Given a business object called “Rectangle” consisting of three integer properties “Width”, “Height” and a read-only “Area”. Would you make the read-only “Area” property a full blown PropertyInfo property? If so, you would need to create a rule...
-
You are thinking of putting a PropertyStatus control on a form, and not specifying a property for the control, so it would know to pick up object level broken rules? This wouldn't be terribly hard to do, but I wonder about the visual representation? Where would you have the error icon appear? And...
-
HI All, please someone tell me how to set child property into null value when the root object is initialize... i need this because of my specific business case, i have a parent object that contain a lot of editable child property inside, and sometimes user can fill in some of the child information (not...
-
I know that FieldManager is exposed as a protected property within BusinessBase. Why isn't PropertyInfoManager setup the same way? From what I can gather, PropertyInfoManger maintains a dictionary of Types and a list of each Type’s PropertyInfo(s). It would seem easier to just have a list of...
-
I've started our mainline transition to CSLA 4.0 (which includes our own in-house code generation using a DSL Language). I've added support for the new RelationshipTypes parameter used by some of the RegisterProperty overloads and it works great! However, I ran into an issue when using a private...
-
i was just going over the ProjectTracker examples from 4.0.1 vs my older 3.6.2 and i was wondering why all of the dataportal methods only use LoadProperty and ReadProperty for SmartDate fields and not on all properties when they are being set or retrieved? wouldn't you want to bypass all the authorization...
-
Hi Rocky I'm going through the MVVM video series and it occurred to me that it would be very nice if the ViewModel.BeginRefresh( string methodName ) method was capable of using a "non-magic string" syntax like like we do with the RegisterProperty convention? The RegisterProperty scenario...
-
HI, In one of my model class I registered a property using CSLA.PropertyInfo<T> object. private static PropertyInfo < string > LastNameProperty = RegisterProperty< string >( new PropertyInfo < string >( "LastName" , "Last Name" , string .Empty)); Now at the...
-
PropertyInfoFactory and Silverlight I am trying to Create Custom FieldData Classes in CSLA according to Jason Bock's article . It works great in WPF, however it does NOT work in Silverlight. Jason mentions The point to take away here is you must set the Factory property somewhere at the "beginning"...
-
I have been using CSLA 3.8.2 w/VB in a new application. I had been using syntax from CSLA 2.0 for properties and decided to switch to the new PropertyInfo method. I rewrote a lot of code, but when I tried running it I received the error {"The type initializer for 'EPM.Library.OwnerBase'...
-
When creating an abstract base type, that type must be generic. Or you can't use the generic overloads of RegisterProperty() - the choice is yours. Obviously the type T is frozen at the point where your types become non-generic - that's the way generics work. Using things like stack traces and...
-
When the book was written I think the base method was empty. I don't think that is still true, and you should call the base method. However, you should know that the _forceInit trick discussed in that section doesn't appear to be reliable in .NET 4 and SL4. Microsoft appears to have added more...