Avoid marquee for marginal ticket heading overflow
This commit is contained in:
@@ -28,12 +28,14 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<Setter.Value>
|
<Setter.Value>
|
||||||
<ControlTemplate TargetType="Label">
|
<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"
|
<Border Background="Transparent"
|
||||||
Padding="{TemplateBinding Padding}">
|
Padding="{TemplateBinding Padding}">
|
||||||
<Border x:Name="PART_TickerContainer"
|
<Border x:Name="PART_TickerContainer"
|
||||||
Background="Transparent"
|
Background="Transparent"
|
||||||
ClipToBounds="True">
|
ClipToBounds="True"
|
||||||
|
Margin="0,0,-2,0">
|
||||||
<TextBlock x:Name="PART_TickerText"
|
<TextBlock x:Name="PART_TickerText"
|
||||||
Text="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}"
|
Text="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}"
|
||||||
Foreground="{TemplateBinding Foreground}"
|
Foreground="{TemplateBinding Foreground}"
|
||||||
|
|||||||
Reference in New Issue
Block a user