-
Notifications
You must be signed in to change notification settings - Fork 146
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
Style for ComboBox breaks HorizontalContentAlignment #5
Comments
An issue still persists after f6c107e. <ComboBox ItemsSource="{Binding ComboBoxItems}"
HorizontalContentAlignment="Stretch">
<ComboBox.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="8"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="12"/> <!-- this line fixes the problem -->
</Grid.ColumnDefinitions>
<!-- Text on the left edge -->
<TextBlock Grid.Column="0"
Text="Left edge"/>
<!-- Text on the right edge -->
<TextBlock Grid.Column="3"
Text="Right edge"/>
</Grid>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox> The problem with this fix is, that in the unfolded state this margin is present too |
…ates (#5) and text selection on editable comboboxes
First fix seemed to work for editable ComboBoxes only, sorry for that. |
- update AdonisUI and remove temporary fix for benruehl/adonis-ui#5 - update Smaragd - add tooltip to button in the application toolbar - remove unused style - show local datetime instead of UTC - show relative date if the date was recently
Setting
HorizontalContentAlignment
has no effect when the style is active. Adding an empty style like the following fixes the problem, so its definitely caused by the custom style:The text was updated successfully, but these errors were encountered: