How to access the button contained by a CompletionFilter?

SyntaxEditor for WPF Forum

Posted 7 years ago by IneedHelp
Version: 16.1.0633
Avatar

I am trying to create a "sort items" button for a CompletionSession and for that purpose I am using a CompletionFilter set as a ToggleButton.

Is there any way to access the buton contained by the CompletionFilter?

 

Note: I know that the completion session has items sorting capability, but I am interested in implementing dynamic items sorting so that the user can use the list of items either in initial enumeration or sorted.

[Modified 7 years ago]

Comments (2)

Answer - Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

There isn't an easy way to get at the generated button.  You might be able to make a class that inherits CompletionSession and override this method:

protected virtual IntelliPromptCompletionList CreatePopupContent() {...}

Call the base method and in the control that is returned, look down the visual tree for the button.  I think that might allow you to get access to it.


Actipro Software Support

Posted 7 years ago by IneedHelp
Avatar

Excellent, thank you very much!

[Modified 7 years ago]

The latest build of this product (v24.1.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.