Skip to content

p1eXu5/p1eXu5.Wpf.DigitPanel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

p1eXu5.Wpf.DigitPanel

Package Versions
p1eXu5.Wpf.DigitPanel NuGet

digit-panel

Usage:

<Application x:Class="YourApp"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:digitPanel="clr-namespace:p1eXu5.Wpf.DigitPanel;assembly=p1eXu5.Wpf.DigitPanel"
             StartupUri="MainWindow.xaml">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <digitPanel:DigitPanelTheme />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>
<Window ...
             xmlns:digitPanel="clr-namespace:p1eXu5.Wpf.DigitPanel;assembly=p1eXu5.Wpf.DigitPanel"
             ...
             Background="{DynamicResource {x:Static digitPanel:DigitPanelColors.DigitPanelBackgroundKey}}"
             >
             
  <digitPanel:Digit DockPanel.Dock="Left" Foreground="#FF0000" Background="#BBBBBB" IsDotOn="True" DotVisibility="Collapsed" Width="160" Mask="0"/>

  <digitPanel:DigitTable Grid.Column="0" 
                         DigitWidth="140"
                         Value="0"
                         Height="500" 
                         Width="800"
                         Format="##0.00"
                         />

  <digitPanel:TimerTable Grid.Column="0" 
                         DigitWidth="45"
                         Value="12:12:12"
                         Height="100" 
                         Width="300"/>

Digit Properties

Property Type Description
Mask string Determines which digit segments are lit. "0" - all digits are off, "1" - all digits are on. "0100101" - top-left, top-middle, top-right, middle, bottom-left, bottom-middle, bottom-right.
ActiveRadius double Booster-light. Active digit segment shaddow radius.
InactiveRadius double Booster-light. Inactive digit segment shaddow radius.
IsDotOn bool If true then dot is lit.
DotVisibility Visibility Dot visibility property.
IsColonOn bool If true then colon is lit.
ColonVisibility Visibility Colon visibility property.

DigitTableBase Properties

Property Type Description
Foreground Brush Active digit segments color.
DigitBackground Brush Inactive digit segments color.
Background Brush Digit table background.
DigitWidth double Size of digit.

DigitTable Properties (inherit DigitTableBase properties)

Property Type Description
Value double? Value showing on digit table.
Format string Value format. For example: "##0.00"

TimerTable Properties (inherit DigitTableBase properties)

Property Type Description
Value TimeSpan Value showing on digit table.

Releases

No releases published

Packages

No packages published

Languages