Introduction
In some of graphical softwares we need to have something like a SevenSegment, I need it somedays ago. So I've created this UserControl.
Background
I saw some seven segment user controls in different websites.
e.g:
Seven-segment LED Control for .NET
http://www.teroid.net/product.aspx?name=wpfsevensegmentdisplay
but no one of them could resolve my need.
Using the code
If you like to use this usercontrol in your application , you have to follow the following instructions :
1. First, you have to add the usercontrol Dll into your Application References :
2. Next, Add the following property into the Window tag :
3. At Last, You can use the UserControl with the following XAML code :
Public Properties of SevenSegment UserControl
public SolidColorBrush NumberColor
{
...
}
public SolidColorBrush ColonColor
{
...
}
public Visibility DotVisibility
{
...
}
public Visibility ColonVisibility
{
...
}
public KeyTime KeyTime { get; set; }
public KeyTime ColonKeyTime { get; set; }
public bool ColonAnimation
{
...
}
public int BlurRadius
{
...
}
public bool PlayAnimation
{
...
}
Public Method of SevenSegment UserControl
public void SetNumber(int number) { ... }
History
First Post : 2012/01/26
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.