A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
706 B

<Styles xmlns="https://github.com/avaloniaui"
xmlns:cont="clr-namespace:ControlCatalog;assembly=ControlCatalog">
<Style Selector="cont|EditableTextBlock">
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Padding" Value="0"/>
<Setter Property="Template">
<ControlTemplate>
<Grid>
<TextBlock Text="{TemplateBinding Text}" IsVisible="{TemplateBinding !InEditMode}" />
<TextBox Text="{TemplateBinding Text}" IsVisible="{TemplateBinding InEditMode}" Name="PART_TextBox" Foreground="Black" />
</Grid>
</ControlTemplate>
</Setter>
</Style>
</Styles>