本文介紹了菜單、工具欄、StackPanel 等中的垂直分隔符控件 - 可能嗎?的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!
問題描述
我想以垂直方式使用 Separator 控件(假設(shè)在水平 StackPanel 中).
I want to use the Separator control in a vertical way (Lets say in a horizontal StackPanel).
四處搜索我發(fā)現(xiàn)了這種方法,但它不使用分隔符控件,而是使用邊框和矩形.https://social.msdn.microsoft.com/forums/en-US/wpf/thread/eab865be-ad9b-45ed-b9d8-fc93f737b163
Searching around I found this method but it doesn't use the Separator control rather it uses borders and rectangles. https://social.msdn.microsoft.com/forums/en-US/wpf/thread/eab865be-ad9b-45ed-b9d8-fc93f737b163
是否可以垂直使用 Separator 控件?
Is it possible to use the Separator control in a vertical way?
推薦答案
還有:
<Separator Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
這篇關(guān)于菜單、工具欄、StackPanel 等中的垂直分隔符控件 - 可能嗎?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!