/// <summary> /// Initializes a new instance of the <see cref="CirclePackingPage" /> class. /// </summary> public CirclePackingPage() { this.InitializeComponent(); this.viewModel = new CirclePackingViewModel(); this.imageTextBlocks = new[] { this.sourceImageTextBlock, this.segmentedImageTextBlock, this.circlePackingImageTextBlock }; this.navigationView.SelectedItem = this.navigationView.MenuItems[5]; }
public void ShowHierarchicalDataAsCirclePackaging(string title, HierarchicalDataContext context, HierarchicalDataCommands commands, bool toForeground) { // Note: The same color scheme is used for both treemap and circle packing. if (context == null) { return; } var cp = new CirclePackingViewModel(); cp.Commands = commands; cp.Data = context; cp.Title = title; ShowTab(cp, toForeground); }