/// <summary>
        /// Loads the XML sample data and populates the TreeMap.
        /// </summary>
        /// <param name="sender">The object where the event handler is attached.</param>
        /// <param name="e">The event data.</param>
        private void InterpolatorsSample_Loaded(object sender, RoutedEventArgs e)
        {
            // Sample browser-specific layout change
            SampleHelpers.ChangeSampleAlignmentToStretch(this);

            treeMapControl.ItemsSource = NhlDataHelper.LoadDefaultFile();
        }
        /// <summary>
        /// Loads the XML sample data and populates the TreeMap.
        /// </summary>
        /// <param name="sender">The object where the event handler is attached.</param>
        /// <param name="e">The event data.</param>
        private void RichSample_Loaded(object sender, RoutedEventArgs e)
        {
            // Sample browser-specific layout change
            SampleHelpers.ChangeSampleAlignmentToStretch(this);

            sizeMetric.SelectedIndex  = 1;
            colorMetric.SelectedIndex = 0;

            _dataSource = NhlDataHelper.LoadDefaultFile();

            RefreshDataSource();
        }
 /// <summary>
 /// Initializes a new instance of the LayoutTransformerSample class.
 /// </summary>
 public LayoutTransformerSample()
 {
     InitializeComponent();
     _initializeComponentFinished = true;
     Slider_ValueChanged(null, null);
     Text_Click(null, null);
     Loaded += delegate
     {
         // Sample browser-specific layout change.
         SampleHelpers.ChangeSampleAlignmentToStretch(this);
     };
 }
Пример #4
0
        /// <summary>
        /// Loads the XML sample data and populates the TreeMap.
        /// </summary>
        /// <param name="sender">The object where the event handler is attached.</param>
        /// <param name="e">The event data.</param>
        private void SegmentedSample_Loaded(object sender, RoutedEventArgs e)
        {
            // Sample browser-specific layout change.
            SampleHelpers.ChangeSampleAlignmentToStretch(this);

            // Construct the tree.
            Random r = new Random();

            treeMapControl.ItemsSource = new List <SegmentNode>()
            {
                GenerateTree(2, 9, 10, 1, "A", r),
                GenerateTree(2, 7, 15, 2, "B", r),
                GenerateTree(2, 5, 20, 3, "C", r),
            };
        }
 /// <summary>
 /// Handles the UserControl's Loaded event.
 /// </summary>
 /// <param name="sender">The object where the event handler is attached.</param>
 /// <param name="e">The event data.</param>
 private void BusyIndicatorSample_Loaded(object sender, RoutedEventArgs e)
 {
     // Sample browser-specific layout change
     SampleHelpers.ChangeSampleAlignmentToStretch(this);
 }