views:

53

answers:

4
  1. 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?

  2. is it the BackgroundWorker mandatory to use with WPF (hence is DirectX rendered there's almost no GUI lags) ?

+1  A: 
  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.
  2. It should be used if you want to perform a long running, non-UI related task, to prevent locking the UI.
Jouke van der Maas
I agree that using pages seems to be a great fit, just handle the page navigation to simulate slides.
Agies
thx a lot! do you have any example of this?
lukas
A: 

I think this could be achieved fairly easily with a VirtualizingStackPanel.

hemp
A: 

1.You can use ItemTemplate and load any one you wish on your click event.

2.BackgroundWorker is always a better choice to use.

Johnny
A: 

I found out other soulution: Tab Control IMO better - more flexible

lukas