Skip to content

Unpredictable behavior of multiline ComboBox with hint #3675

@omllmo

Description

@omllmo

Bug explanation

1

Style Combobox - 'MaterialDesignFloatingHintComboBox'.
If ComboBoxItem takes up several lines, then ComboBox begins to behave incorrectly.

<Grid Width="500"  HorizontalAlignment="Stretch" Margin="15">
         <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
           </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                 <ColumnDefinition />
                 <ColumnDefinition Width="Auto" />
             </Grid.ColumnDefinitions>
             <materialDesign:PackIcon Kind="CardAccountMailOutline" Height="25" Width="25"/>
              <TextBlock Text="Test Test Test" Margin="30 2 0 10" Grid.ColumnSpan="3" VerticalAlignment="Bottom" FontSize="15"/>
               <Border HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Grid.ColumnSpan="3"
                            BorderBrush="{StaticResource WindowTitleColorBrush}" BorderThickness="1" Height="1"/>
                <ComboBox FontSize="14"
                              Grid.Row="1" Margin="10 30 0 0"
                              materialDesign:HintAssist.Hint="Test Test Test Test "
                              materialDesign:HintAssist.IsFloating="True"
                              materialDesign:TextFieldAssist.OutlinedBorderActiveThickness="0 0 0 0"
                              materialDesign:HintAssist.FloatingOffset="0 -25"
                              materialDesign:HintAssist.FloatingScale="1"
                              ItemTemplate="{StaticResource This.DataTemplate.Combobox.Items.UserMinInfo}"
                              SelectionChanged="CBSetupRecipientVisibleButton_SelectionChanged"/>
</Grid>

Version

5.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugevaluation requiredItems is pending review or evaluation by the team

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions