-
I would like to make an application in a one window using XAML. It should be like a slideshow with next and back button. One idea is to make 4 panels and have just one enable at the time. Is there any other way to do this? Like dynamic loading of other XAML?
我想用XAML在一个窗口中应用。它应该像一个带有next和back按钮的幻灯片。一种想法是制作4个面板,同时只启用一个面板。还有别的办法吗?比如其他XAML的动态加载?
-
is it the BackgroundWorker mandatory to use with WPF (hence is DirectX rendered there's almost no GUI lags) ?
是后台工作人员强制使用WPF(因此DirectX渲染几乎没有GUI滞后)吗?
4 个解决方案
#1
1
- You can do it with Pages that you can show in a window. Just create a window for every page and change the root tag to Page.
- 您可以使用可以在窗口中显示的页面。只需为每个页面创建一个窗口,并将根标记更改为page。
- It should be used if you want to perform a long running, non-UI related task, to prevent locking the UI.
- 如果您希望执行一个长时间运行的、与UI无关的任务,则应该使用它来防止锁定UI。
#2
0
I think this could be achieved fairly easily with a VirtualizingStackPanel.
我认为这可以通过一个VirtualizingStackPanel轻松实现。
#3
0
1.You can use ItemTemplate and load any one you wish on your click event.
1。您可以使用ItemTemplate并在单击事件中加载任何您希望的内容。
2.BackgroundWorker is always a better choice to use.
2。背景工作者总是一个更好的选择。
#4
0
I found out other soulution: Tab Control IMO better - more flexible
我发现了其他的灵魂疗法:标签控制在我看来更好——更灵活
#1
1
- You can do it with Pages that you can show in a window. Just create a window for every page and change the root tag to Page.
- 您可以使用可以在窗口中显示的页面。只需为每个页面创建一个窗口,并将根标记更改为page。
- It should be used if you want to perform a long running, non-UI related task, to prevent locking the UI.
- 如果您希望执行一个长时间运行的、与UI无关的任务,则应该使用它来防止锁定UI。
#2
0
I think this could be achieved fairly easily with a VirtualizingStackPanel.
我认为这可以通过一个VirtualizingStackPanel轻松实现。
#3
0
1.You can use ItemTemplate and load any one you wish on your click event.
1。您可以使用ItemTemplate并在单击事件中加载任何您希望的内容。
2.BackgroundWorker is always a better choice to use.
2。背景工作者总是一个更好的选择。
#4
0
I found out other soulution: Tab Control IMO better - more flexible
我发现了其他的灵魂疗法:标签控制在我看来更好——更灵活