0
我需要在CS下面的XAML代碼片段(隱藏文件的代碼)Streching工具欄在toolbartray代碼隱藏和XAML
<ToolBarTray Width="450" IsLocked="True" >
<ToolBar Width="{Binding ActualWidth,
RelativeSource={RelativeSource FindAncestor,
AncestorType={x:Type ToolBarTray}}}">
<Button>B1</Button>
<Button>B2</Button>
</ToolBar>
</ToolBarTray>