private void InitializeMaterialDesign() { // Create dummy objects to force the MaterialDesign assemblies to be loaded // from this assembly, which causes the MaterialDesign assemblies to be searched // relative to this assembly's path. Otherwise, the MaterialDesign assemblies // are searched relative to Eclipse's path, so they're not found. var card = new Card(); var hue = new MaterialDesignColors.Hue("Dummy", Colors.Black, Colors.White); var dummy = typeof(MaterialDesignThemes.Wpf.Theme); }
protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); // force load material desgn dll var card = new MaterialDesignThemes.Wpf.Card(); var hue = new MaterialDesignColors.Hue( "Dummy", System.Windows.Media.Colors.Black, System.Windows.Media.Colors.White); }
public GridPointConverter() { var palette = new PaletteHelper().QueryPalette(); hueAcc = palette.AccentSwatch.AccentHues.ToArray()[palette.AccentHueIndex]; }