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.
59 lines
3.1 KiB
59 lines
3.1 KiB
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:local="clr-namespace:Microsoft.Windows.Controls" >
|
|
|
|
<Style TargetType="{x:Type local:TokenItem}">
|
|
<Setter Property="Background" Value="#F3F7FD" />
|
|
<Setter Property="BorderBrush" Value="#BBD8FB" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="Cursor" Value="Arrow" />
|
|
<Setter Property="Padding" Value="5,1,5,1" />
|
|
<Setter Property="Margin" Value="1,0" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type local:TokenItem}">
|
|
<Border Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
Padding="{TemplateBinding Padding}"
|
|
Margin="{TemplateBinding Margin}">
|
|
<StackPanel Orientation="Horizontal" Margin="1">
|
|
<ContentPresenter ContentTemplate="{TemplateBinding ContentTemplate}" />
|
|
<Button Margin="3,0,0,0" Cursor="Hand" Command="local:TokenizedTextBoxCommands.Delete" CommandParameter="{TemplateBinding TokenKey}" >
|
|
<Button.Template>
|
|
<ControlTemplate TargetType="Button">
|
|
<ContentPresenter />
|
|
</ControlTemplate>
|
|
</Button.Template>
|
|
<Image Source="/WPFToolkit.Extended;component/TokenizedTextBox/Images/delete8.png" Width="8" Height="8" />
|
|
</Button>
|
|
</StackPanel>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type local:TokenizedTextBox}" >
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type local:TokenizedTextBox}">
|
|
<Border x:Name="Bd" Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}">
|
|
<Grid>
|
|
<RichTextBox x:Name="PART_ContentHost" AcceptsReturn="False" IsDocumentEnabled="True" Padding="-3,0,0,0" />
|
|
<!--<Popup>
|
|
<Grid Background="White">
|
|
<ItemsPresenter />
|
|
</Grid>
|
|
</Popup>-->
|
|
</Grid>
|
|
</Border>
|
|
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
</ResourceDictionary>
|