private void SetStyle_NodeTooltip(InfoBubbleViewModel.Direction connectingDirection) { backgroundPolygon.Fill = Configurations.NodeTooltipFrameFill; backgroundPolygon.StrokeThickness = Configurations.NodeTooltipFrameStrokeThickness; backgroundPolygon.Stroke = Configurations.NodeTooltipFrameStrokeColor; ContentContainer.MaxWidth = Configurations.NodeTooltipMaxWidth; ContentContainer.MaxHeight = Configurations.NodeTooltipMaxHeight; ContentMaxWidth = Configurations.NodeTooltipContentMaxWidth; ContentMaxHeight = Configurations.NodeTooltipContentMaxHeight; ContentFontSize = Configurations.NodeTooltipTextFontSize; ContentForeground = Configurations.NodeTooltipTextForeground; ContentFontWeight = Configurations.NodeTooltipTextFontWeight; switch (connectingDirection) { case InfoBubbleViewModel.Direction.Left: ContentMargin = Configurations.NodeTooltipContentMarginLeft; break; case InfoBubbleViewModel.Direction.Right: ContentMargin = Configurations.NodeTooltipContentMarginRight; break; case InfoBubbleViewModel.Direction.Bottom: ContentMargin = Configurations.NodeTooltipContentMarginBottom; break; } }
private void ShowPreviewBubbleFullContent() { string content = ViewModel.FullContent; InfoBubbleViewModel.Style style = InfoBubbleViewModel.Style.Preview; InfoBubbleViewModel.Direction connectingDirection = InfoBubbleViewModel.Direction.Top; Point topLeft = ViewModel.TargetTopLeft; Point botRight = ViewModel.TargetBotRight; InfoBubbleDataPacket data = new InfoBubbleDataPacket(style, topLeft, botRight, content, connectingDirection); this.ViewModel.UpdateContentCommand.Execute(data); this.ViewModel.ZIndex = 5; }