Skip to content

Using Adorners on the buttons #1172

Answered by Taldrit78
Taldrit78 asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, I found my solution...
If I create a AdornerDecorator and put the Button inside and THEN try to get the AdornerLayer I can manipulate it:

                            Button button = new Button()
                            {
                                KeyTip = buttonData.KeyTip
                            };
                            AdornerDecorator adornerDecorator = new AdornerDecorator
                            {
                                Child = button
                            };

                            if (buttonData.Highlight != null)
                            {
                                AdornerLayer adornerLayer = AdornerLayer.GetAdornerLayer(but…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@batzen
Comment options

Answer selected by batzen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants