<DataGridTemplateColumn.CellTemplate> <DataTemplate> <TextBox Width="90" Text="{Binding Path=ApplicationPercentage, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" VerticalContentAlignment="Center" Height="25"> <TextBox.Style BasedOn="{StaticResource {x:Type TextBox}}"> <Style> <Style.Triggers> <DataTrigger Binding="Text.Length" Value="0"> <Setter Property="Text" Value="0"/> </DataTrigger> </Style.Triggers> </Style> </TextBox.Style> </TextBox> </DataTemplate> </DataGridTemplateColumn.CellTemplate>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)