Closed javidang closed 7 years ago
I found very very hacky way. But because it is attached property, compiler does not recognize <Interaction.Triggers>
and makes adjusted control to disappear
Do you talk about SharpDevelop or WPFDesigner? When I look in the Example, there is no ContextMenu on the Events Section!
I am talking about WPFDesigner. I mean, after switching to events section, there is Textbox
to put event name, and "right click" on it will bring text editor context menu (copy/pate/delete). I meant that one. But I adjusted it so when any text inputted, in code behind it adds the corresponding code for event binding.
I don't understand one thing, even I add corresponding libraries, to parserSettings
it does not recognize it during parsing.
So the Problem is in your Code, not the WpfDesigner?
I don't understand one thing, even I add corresponding libraries, to parserSettings it does not recognize it during parsing.
What does the Parser not recognize?
Sure problem is not in WpfDesigner. As it "new" thing to parse attached properties such Interactivity.Triggers
this method
static XamlPropertyInfo FindAttachedProperty(Type elementType, string propertyName)
{
XamlPropertyInfo pi = TryFindAttachedProperty(elementType, propertyName);
if (pi == null) {
pi = TryFindAttachedEvent(elementType, propertyName);
}
if (pi != null) {
return pi;
} else {
throw new XamlLoadException("attached property " + elementType.Name + "." + propertyName + " not found");
}
}
cannot find it. I am not blaming anyone I just saying what I have encountered.
If you use the current Version (not the Nuget) then the parsing should work
If started today to work on support for Triggers and Behaviors (via a Addon Assembly), but I've no Schedule when it will be ready (because I'm going on Holiday on Friday)
If you use the current Version (not the Nuget) then the parsing should work
I am using this version.
If started today to work on support for Triggers and Behaviors (via a Addon Assembly), but I've no Schedule when it will be ready (because I'm going on Holiday on Friday)
I will try to make it work. But probably it will take long as I am not experienced on this project. By the way, happy vacations.
hey @jogibear9988 , have you made any progress on the Triggers & Behaviors front?
there is a extension dll wich supports it
What I am intend to do: if I open context menu on events section of property grid, there will be set binding option, which will do following if clicked - will add attached property to element. For example. If I try to add binding to
Loaded
event ofGrid
, following will be added toText
and these to declaration of window.
I am actually on it, but haven't completed "research" of code, and understand if it possible to insert corresponding text as child to parent element.