question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't style PackIcon

See original GitHub issue

Hi, 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:closed
  • Created 6 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
soi013commented, Oct 24, 2017

<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}}".

0reactions
T7nirvanacommented, Jun 22, 2019

It is mainly because there is something wrong in Nuget Configuration about “MaterialDesignThemes.Wpf”

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found