Avoid marquee for marginal ticket heading overflow
This commit is contained in:
@@ -28,12 +28,14 @@
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="Label">
|
||||
<!-- Padding stays outside the ticker viewport so the animation uses the actual visible text width. -->
|
||||
<!-- Padding stays outside the ticker viewport so the animation uses the actual visible text width.
|
||||
The small right-side reserve prevents marginal overflows from triggering the marquee. -->
|
||||
<Border Background="Transparent"
|
||||
Padding="{TemplateBinding Padding}">
|
||||
<Border x:Name="PART_TickerContainer"
|
||||
Background="Transparent"
|
||||
ClipToBounds="True">
|
||||
ClipToBounds="True"
|
||||
Margin="0,0,-2,0">
|
||||
<TextBlock x:Name="PART_TickerText"
|
||||
Text="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}"
|
||||
Foreground="{TemplateBinding Foreground}"
|
||||
|
||||
Reference in New Issue
Block a user