diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-04-15 15:18:19 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-04-15 15:18:19 +0200 |
| commit | b0ceb4f3b5f812d9577a8a1caa8e07e304c50432 (patch) | |
| tree | 4b2a4025f99605d643037a88babbab0223aba521 /Samples/common/ui/Interfaces | |
| parent | 5b2f9d9b576f1009704d6d72a082c5b125699bcc (diff) | |
debug ObservableList, new Table widget
Diffstat (limited to 'Samples/common/ui/Interfaces')
| -rw-r--r-- | Samples/common/ui/Interfaces/Experimental/colorTable.crow | 12 | ||||
| -rw-r--r-- | Samples/common/ui/Interfaces/Experimental/table2.crow | 38 |
2 files changed, 32 insertions, 18 deletions
diff --git a/Samples/common/ui/Interfaces/Experimental/colorTable.crow b/Samples/common/ui/Interfaces/Experimental/colorTable.crow new file mode 100644 index 00000000..6da2b04a --- /dev/null +++ b/Samples/common/ui/Interfaces/Experimental/colorTable.crow @@ -0,0 +1,12 @@ +<ListBox Data="{TestList}" > + <Template> + <Table Name="ItemsContainer" Columns="name,Stretched;color,100"/> + </Template> + <ItemTemplate> + <TableRow> + <Label Text="{}" Margin="5" /> + <Widget Background="{}" Width="50" Height="10"/> + </TableRow> + </ItemTemplate> + +</ListBox>
\ No newline at end of file diff --git a/Samples/common/ui/Interfaces/Experimental/table2.crow b/Samples/common/ui/Interfaces/Experimental/table2.crow index 5416897c..4aa3eebb 100644 --- a/Samples/common/ui/Interfaces/Experimental/table2.crow +++ b/Samples/common/ui/Interfaces/Experimental/table2.crow @@ -1,18 +1,20 @@ -<Table Foreground="White" Columns="test,Fit;test,Fit" Background="White" Width="Fit" Height="Fit" Margin="1" Spacing="1" > - <TableRow Height="Fit" Spacing="1" Margin="0" - MouseEnter="{Background=RoyalBlue}" - MouseLeave="{Background=Transparent}"> - <Label Text="col1qsf" Margin="5" Background="0.3,0.3,0.3,0.8"/> - <Label Text="col1qsf" Margin="5" Background="0.3,0.3,0.3,0.8"/> - <Label Text="col1qsf" Margin="5" Background="0.3,0.3,0.3,0.8"/> - </TableRow> - <TableRow Height="Fit" Spacing="0" Margin="0" - MouseEnter="{Background=RoyalBlue}" - MouseLeave="{Background=Transparent}"> - <Label Text="col1qsf" Margin="5" Background="0.3,0.3,0.3,0.8"/> - <Label Text="col1qsf" Margin="5" Background="0.3,0.3,0.3,0.8"/> - <Label Text="col1qsf" Margin="5" Background="0.3,0.3,0.3,0.8"/> - </TableRow> - - -</Table>
\ No newline at end of file +<List Data="{TestList}"> + <Table Foreground="White" Columns="test,Fit;test,Fit" Width="Fit" Height="Fit" + Spacing="1" ColumnSpacing="1" + VerticalLineWidth="1" Margin="0" RowsMargin="0"> + <TableRow + MouseEnter="{Background=RoyalBlue}" + MouseLeave="{Background=Transparent}"> + <Label Text="col1qsf" Margin="5" /> + <Label Text="col1qsf" Margin="5" /> + <Label Text="col1qsf" Margin="5" /> + </TableRow> + <TableRow + MouseEnter="{Background=RoyalBlue}" + MouseLeave="{Background=Transparent}"> + <Label Text="col1qsf" Margin="5"/> + <Label Text="col1qsfsdqfdqsfdqsfdqsf" Margin="5"/> + <Label Text="col1qsfdsqfdqsf" Margin="5"/> + </TableRow> + </Table> +</List>
\ No newline at end of file |