Skip to content

Commit

Permalink
NumericUpDownLib Version 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirkster99 committed Oct 20, 2022
1 parent e847626 commit 361a188
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
18 changes: 18 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,24 @@
![Net4](https://badgen.net/badge/Framework/.Net 4/blue) ![NetCore3](https://badgen.net/badge/Framework/NetCore 3/blue)

# Overview

## Fixes and Features Added in Version 3.2

### Bug Fixes

- [Add AbstractBaseUpDown MinWidth virtual property](https://github.com/Dirkster99/NumericUpDownLib/pull/49)
- [do not adjust the control panel length when use mouse to drap the control of displayLength](https://github.com/Dirkster99/NumericUpDownLib/pull/48)

### Features Added

- [WaterMark support](https://github.com/Dirkster99/NumericUpDownLib/pull/47)
Use the Watermark binding to display a default string (when the user deletes all characters in the textbox portion) to hint at the expected input format.

- [add support command binding](https://github.com/Dirkster99/NumericUpDownLib/pull/46)
Use the new **Command** binding to process the event when the user clicks on the Up/Dowm button of the UpDown Control.

This release has been authored by [heartacker](https://github.com/heartacker) and [Ryan Weldin](https://github.com/rweldin) :pray:

## Features Added in Version 3.1

- [addr support update value when lostfocus,Fixes #36 #38](https://github.com/Dirkster99/NumericUpDownLib/pull/38)
Expand Down
4 changes: 2 additions & 2 deletions source/NumericUpDownLib/Base/InputBaseUpDown.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<Setter.Value>
<ControlTemplate TargetType="{x:Type local:InputBaseUpDown}">
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
<Grid VerticalAlignment="Top" MinWidth="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=MinWidth}">
<Grid MinWidth="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=MinWidth}" VerticalAlignment="Top">
<Grid.Resources>
<conv:ByteToPlaceHolderStringConverter x:Key="ByteToPlaceHolderStringConverter" />
<conv:BoolToVisibilityPropConverter x:Key="BoolToVisibilityConverter" />
Expand Down Expand Up @@ -47,9 +47,9 @@
TextAlignment="Right" />
<!-- Visibility="Hidden" /> -->
<TextBox
MaxWidth="{Binding Path=Width, ElementName=PART_Measuring_Element, Mode=OneWay}"
Background="#00ffffff"
Foreground="#80808080"
MaxWidth="{Binding Path=Width, ElementName=PART_Measuring_Element, Mode=OneWay}"
Text="{Binding Path=WaterMark, RelativeSource={RelativeSource AncestorType={x:Type local:InputBaseUpDown}}, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"
Visibility="{TemplateBinding WaterMarkVisibility}" />

Expand Down
6 changes: 3 additions & 3 deletions source/NumericUpDownLib/NumericUpDownLib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<UseWPF>true</UseWPF>

<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>3.1.0.0</Version>
<AssemblyVersion>3.1.0.0</AssemblyVersion>
<FileVersion>3.1.0.0</FileVersion>
<Version>3.2.0.0</Version>
<AssemblyVersion>3.2.0.0</AssemblyVersion>
<FileVersion>3.2.0.0</FileVersion>
<Company>Open Source</Company>
<Product>NumericUpDownLib</Product>
<Copyright>2013-2021</Copyright>
Expand Down

0 comments on commit 361a188

Please sign in to comment.