Skip to content

Commit

Permalink
enable ClearTypeHint for ComboBox popup (items)
Browse files Browse the repository at this point in the history
  • Loading branch information
punker76 committed Sep 2, 2014
1 parent 0f7bd6e commit 325cea1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions MahApps.Metro/Styles/Controls.ComboBox.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@
Opacity="0" />
<!-- AllowsTransparency="true" fixes the redraw problem under windows vista/7 with a selected non aero theme -->
<Popup x:Name="PART_Popup"
AllowsTransparency="true"
AllowsTransparency="True"
Focusable="False"
IsOpen="{Binding IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}"
PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}"
Expand Down Expand Up @@ -383,8 +383,10 @@
Value="Left" />
<Setter Property="VerticalContentAlignment"
Value="Top" />
<Setter Property="RenderOptions.ClearTypeHint"

This comment has been minimized.

Copy link
@mahara

mahara Sep 3, 2014

Should RenderOptions.ClearTypeHint be explicitly specified, or left it to inherit from its parent (e.g.: Window)?

This comment has been minimized.

Copy link
@mahara

mahara Sep 3, 2014

Hmm... I tried to remove it, and ClearType suddenly disabled again on ComboBoxItem.
Although I don't really understand why it behaves that way.

Value="Enabled" />
<Setter Property="Background"
Value="{DynamicResource TransparentWhiteBrush}" />
Value="{DynamicResource WhiteBrush}" />
<Setter Property="BorderThickness"
Value="1" />
<Setter Property="Template">
Expand Down

0 comments on commit 325cea1

Please sign in to comment.