public OptionTabPage(TabbedOptions options, IOptionPanelDescriptor descriptor) { this.options = options; this.descriptor = descriptor; string title = StringParser.Parse(descriptor.Label); this.Header = title; placeholder = new TextBlock { Text = title }; placeholder.IsVisibleChanged += placeholder_IsVisibleChanged; this.Content = placeholder; }
private void AddTopic(IOptionPanelDescriptor desc, NGTreeNodeCollection nodecoll) { var newNode = new NGTreeNode(desc.Label); newNode.Tag = desc; if (null != desc.ChildOptionPanelDescriptors) { foreach (var child in desc.ChildOptionPanelDescriptors) AddTopic(child, newNode.Nodes); } nodecoll.Add(newNode); }
private void AddTopic(IOptionPanelDescriptor desc, NGTreeNodeCollection nodecoll) { var newNode = new NGTreeNode(desc.Label) { Tag = desc }; if (null != desc.ChildOptionPanelDescriptors) { foreach (var child in desc.ChildOptionPanelDescriptors) { AddTopic(child, newNode.Nodes); } } nodecoll.Add(newNode); }
public OptionPanelNode(IOptionPanelDescriptor optionPanel, OptionPanelNode parent) { this.OptionPanelDescriptor = optionPanel; this.Parent = parent; this.dialog = parent.dialog; }
public OptionPanelNode(IOptionPanelDescriptor optionPanel, TreeViewOptionsDialog dialog) { this.OptionPanelDescriptor = optionPanel; this.dialog = dialog; }
OptionPanelViewModel CreateOptionPanel(IOptionPanelDescriptor descriptor) { var panel = descriptor.CreateViewModel(); panel.PropertyChanged += OptionPanelPropertyChanged; foreach(var child in panel.Children) child.PropertyChanged += OptionPanelPropertyChanged; return panel; }