DISQUS

fortes.com: Using Viewbox

  • Kenny · 4 years ago
    Can you get hittesting while if you element contained within a Viewbox? Are there any limitation if compare to your element that are directly under ?
  • Kenny · 4 years ago
    Can you get hittesting while if you element contained within a Viewbox? Are there any limitation if compare to your element that are directly under ?
  • Fortes · 4 years ago
    Kenny: All the hittesting still works, and there are no limitations placed upon the child of a Viewbox.

    I'll be posting another example tomorrow that shows Viewbox in a (slightly) more complicated scenario.
  • Fortes · 4 years ago
    Kenny: All the hittesting still works, and there are no limitations placed upon the child of a Viewbox.

    I'll be posting another example tomorrow that shows Viewbox in a (slightly) more complicated scenario.
  • Vaibhav Kamath · 4 years ago
    I had written a couple of samples using the Nov. CTP where width and height properties on canvases / grids were set to 100%, the new March CTP does not seem to take values as %. What has changed and how do I set width, height as %.

    Thanks,
    Vaibhav
  • Vaibhav Kamath · 4 years ago
    I had written a couple of samples using the Nov. CTP where width and height properties on canvases / grids were set to 100%, the new March CTP does not seem to take values as %. What has changed and how do I set width, height as %.

    Thanks,
    Vaibhav
  • Vaibhav Kamath · 4 years ago
    Sorry I should have checked the following link from Nathan's web site and found the answer to my question.

    http://msdn.microsoft.com/longhorn/?pull=/libra...

    The Answer:
    Many properties (Height, Width, Top, Bottom, etc.) are now of type Double as opposed to type Length. Also, percentages cannot be used to set relative properties any longer. Instead, to achieve the effect of 100%, set the HorizontalAlignment and VerticalAlignment properties to Stretch.

    Thanks,
    Vaibhav
  • Vaibhav Kamath · 4 years ago
    Sorry I should have checked the following link from Nathan's web site and found the answer to my question.

    http://msdn.microsoft.com/longhorn/?pull=/libra...

    The Answer:
    Many properties (Height, Width, Top, Bottom, etc.) are now of type Double as opposed to type Length. Also, percentages cannot be used to set relative properties any longer. Instead, to achieve the effect of 100%, set the HorizontalAlignment and VerticalAlignment properties to Stretch.

    Thanks,
    Vaibhav