Advanced Forum Search Results
-
As I said before Canvas is a special container. It is the only Panel that does not clip its children - that is why you can see Rectangle inside Canvas with zero size. In some cases such behavior is useful.
If you need a panel that resize itself to its content size then I can recommend you to write your own Panel (it will be very simple in your ...
-
I have one Button on my LayoutRoot panel:
<UserControl x:Class="SilverlightApplication3.Page"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Width="400" ...
-
This is a correct behavior: you do not set any Width or Height of your canvas and that is why it has zero size. You assume that Canvas will have the size of its children and this assumption is wrong. Also you cannot see this canvas because it does not have Background assigned :-)
-
I think you can get the size of Popup's child after you assign true to IsOpen. Something like this should work:
var popup = new Popup();
popup.Child = separator;
popup.IsOpen = true;
separator.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));
var size = separator.DesiredSize;
-
I think this happens with any 1.1a webapplication. I tried several times - got the same result: browser gets redirected to the SL 1.0 installation page.
-
[quote user="robert.pieprzny"]
BrowserHost.Resize fired only when width of Browser is changed !!!!
[/quote]
You need to show us your .html file. I remember such problem can appear if the CSS style for the div hosting Silverlight plug-in is not right.
-
Guys, this is "Report a Silverlight Bug" forum, right? I report what I think is a bug. What I need is a confirmation from MS that this is really a bug and it will be fixed or not fixed. I did not ask for a workaround (especially such workaround), I can find it myself.
Yi-Lun Luo, you work at MS. So can you confirm that this is bug ...
-
I have a canvas with the Clip equal to its bounds and null (or Transparent) Background. This canvas has another canvas as a child. Child canvas has the same bounds as parent canvas and has Background set to some color. When I change the Opacity of the parent canvas nothing changes. When I remove Clip from the parent canvas or change its Background ...
-
I can find a workaround - it is not a big deal. I posted info about this bug here so it can be fixed by MS in the future.
-
Right now in Silverlight visual tree = logical tree. So you have Canvas, Canvas.Children and Parent - that is all you need to walk the tree up and down.