/// <summary> /// Synchronize properties in the internal Plot model /// </summary> private void SynchronizeProperties() { var m = internalModel; m.PlotType = PlotType; m.PlotMargins = PlotMargins.ToOxyThickness(); m.Padding = Padding.ToOxyThickness(); m.TitlePadding = TitlePadding; m.Culture = Culture; m.DefaultColors = DefaultColors.Select(c => c.ToOxyColor()).ToArray(); m.DefaultFont = DefaultFont; m.DefaultFontSize = DefaultFontSize; m.Title = Title; m.TitleColor = TitleColor.ToOxyColor(); m.TitleFont = TitleFont; m.TitleFontSize = TitleFontSize; m.TitleFontWeight = (int)TitleFontWeight; m.TitleToolTip = TitleToolTip; m.Subtitle = Subtitle; m.SubtitleColor = SubtitleColor.ToOxyColor(); m.SubtitleFont = SubtitleFont; m.SubtitleFontSize = SubtitleFontSize; m.SubtitleFontWeight = (int)SubtitleFontWeight; m.TextColor = TextColor.ToOxyColor(); m.SelectionColor = SelectionColor.ToOxyColor(); m.RenderingDecorator = RenderingDecorator; m.AxisTierDistance = AxisTierDistance; m.IsLegendVisible = IsLegendVisible; m.PlotAreaBackground = PlotAreaBackground.ToOxyColor(); m.PlotAreaBorderColor = PlotAreaBorderColor.ToOxyColor(); m.PlotAreaBorderThickness = PlotAreaBorderThickness.ToOxyThickness(); }
/// <summary> /// Synchronize properties in the internal Plot model /// </summary> private void SynchronizeProperties() { var m = internalModel; m.PlotType = PlotType; m.PlotMargins = PlotMargins.ToOxyThickness(); m.Padding = Padding.ToOxyThickness(); m.TitlePadding = TitlePadding; m.Culture = Culture; m.DefaultColors = DefaultColors.Select(c => c.ToOxyColor()).ToArray(); m.DefaultFont = DefaultFont; m.DefaultFontSize = DefaultFontSize; m.Title = Title; m.TitleColor = TitleColor.ToOxyColor(); m.TitleFont = TitleFont; m.TitleFontSize = TitleFontSize; m.TitleFontWeight = (int)TitleFontWeight; m.TitleToolTip = TitleToolTip; m.Subtitle = Subtitle; m.SubtitleColor = SubtitleColor.ToOxyColor(); m.SubtitleFont = SubtitleFont; m.SubtitleFontSize = SubtitleFontSize; m.SubtitleFontWeight = (int)SubtitleFontWeight; m.TextColor = TextColor.ToOxyColor(); m.SelectionColor = SelectionColor.ToOxyColor(); m.RenderingDecorator = RenderingDecorator; m.AxisTierDistance = AxisTierDistance; m.IsLegendVisible = IsLegendVisible; m.LegendTextColor = LegendTextColor.ToOxyColor(); m.LegendTitle = LegendTitle; m.LegendTitleColor = LegendTitleColor.ToOxyColor(); m.LegendTitleFont = LegendTitleFont; m.LegendTitleFontSize = LegendTitleFontSize; m.LegendTitleFontWeight = (int)LegendTitleFontWeight; m.LegendFont = LegendFont; m.LegendFontSize = LegendFontSize; m.LegendFontWeight = (int)LegendFontWeight; m.LegendSymbolLength = LegendSymbolLength; m.LegendSymbolMargin = LegendSymbolMargin; m.LegendPadding = LegendPadding; m.LegendColumnSpacing = LegendColumnSpacing; m.LegendItemSpacing = LegendItemSpacing; m.LegendLineSpacing = LegendLineSpacing; m.LegendMargin = LegendMargin; m.LegendMaxHeight = LegendMaxHeight; m.LegendMaxWidth = LegendMaxWidth; m.LegendBackground = LegendBackground.ToOxyColor(); m.LegendBorder = LegendBorder.ToOxyColor(); m.LegendBorderThickness = LegendBorderThickness; m.LegendPlacement = LegendPlacement; m.LegendPosition = LegendPosition; m.LegendOrientation = LegendOrientation; m.LegendItemOrder = LegendItemOrder; m.LegendItemAlignment = LegendItemAlignment.ToHorizontalAlignment(); m.LegendSymbolPlacement = LegendSymbolPlacement; m.PlotAreaBackground = PlotAreaBackground.ToOxyColor(); m.PlotAreaBorderColor = PlotAreaBorderColor.ToOxyColor(); m.PlotAreaBorderThickness = PlotAreaBorderThickness.ToOxyThickness(); }