/// <summary>Resize and reposition the graphics</summary> public void Update(Canvas overlay, Point s, bool highlight) { Icon.Fill = Colour.ToMediaBrush(); Icon.RenderTransform = new MatrixTransform(1, 0, 0, 1, s.X, s.Y); overlay.Adopt(Icon); Label.Foreground = Colour.ToMediaBrush(); Label.Visibility = SettingsData.Settings.Chart.ConfettiDescriptionsVisible ? Visibility.Visible : Visibility.Collapsed; Label.FontSize = SettingsData.Settings.Chart.ConfettiLabelSize; Label.FontWeight = highlight ? FontWeights.Bold : FontWeights.Normal; Label.Measure(Rylogic.Extn.Windows.Size_.Infinity); Label.Background = new SolidColorBrush(Colour32.White.Alpha(1.0f - (float)SettingsData.Settings.Chart.ConfettiLabelTransparency).ToMediaColor()); Label.RenderTransform = SettingsData.Settings.Chart.ConfettiLabelsToTheLeft ? new MatrixTransform(1, 0, 0, 1, s.X - Label.DesiredSize.Width - 7.0, s.Y - Label.DesiredSize.Height / 2) : new MatrixTransform(1, 0, 0, 1, s.X + 7.0, s.Y - Label.DesiredSize.Height / 2); overlay.Adopt(Label); }