Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Responsive markup extension doesn't work with Grid succinct syntax for Row/ColumnDefinitions #1237

Open
kazo0 opened this issue Sep 6, 2024 · 0 comments
Assignees
Labels
control/responsive Categorizes an issue or PR as relevant to Responsive-View,-Expression, or -Helper kind/bug Something isn't working

Comments

@kazo0
Copy link
Contributor

kazo0 commented Sep 6, 2024

This works:

<Grid>
	<Grid.RowDefinitions>
		<RowDefinition Height="*"/>
		<RowDefinition Height="{utu:Responsive Wide='0', Narrow='*'}"/>
	</Grid.RowDefinitions>
	<Grid.ColumnDefinitions>
		<ColumnDefinition Width="*"/>
		<ColumnDefinition Width="{utu:Responsive Wide='*', Narrow='0'}"/>
	</Grid.ColumnDefinitions>

	...

</Grid>

This doesn't:

<Grid RowDefinitions="{utu:Responsive Wide='*, 0', Narrow='*, *'}"
	  ColumnDefinitions="{utu:Responsive Wide='*, *', Narrow='*, 0'}">

	...

</Grid>

Error:

Property or indexer 'Grid.RowDefinitions' cannot be assigned to -- it is read only
Property or indexer 'Grid.ColumnDefinitions' cannot be assigned to -- it is read only

SuccintResponsive.zip

@kazo0 kazo0 added kind/bug Something isn't working control/responsive Categorizes an issue or PR as relevant to Responsive-View,-Expression, or -Helper labels Sep 6, 2024
@Xiaoy312 Xiaoy312 self-assigned this Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
control/responsive Categorizes an issue or PR as relevant to Responsive-View,-Expression, or -Helper kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants