You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

29 lines
1.5 KiB

<UserControl x:Class="IOTContainer.View.MarqueeControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:IOTContainer.View"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Canvas ClipToBounds="True" x:Name="canvas" >
<Canvas.Background>
<SolidColorBrush Color="Blue" Opacity="0.1" x:Name="canvasBG"/>
</Canvas.Background>
<Canvas.Resources>
<Storyboard x:Key="stdLeft">
<DoubleAnimation Duration="0:0:1.5" Storyboard.TargetName="content" Storyboard.TargetProperty="RenderTransform.X"/>
</Storyboard>
</Canvas.Resources>
<Grid VerticalAlignment="Stretch" Height="100" x:Name="content" HorizontalAlignment="Center">
<Grid.RenderTransform>
<TranslateTransform/>
</Grid.RenderTransform>
<TextBlock x:Name="txtItem" FontSize="16" Visibility="Hidden" VerticalAlignment="Center" TextAlignment="Center" TextWrapping="WrapWithOverflow" Text="ssssssssssssssssssssssssssssssssssssssssssssssss"/>
</Grid>
<TextBlock x:Name="txtItemH" Visibility="Hidden"></TextBlock>
</Canvas>
</UserControl>