We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I redefined Style for creating custom ComboBox with popup with 2 columns, but Grid.IsSharedSizeScope="True" is not working
<Popup Name="PART_Popup" WindowManagerAddShadowHint="False" IsOpen="{TemplateBinding IsDropDownOpen, Mode=TwoWay}" MinWidth="{Binding Bounds.Width, RelativeSource={RelativeSource TemplatedParent}}" MaxHeight="{TemplateBinding MaxDropDownHeight}" PlacementTarget="Background" IsLightDismissEnabled="True" InheritsTransform="True"> <Border x:Name="PopupBorder" Background="{DynamicResource ComboBoxDropDownBackground}" BorderBrush="{DynamicResource ComboBoxDropDownBorderBrush}" BorderThickness="{DynamicResource ComboBoxDropdownBorderThickness}" Padding="{DynamicResource ComboBoxDropdownBorderPadding}" HorizontalAlignment="Stretch" CornerRadius="{DynamicResource OverlayCornerRadius}" > <DockPanel Grid.IsSharedSizeScope="True"> <TextBlock Text="This combobox is modified" DockPanel.Dock="Top"/> <ScrollViewer HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}" IsDeferredScrollingEnabled="{TemplateBinding (ScrollViewer.IsDeferredScrollingEnabled)}" HorizontalContentAlignment="Stretch"> <ItemsPresenter Name="PART_ItemsPresenter" Margin="{DynamicResource ComboBoxDropdownContentMargin}" ItemsPanel="{TemplateBinding ItemsPanel}" /> </ScrollViewer> </DockPanel> </Border> </Popup>
Same layout without popup is working
<DockPanel Grid.IsSharedSizeScope="True"> <Grid DockPanel.Dock="Top"> <Grid.ColumnDefinitions> <ColumnDefinition Width="16"/> <ColumnDefinition Width="Auto" SharedSizeGroup="NameGroup"/> <ColumnDefinition Width="16"/> <ColumnDefinition Width="Auto" SharedSizeGroup="CountGroup"/> </Grid.ColumnDefinitions> <TextBlock Grid.Column="1" Text="Name" Background="Red"/> <TextBlock Grid.Column="3" Text="Count" Background="Blue"/> </Grid> <ScrollViewer Margin="0"> <ItemsControl ItemsSource="{Binding Path=Items}"> <ItemsControl.ItemTemplate> <DataTemplate x:DataType="vm:Item"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="16"/> <ColumnDefinition Width="Auto" SharedSizeGroup="NameGroup"/> <ColumnDefinition Width="16"/> <ColumnDefinition Width="Auto" SharedSizeGroup="CountGroup"/> </Grid.ColumnDefinitions> <TextBlock Grid.Column="1" Text="{Binding Path=Name}" Background="Red"/> <TextBlock Grid.Column="3" Text="{Binding Path=Count}" Background="Blue" /> </Grid> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> </ScrollViewer> </DockPanel>
Sample is located here - https://github.com/AlexeiScherbakov/AvaloniaGridSharedScopeBug
IsSharedSizeScope is working
11.0.0, 11.0.4
Windows
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
I redefined Style for creating custom ComboBox with popup with 2 columns, but Grid.IsSharedSizeScope="True" is not working
Same layout without popup is working
To Reproduce
Sample is located here - https://github.com/AlexeiScherbakov/AvaloniaGridSharedScopeBug
Expected behavior
IsSharedSizeScope is working
Avalonia version
11.0.0, 11.0.4
OS
Windows
Additional context
No response
The text was updated successfully, but these errors were encountered: