Resizing
Posted: 15 Jan 2015, 02:30
I notice in XAML Player that if you resize the window, whatever XAML you're viewing will resize accordingly based on the windows dimensions. I can't seem to replicate this behavior based on whatever screen size the player has defined.
My assumption was to apply a scaleTransform to the XAML root via SetRenderTransform, but this doesn't seem to work.
Just as an example, what I'm trying to use is...
...with the scale values based on the screen dimensions and the original size of the XAML root. This doesn't seem to work though. I'm fairly certain I'm just noob-ishly overlooking the obvious here. Any help would be appreciated 
Thanks
My assumption was to apply a scaleTransform to the XAML root via SetRenderTransform, but this doesn't seem to work.
Just as an example, what I'm trying to use is...
Code: Select all
Noesis::Gui::ScaleTransform* xform_it;
xform_it->SetScaleX(0.5);
xform_it->SetScaleY(0.5);
uiRoot->SetRenderTransform(xform_it);
Thanks