Update on this: If I explicitly set the "Stretch" property to "Fill", then the rendering comes out right. <Rectangle Grid.Row="1" Stretch="Fill" Margin="0,5,0,0" Fill="#FFFF0000" /> But why should we go on to the explicit path? The preview ...
So, it appears that the computed size of a rectangle inside a Grid is not always right. If you create a simple view, with grid having 2 rows, and put a rectangle in second row, the rectangle size is very tiny (or empty.) <Page x:Class="XTest1.MainPage" xmlns="http://schemas.microsoft....
Hi, Has it already been brought to your notice that the rending of XAML page is very slow in VS? I use VS 2015 CE; got Intel i7, 8 GB RAM. Is this not enough? When I change the XAML code and save, VS kind of freezes, blocks further editing, until the XAML is validated and rendering of XAML is done. ...
Hi, When I try to bind the attached property, then there is compilation error reported. Why is that? ... <Canvas Canvas.Left="{Binding LeftPanel.X}" Canvas.Top="{Binding LeftPanel.Y}" Background="Red" /> ... Error: Severity Code Description Project File Line Suppression...
Hi team, I'm afraid you have misunderstood the use of the property "HorizontalAlignment". You are confusing it with "HorizontalContentAlignment", probably. When HorizontalAlignment="Center" is set to canvas, the canvas itself must align to center of the space, in its pa...
Hi just downloaded the beta 10 version and created the default calculator sample app. In browsers that I tried, Edge and Chrome, the default app is located in top-left corner, even though the default XAML code states that the canvas has to be aligned horizontally to center. <Canvas Height="415&...