Skip to content

MaterialLabel throws an Exception for Font Type #14

Description

@JacobDahlke

This is a bit of a complex one and may entirely be my fault on how I'm using this (fantastic) package.

  1. This is being used in a VSTO Addin for Word (Barf, I know)
  2. There are "pure" MaterialForms being used and I'm also using some of the material UI components in a TaskPane / User Control. Everything seems to render just fine - I'm opening a MaterialForm in the background and loading it to the forms to manage, but it's hidden. This allows the controls on my UserControl to load just fine.

However, I get exceptions (occasionally) "The given key was not present in the dictionary." linking back to:
this.materialLabel1.FontType = MaterialSkin.MaterialSkinManager.fontType.H6;

This is in the .Designer of the user control. A simple rebuild will allow the application to start just fine. Any thoughts or ideas? Or am I just stretching the intended use too far?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions