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

[Grid] Controls in Grid are not clipped by the cells' bounds #18078

Closed
Poker-sang opened this issue Jan 30, 2025 · 1 comment
Closed

[Grid] Controls in Grid are not clipped by the cells' bounds #18078

Poker-sang opened this issue Jan 30, 2025 · 1 comment
Labels

Comments

@Poker-sang
Copy link
Contributor

Describe the bug

Avalonia's behavior

Image

WinUI3's behavior

Image

WPF's behavior

Image

To Reproduce

<Grid>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>
    <Button
        Grid.Row="0"
        Grid.Column="0"
        Width="80"
        Height="80"
        Content="R0 C0" />
    <Button
        Grid.Row="0"
        Grid.Column="1"
        Width="80"
        Height="40"
        Content="R0 C1" />
</Grid>

Expected behavior

Controls in Grid should be clipped by the cells' bounds

Avalonia version

11.2.1

OS

Windows

Additional context

No response

@Poker-sang
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant