protected override Task OnParametersSetAsync() { if (Selected) { SelectedNodeStyling?.Invoke(Node, selectedNodeStyling); } else { NodeStyling?.Invoke(Node, nodeStyling); } return(base.OnParametersSetAsync()); }
public _TreeViewNodeContent() { selectedNodeStyling = new NodeStyling() { Background = Background.Primary, TextColor = TextColor.White }; nodeStyling = new NodeStyling() { Background = Background.None, TextColor = TextColor.None }; }