
Hi,
Could you please tell me how to customize the styles of the Quick Info?
I'd like to change the Quick Info's background color, corner shape, etc.
Thank you.
Hi,
Could you please tell me how to customize the styles of the Quick Info?
I'd like to change the Quick Info's background color, corner shape, etc.
Thank you.
Hello,
This is effectively the Style you can add to your Application.Resources and modify per your needs:
<Style TargetType="{x:Type editor:IntelliPromptQuickInfo}">
<Setter Property="Background" Value="{DynamicResource {x:Static themes:AssetResourceKeys.ToolTipBackgroundNormalBrushKey}}" />
<Setter Property="BorderBrush" Value="{DynamicResource {x:Static themes:AssetResourceKeys.ToolTipBorderNormalBrushKey}}" />
<Setter Property="BorderThickness" Value="{DynamicResource {x:Static themes:AssetResourceKeys.ToolTipBorderNormalThicknessKey}}" />
<Setter Property="Foreground" Value="{DynamicResource {x:Static themes:AssetResourceKeys.ToolTipForegroundNormalBrushKey}}" />
<Setter Property="FontSize" Value="12" />
<Setter Property="Padding" Value="{DynamicResource {x:Static themes:AssetResourceKeys.ToolTipPaddingNormalThicknessKey}}" />
<Setter Property="themes:ThemeProperties.CornerRadius" Value="{DynamicResource {x:Static themes:AssetResourceKeys.ToolTipBorderNormalCornerRadiusKey}}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type editor:IntelliPromptQuickInfo}">
<Border Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
Padding="{TemplateBinding Padding}"
CornerRadius="{TemplateBinding themes:ThemeProperties.CornerRadius}"
SnapsToDevicePixels="True">
<shared:PixelSnapper>
<ContentPresenter Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Session.Content}" />
</shared:PixelSnapper>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
Thank you for your help!
Please log in to a validated account to post comments.