Materialdesigninxamltoolkit: PackIcon on Button

Created on 19 Jun 2018  路  5Comments  路  Source: MaterialDesignInXAML/MaterialDesignInXamlToolkit

I have problem with material Pack Icon because when i use in on the buttons or any of objects may icon become half or not align center even i use the vertical and horizontal alignment or verticalcontent and horizontalcontent alignment.. Pack Icon size always small even i set it 64x64
wpf1

Waiting on feedback

Most helpful comment

how to use icon and text on the same button?

All 5 comments

                <materialDesign:PackIcon Kind="Gift">
                    <materialDesign:PackIcon.LayoutTransform>
                        <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2" ScaleY="2"/>
                    </materialDesign:PackIcon.LayoutTransform>
                </materialDesign:PackIcon>

how to use icon and text on the same button?

how to use icon and text on the same button?

    <Button Height="32" Width="96">
        <StackPanel Orientation="Horizontal">
            <materialDesign:PackIcon Kind="Gift"/>
            <TextBlock Text="text"/>
        </StackPanel>
    </Button>

https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/blob/master/MainDemo.Wpf/Home.xaml

@Dragoneel009 can you please provide some code that replicates the issue.

Closing for now. If anyone has reproduction steps please comment below.

Was this page helpful?
0 / 5 - 0 ratings