MaterialDesignInXAML/MaterialDesignInXamlToolkit

Scale transforms do not render consistently

オープン

#1,064 opened on 2018/10/10

 (1 件のコメント) (1 件のリアクション) (0 人の担当者)C# (3,500 件のフォーク)batch import
Hacktoberfestbug

Repository metrics

Stars
 (16,143 個のスター)
PR merge metrics
 (平均マージ 2d 7h) (30d で 9 merged PRs)

説明

Reproduction steps: Apply a ScaleTransform to the ContentControl in the MainWindow of the demo app.

<ContentControl Content="{Binding ElementName=DemoItemsListBox, Path=SelectedItem.Content}">
    <ContentControl.LayoutTransform>
        <ScaleTransform ScaleX="1.3" ScaleY="1.3" />
    </ContentControl.LayoutTransform>
</ContentControl>

The problem can be observed with most of the controls that have fine lines. ComboBox and TextBox both use the Underline control, and Slider is another obvious one. The issue is that the rendered thickness of these lines is inconsistent.

This problem is typically resolved with the UseLayoutRounding and SnapToDevicePixels

The "fix" for this may be partially or fully in the demo application, in which case those changes should be documented here.

image image image

コントリビューターガイド