Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Custom hanldles UI (Read 1239 times)
Denis_Vuyka
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Mar 23rd, 2010
Custom hanldles UI
Mar 29th, 2010 at 6:53pm
Print Post  
I need providing more beautiful handles than squares (special icons for instance). What should I override in order to replace default ones?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Custom hanldles UI
Reply #1 - Mar 30th, 2010 at 8:36am
Print Post  
The handles are defined as protected List<System.Windows.Shapes.Shape> handles; so you won't be able to replace them with Image controls, but you could paint them using an ImageBrush. Try to override AddHandlesToCanvas(positions) and after calling the base method loop over the handles list and set the shapes' Brush.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Denis_Vuyka
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Mar 23rd, 2010
Re: Custom hanldles UI
Reply #2 - Mar 31st, 2010 at 1:15pm
Print Post  
Thanks this workaround helped. However it is good to have such support out of box. At least the property for the brush.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint