JaraIO

fly code eat repeat


Project maintained by jaysonragasa Hosted on GitHub Pages — Theme by mattgraham

Jara.Xaml.Control Extensions

An extension libraries for XAML controls using attached attributes.

https://raw.githubusercontent.com/jaysonragasa/jaraimages/master/JaraXamlControlExtensions/2020-04-16_1543.png
https://raw.githubusercontent.com/jaysonragasa/jaraimages/master/JaraXamlControlExtensions/2020-04-16_1636.png

FORKED

forked from my old GitHub repo JaraIOGridControlAbstractions. I’m just moving stuff.

Controls

Grid

GridEx Attached Attributes

Special characters

In part of making it even more easier to create Rows and Columns. There are new special characters as an alternative to the following. But that does not mean you cannot use the old values.

Usage

Add new namespace in your xaml

Creating rows or columns

<Grid jio:GridEx.RowDefinitions="Auto,*,2*,50,Auto">

or

<Grid jio:GridEx.RowDefinitions="Auto * 2* 50 auto">

or

<Grid jio:GridEx.RowDefinitions="~ * 2* 50 ~">

And these values can be used in ColumnDefinitions or GridDefinitions

Creating rows AND columns
You can use GridDefinition if you’re planning to add rows AND columns.
Create 2 rows and 2 columns.
<Grid jio:GridEx.GridDefinitions="~ */~ *">
Notice the slash (/) which only separates the values for the Rows and Columns.

Placing your element to a specific row and column or span your element
use RowColumn to place an element in a specific row and column.

History

1.3

1.2

i.e
GridDefinitions=”~ * / * *“
– This will create 2 rows and 2 columns. The height of the first Row is set to Auto and the second is set to Star. Two new columns are set to Star. Note: Doesn’t matter if you added spaces before and after the Slash. So it can be =”~ */* *”
GridDefinitions=”~ ~/*2 *“
– This is another example
GridDefinitions=”/*2 *“
– Notice the slash as the first chracter. This will create a column instead of a row.
GridDefinitions=”*2 */” or GridDefinitions=”*2 *“
– Notice the slash at the end or the other doesn’t have it? This will create rows only!
GridDefinitions=”Auto ~ *,*“
– This will create four rows. First and second row is set to Auto. Third and Forth are set to Star
RowColumn=”0/1”
– Will set the current element in the first row of the grid and in second column of the grid.
RowColumn=”0 2/1”
– Will set the current element in the first row of the grid spanning upto the second and then it will place the element in the second column.

1.1

1.0