瀏覽代碼

add TextTrimming="CharacterEllipsis" in StickyLabel

Dalibor Votruba 2 年之前
父節點
當前提交
ca3a9840c8
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      qdr.fnd.core.avalonia/Controls/StickyLabel.axaml

+ 3 - 1
qdr.fnd.core.avalonia/Controls/StickyLabel.axaml

@@ -32,7 +32,9 @@
                       VerticalAlignment = "{Binding VerticalAlignment, RelativeSource={RelativeSource TemplatedParent}}"
                       HorizontalAlignment = "{Binding HorizontalAlignment, RelativeSource={RelativeSource TemplatedParent}}"
                       Foreground="{Binding Foreground, RelativeSource={RelativeSource TemplatedParent}}"
-                      Text="{Binding Text, RelativeSource={RelativeSource TemplatedParent}}" />
+                      Text="{Binding Text, RelativeSource={RelativeSource TemplatedParent}}" 
+					  TextTrimming="CharacterEllipsis"
+					  />
               </Border>
       </ControlTemplate>
     </Setter>