示例#1
0
        protected override Task OnParametersSetAsync()
        {
            if (Selected)
            {
                SelectedNodeStyling?.Invoke(Node, selectedNodeStyling);
            }
            else
            {
                NodeStyling?.Invoke(Node, nodeStyling);
            }

            return(base.OnParametersSetAsync());
        }
示例#2
0
        public _TreeViewNodeContent()
        {
            selectedNodeStyling = new NodeStyling()
            {
                Background = Background.Primary,
                TextColor  = TextColor.White
            };

            nodeStyling = new NodeStyling()
            {
                Background = Background.None,
                TextColor  = TextColor.None
            };
        }