Can't style PackIcon
See original GitHub issueHi, Sorry to put that as an issue, as it certainly link to my knowledge, but I can’t find a way to create a style for PackIcon in my application.
Here is what I try to do:
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
<Style x:Key="test" TargetType="{x:Type materialDesign:PackIcon}">
<Setter Property="Height" Value="5" />
</Style>
When doing that I have an error saying: PackIconExtension must inherit from FrameworkElement or FrameworkContentElement.
I have not clue why it is puttint the error on the extension and not packicon itself.
Thanks for your feedback.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
MaterialDesign PackIcon issues when using ...
Finally i solved this problem. The problem is Binding Context. Here is solution. static Dictionary<string, Assembly> loadedAssemblies = new ...
Read more >Work with Style Packs in InDesign
If you can't find what you're looking for, you can create your own Style Pack with existing or new Paragraph Styles.
Read more >WPF - How to use PackIcon inside DataGrid : r/csharp
Hi, I try to use a PackIcon inside a DataGrid. ... (Right now I play around with Style.Trigger but havn't found ... Can't...
Read more >boys 3-pack icon polos | boys new arrivals
3-pack of our comfy short-sleeve polos in our soft cotton-blend fabric, with classic polo collar, embroidered icon detail at left chest and two-button ......
Read more >Selection and Cursors Icon pack | Outline Color
Download now Selection and Cursors Icon pack Free Icons - Pack Outline Color | Available sources SVG, EPS, PSD, PNG files. Personal and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
<Style TargetType="material:PackIcon">
or<Style x:Key="materialPackIcon" TargetType="{x:Type controlzEx:PackIconBase}">
They don’t happen error. But you can’t use :BasedOn="{StaticResource {x:Type materialDesign:PackIcon}}"
.It is mainly because there is something wrong in Nuget Configuration about “MaterialDesignThemes.Wpf”