Skip to content

Commit 51ae635

Browse files
committed
Update 2019-01-25-Showing-Gridlines-In-Xamarin-Forms-Previewer.md
1 parent c3cb7f6 commit 51ae635

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

_drafts/2019-01-25-Showing-Gridlines-In-Xamarin-Forms-Previewer.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,16 @@ Here is an example of what this looks like in practice:
341341

342342
Here is the resulting Previewer image:
343343

344-
![Screen Shot 2019-02-19 at 14.29.41.png]({{site.baseurl}}/_drafts/Screen Shot 2019-02-19 at 14.29.41.png)
344+
![Previewer.png]({{site.baseurl}}/_drafts/images/Previewer.png)
345+
346+
347+
For those wondering, the `ReflectionHelper` object is a static object that is performs reflection on the Xamarin.Forms `Grid`'s `ColumnDefinition` and `RowDefinition` properties called "ActualWidth" and "ActualHeight". I've submitted a GitHub issue to ask for these properties to be surfaced as `public` access, but until that happens we have to take this more risky approach.
345348

346349
Now we have a `PreviewGrid` that can show its `Padding` and grid lines on demand. It works the same way as the built-in `Grid`, and shows its grid only when it detects that it is running in the Previewer.
347350

351+
<div class="featured">
352+
<a href="{{ page.url }}">
353+
<img src="{{site.url}}/imagesPreviewer.png" />
354+
</a>
355+
</div>
348356

0 commit comments

Comments
 (0)