Ejemplo n.º 1
0
        void PopulateRowHeader(FixtureClass fixtureClass)
        {
            RowDefinition rowDefinition = new RowDefinition();

            rowDefinition.Height = new GridLength(1, GridUnitType.Star);
            gridOuter.RowDefinitions.Add(rowDefinition);

            Grid grid = TwGui.FixtureWithImageRight(fixtureClass);

            Grid.SetRow(grid, gridOuter.RowDefinitions.Count - 1);
            Grid.SetColumn(grid, 1);
            gridOuter.Children.Add(grid);
        }
Ejemplo n.º 2
0
 public void Initialize()
 {
     LabelFixture.Child = TwGui.FixtureWithImageRight(FixtureSummary.FixtureClass);
     LabelCount.Text    = ByInstances ? FixtureSummary.Count.ToString() : FixtureSummary.Volume.ToString("0.0");
     LabelPercent.Text  = ByInstances ? (FixtureSummary.PercentCount * 100).ToString("0.0") + "%" : (FixtureSummary.PercentVolume * 100).ToString("0.0") + "%";
 }