Beispiel #1
0
 private void NodeCornerControlOnNodeSelected(object sender, NodeSelectedEventArgs e)
 {
     if (CollapseControl.State == CollapseState.Collapsed ||
         CollapseControl.State == CollapseState.SemiCollapsed)
     {
         CollapseControl.ExpandNodes(new ChildrenControlCollection(this, false, true));
     }
     SelectNodeDetail(e.Type, e.Source);
 }
Beispiel #2
0
 private void OnExtendButtonClicked(object sender, EventArgs e)
 {
     if (CollapseState == CollapseState.Collapsed ||
         CollapseState == CollapseState.SemiCollapsed)
     {
         CollapseControl.ExpandNodes(new ChildrenControlCollection(this, false, true));
     }
     ParentSurface.Selector.Clear();
     ParentSurface.Selector.AddNode(this);
 }
Beispiel #3
0
 private void VideoRemoteControlOnPlayClicked(object sender, EventArgs eventArgs)
 {
     if (CollapseState == CollapseState.Collapsed || CollapseState == CollapseState.SemiCollapsed)
     {
         CollapseControl.ExpandNodes(new ChildrenControlCollection(this, false, true));
     }
     if (ViewModelNode.NodeActionOptions.ShowRelatedContentWithVideo)
     {
         NodeCornerControlOnNodeSelected(sender, new NodeSelectedEventArgs {
             Type = NodeSelectedEventArgs.NodeSelectedType.RelatedContent, Source = NodeSelectedEventArgs.ClickSource.CornerButton
         });
     }
 }