Example #1
0
        private void Serialize(PieChart control, DataStore data)
        {
            SerializeDefault(control);
            legend      = control.LegendLocation;
            InnerRadius = control.InnerRadius;
            chdata      = new ChartData(control.Series);
            ControlDef.Serialize(control);
            brush.Serialize(control, control.Background, data);
            Hoverable         = control.Hoverable;
            DataTooltipV      = control.DataTooltip.Visibility;
            PushOut           = control.HoverPushOut;
            LegendFontSize    = control.ChartLegend.FontSize;
            TooltipFontSize   = control.DataTooltip.FontSize;
            disableAnimations = control.DisableAnimations;
            LegendColor       = ((SolidColorBrush)control.ChartLegend.Foreground).Color;

            LegendBullet  = ((DefaultLegend)control.ChartLegend).BulletSize;
            TooltipBullet = ((DefaultTooltip)control.DataTooltip).BulletSize;

            if (control.SeriesColors != null)
            {
                SeriesColors = control.SeriesColors;
            }
            else
            {
                SeriesColors = null;
            }
        }
Example #2
0
        /// <summary>
        /// Finishes initializing component by creating ListView and registering the control</summary>
        void IInitializable.Initialize()
        {
            m_resourceListView = new ResourceListView();

            m_resourcesControlDef = new ControlDef()
            {
                Name        = "Resources".Localize(),
                Description = "Resources for selected Event".Localize(),
                Group       = StandardControlGroup.Bottom,
                Id          = s_resourceListEditorId.ToString()
            };

            m_controlHostService.RegisterControl(m_resourcesControlDef, m_resourceListView, this);
        }