<Styles xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:controls="using:AvaloniaApplication1.Controls">
  <Design.PreviewWith>
    <controls:StickyLabel Text = "fooooooooo" 
                          Background = "White"
                          BorderBrush ="Black" 
                          BorderThickness = "1"
                          Padding ="5"
                          SideOrientation = "Right"
                          CornerSize="150"
                          Foreground="Black"
                          Width="200"
                          Height="40"
                          FontSize="16"
                          VerticalAlignment = "Center"
                          />
  </Design.PreviewWith> 

  <Style Selector="controls|StickyLabel">
    <!-- Set Defaults -->
    <Setter Property="Template">
      <ControlTemplate>
              <Border x:Name="PART_StickyLabel" 
                      Background="{Binding Background, RelativeSource={RelativeSource TemplatedParent}}"
                      BorderBrush="{Binding BorderBrush, RelativeSource={RelativeSource TemplatedParent}}"
                      BorderThickness="{Binding BorderThickness, RelativeSource={RelativeSource TemplatedParent}}"
                      Padding="{Binding Padding, RelativeSource={RelativeSource TemplatedParent}}" 
                      Margin="{Binding Margin, RelativeSource={RelativeSource TemplatedParent}}">
                  
                  <TextBlock 
                      VerticalAlignment = "{Binding VerticalAlignment, RelativeSource={RelativeSource TemplatedParent}}"
                      HorizontalAlignment = "{Binding HorizontalAlignment, RelativeSource={RelativeSource TemplatedParent}}"
                      Foreground="{Binding Foreground, RelativeSource={RelativeSource TemplatedParent}}"
                      Text="{Binding Text, RelativeSource={RelativeSource TemplatedParent}}" 
					  TextTrimming="CharacterEllipsis"
					  />
              </Border>
      </ControlTemplate>
    </Setter>
  </Style>
</Styles>
