/// <summary>
        /// Sets up the chart's container style.
        /// </summary>
        /// <param name="chartXy"></param>
        private void SetupContainerStyle(ChartXy chartXy)
        {
            ContainerVisualStyle dstyle = chartXy.ContainerVisualStyles.Default;

            dstyle.Background      = new Background(Color.White);
            dstyle.BorderColor     = new BorderColor(Color.DimGray);
            dstyle.BorderThickness = new Thickness(1);

            dstyle.DropShadow.Enabled = Tbool.True;
            dstyle.Padding            = new DevComponents.DotNetBar.Charts.Style.Padding(1);
        }
示例#2
0
        private void SetupContainerStyle(ChartXy chartXy)
        {
            ContainerVisualStyle dstyle = chartXy.ContainerVisualStyles.Default;

            dstyle.Background      = new Background(Color.White);
            dstyle.BorderColor     = new BorderColor(Color.DimGray);
            dstyle.BorderThickness = new Thickness(1);

            dstyle.DropShadow.Enabled = Tbool.True;
            dstyle.Padding            = new DevComponents.DotNetBar.Charts.Style.Padding(6);

            // Add an image of our fowl featherd friends
            // at the top right of the container.

            // dstyle.Image = ShellServices.LoadBitmap("LinePlot_Appetites.Resources.Chicken2.png");
            dstyle.ImageAlignment = Alignment.TopRight;
            dstyle.ImagePadding   = new DevComponents.DotNetBar.Charts.Style.Padding(0, 20, 20, 0);
        }