Thanks to visit codestin.com
Credit goes to github.com

Skip to content

CardControl should use TemplateBinding for ContentPresenter.VerticalAlignment #1588

@dkuaf

Description

@dkuaf

Is your feature request related to a problem? Please describe

Currently CardControl has hardcoded value VertcailAlignment.Center for ControlIcon.VerticalAlignment, HeaderContentPresenter.VerticalAlignment and ContentPresenter.VerticalAlignment.

This should be customizable, preferrably from VerticalContentAlignment and TemplateBinding

Describe the solution you'd like

2 new DependencyProperties on CardControl:

VerticalIconAlignment (defaults to VerticalAlignment.Center)
VerticalHeaderAlignment (defaults to VerticalAlignment.Center)

and default VerticalContentAlignment to VerticalAlignment.Center

CardControl.xaml should use TemplateBinding VerticalIconAlignment , TemplateBinding VerticalHeaderAlignment and TemplateBinding VerticalContentAlignment for the three different ContentControl/ContentPresenter

Describe alternatives you've considered

No response

Additional context

Example:

                        <ContentPresenter
                            x:Name="HeaderContentPresenter"
                            VerticalAlignment="{TemplateBinding VerticalHeaderAlignment}" />

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions