I am trying to implement a zoom function for a templated RadTree, and would like to tie the scale to a slider. However I do not want to set the ScaleX/ScaleY values on the RadTree itself, as this does not achieve the desired results. Setting the scale on the RadTree itself causes the entire control to shrink, I just want the items in the tree to shrink/grow while the RadTree itself continues to take up the entire screen. I did find that using template binding I could set the Render Transform for the ItemPresenter in a radtree template to the same RenderTransform of the RadTree, and this did shrink the items correctly, but obviously, it also shrank the RadTree control.
I did try making a ScaleTransform resource and setting its ScaleX/ScaleY values to the vlaue of a slider, but this caused invalid XAML, as if you can't do element binding to the scaleX/ScaleY. I'm sure there is a simple solution to this, but how can I set the scale of the ItemPresenter without having to set the RenderTransform of the RadTree and still have it tied to a slider control? Any Examples would be great!
Thanks,
Michael
I did try making a ScaleTransform resource and setting its ScaleX/ScaleY values to the vlaue of a slider, but this caused invalid XAML, as if you can't do element binding to the scaleX/ScaleY. I'm sure there is a simple solution to this, but how can I set the scale of the ItemPresenter without having to set the RenderTransform of the RadTree and still have it tied to a slider control? Any Examples would be great!
Thanks,
Michael