Ask a questionAsk a question
 

AnswerVisualBrush question

  • Wednesday, November 04, 2009 7:43 PMZest4Quest Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I have a combobox with the items in the form of checkboxes..I want to show the items checked as a ToolTip using VisualBrush when the combobox is collapsed..Is that possible? what i am trying to do is show the image of the combobox in its expanded form as a tooltip..
    Please advice..
    Thanks

Answers

  • Wednesday, November 04, 2009 8:46 PMFoovanadil Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    If you wrap your checkbox in a decorator object you should get what you want. Normally, when you collapse and element the visual brush will also be collapsed. However, if you wrap the checkbox in a decorator and collapse the decorator it won't effect the child Visibility setting. If your VisualBrush is looking at the checkbox directly (not the decorator) it will show correctly.

    Hope that helps.
    • Marked As Answer byZest4Quest Wednesday, November 04, 2009 9:28 PM
    •  

All Replies

  • Wednesday, November 04, 2009 8:46 PMFoovanadil Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    If you wrap your checkbox in a decorator object you should get what you want. Normally, when you collapse and element the visual brush will also be collapsed. However, if you wrap the checkbox in a decorator and collapse the decorator it won't effect the child Visibility setting. If your VisualBrush is looking at the checkbox directly (not the decorator) it will show correctly.

    Hope that helps.
    • Marked As Answer byZest4Quest Wednesday, November 04, 2009 9:28 PM
    •