我應該使用什麼樣的面板放在那裏兩個按鈕 - 下一步和後退導航?我想他們是在中心和之間的差距伸展在最後一排 - 取決於窗口大小。導航面板中的WPF應用程序
0
A
回答
1
如果你想要一個「拉伸差距」,那麼我會使用一個Grid
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="5*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="5*" />
</Grid.ColumnDefinitions>
<Button Grid.Column="1" Content="Left" />
<Button Grid.Column="3" Content="Right" />
</Grid>
您可以通過調整列調整你的間隙的大小定義。目前的定義將使上的按鈕5X任何間隙的兩側的區域。
0
<DockPanel LastChildFill="False">
<Button DockPanel.Dock="Left">Left Button</Button>
<Button DockPanel.Dock="Right">Right Button</Button>
</DockPanel>
或者
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Button Grid.Column="0">Left button</Button>
<Button Grid.Column="2">Right button</Button>
</Grid>
+0
第一個沒有留下它們之間的差距可言,第二個併網使他們粘到邊界。 – Sergey
相關問題
- 1. 從WPF中刪除導航欄頁面應用程序
- 2. WPF應用程序(綁定和導航)
- 3. WPF:複合應用程序與頁面導航
- 4. 從桌面WPF應用程序的頁面導航到新頁面或窗口
- 5. 像一個側面的導航菜單jQuery Mobile桌面應用程序面板?
- 6. WPF應用程序中的導航模式或庫
- 7. 在WPF應用程序中控制事件驅動的導航
- 8. Wpf應用程序中的框架導航
- 9. iPhone dev - 導航應用程序模板中的導航控制器在哪裏?
- 10. 在獨立應用程序中使用WPF導航
- 11. 使用Prism在Wpf應用程序中導航
- 12. WPF頁面導航
- 13. WPF頁面導航
- 14. 從WPF瀏覽器應用程序中刪除導航欄
- 15. 導航到WPF應用程序的URL(用於打開網頁)
- 16. SL'Composite'導航應用程序
- 17. Silverlight導航應用程序
- 18. Spotify應用程序導航
- 19. Silverlight導航應用程序中的Tabcontrol
- 20. 基於導航的模板? iPhone應用程序如Facebook應用程序
- 21. WPF面板中的主機外部應用程序
- 22. Silverlight導航應用程序中的導航歷史記錄
- 23. 在WPF MVVM應用程序的標籤之間正確導航
- 24. 獨立WPF應用程序的導航菜單
- 25. 實現WPF應用程序導航mvvm的最佳方式
- 26. Hub/Pivot應用程序模板在導航時中斷
- 27. Silverlight 4中的頁面身份驗證導航應用程序
- 28. GWT應用程序中的頁面導航
- 29. 應用程序無法導航到Windows 8中的新頁面
- 30. 在ios應用程序中的不同頁面之間導航
感謝,這真的是我需要的 – Sergey