MichaelVinther Posted February 18, 2015 Share Posted February 18, 2015 HiI have three double properties and I want one of them to be disabled if both the two others have the value 1.0. My best guess was to do something like this in OnCreatePropertyCollection() List<PropertyCollectionRule> propRules = new List<PropertyCollectionRule>(); propRules.Add(new ReadOnlyBoundToNameValuesRule(PropertyNames.Threshold, false, TupleStruct<object, object>(PropertyNames.Alpha, 1.0), TupleStruct<object, object>(PropertyNames.Beta, 1.0))); but that has causes Threshold to be disabled if any of the others have the value 1.0, not only if both. Setting inverse=true does not give the desired result either. Isn't it possible to achieve this result? Quote Michael Vinther Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted February 18, 2015 Share Posted February 18, 2015 The link in this pinned thread might have the answer http://forums.getpaint.net/index.php?/topic/22046-tutorial-how-to-use-indirectui-rules/ Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
MichaelVinther Posted February 21, 2015 Author Share Posted February 21, 2015 Well, this is the post that gave me idea to use ReadOnlyBoundToNameValuesRule, but unfortunately it doesn't seem to be able to do what I need. Quote Michael Vinther Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.