public static void Parse(XNode node, DefinitionFile file) { StylesContainer.Parse(node, file); bool overwrite = false; bool.TryParse(node.Attribute("OverwriteExisting"), out overwrite); StylesManager.Instance.RegisterStyles(file, overwrite); }
/// <summary> /// Initializes a new instance of the <see cref="DW.WPFToolkit.Controls.WPFMessageBoxOptions" /> class. /// </summary> public WPFMessageBoxOptions() { WindowOptions = new WindowOptionsContainer(); Styles = new StylesContainer(); MessageCopyFormatter = new DefaultMessageCopyFormatter(); Strings = new MessageBoxStrings(); ShowHelpButton = false; HelpRequestCallback = null; ShowYesToAllButton = false; ShowNoToAllButton = false; ShowDoNotShowAgainCheckBox = false; IsDoNotShowAgainChecked = false; ShowDetails = false; DetailsContent = null; CustomItem = null; BackgroundControl = null; }
/// <summary> /// Initializes a new instance of the <see cref="DW.WPFToolkit.Controls.WPFMessageBoxOptions" /> class. /// </summary> public WPFMessageBoxOptions() { WindowOptions = new WindowOptionsContainer(); Styles = new StylesContainer(); MessageCopyFormatter = new DefaultMessageCopyFormatter(); Strings = new MessageBoxStrings(); ShowHelpButton = false; HelpRequestCallback = null; ShowYesToAllButton = false; ShowNoToAllButton = false; ShowDoNotShowAgainCheckBox = false; IsDoNotShowAgainChecked = false; ShowDetails = false; DetailsContent = null; CustomItem = null; BackgroundControl = null; }