Open jespersh opened 5 years ago
This is an interesting idea. There are a couple of things that might not completely work:
Now with that said I am not opposed to this idea, and would love to see it in the Typography page in the demo app.
As an alternative idea, rather than creating separate styles. Perhaps look at something like an attached property for linking a pack icon to another element and have it size based on that. Not perfect, but it would point 1 above. I am not sure if this is actually the best solution; it is certainly more flexible, but may be less intuitive than just setting a style. Very open to feedback and suggestions here.
I was thinking that creating styles for PackIcon that makes the icon match in size for the style of texts could remove some of the trial-n-error of creating height, width on each icon.
Suppose I have
Then to match the size of the textblock we will have to add
Height="27" Width="27"
to the PackIcon.I imagine the style could simply be named
MaterialDesignTitlePackIcon
. Something like this might work: