DoubleEditBox default DropDown DisplayMode

Editors for WPF Forum

Posted 11 years ago by Severin Hoffmann
Version: 13.1.0583
Avatar

Hi,

is it possible to change the default dropdown calculator display mode for the DoubleEditBox from "Minimal" to "Standard", preferably in xaml? My approach was to define a DropDownContentTemplate containing the Calculator with DisplayMode = Standard. It worked but the Calculator Value was not taken over into the DoubleEditBox.

 

Any suggestions would be appreciated.

 

Severin

Comments (1)

Answer - Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Severin,

Here's the setter our default template uses:

<shared:CoalesceConverter x:Key="CoalesceConverter" />

...

<Setter Property="DropDownContentTemplate">
	<Setter.Value>
		<DataTemplate>
			<editors:Calculator DisplayMode="Minimal" BorderThickness="0">
				<editors:Calculator.Value>
					<Binding Path="Value" Mode="TwoWay" RelativeSource="{RelativeSource AncestorType={x:Type editors:DoubleEditBox}}"
							Converter="{StaticResource CoalesceConverter}">
						<Binding.ConverterParameter>
							<system:Double>0.0</system:Double>
						</Binding.ConverterParameter>
					</Binding>
				</editors:Calculator.Value>
			</editors:Calculator>
		</DataTemplate>
	</Setter.Value>
</Setter>

You should be able to use that and change the DisplayMode.


Actipro Software Support

The latest build of this product (v24.1.2) was released 0 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.