I am developing a 'tabbed' GUI for my application, using XAML to present the GUI to the user.
I am currently displaying a few tabs, with a different aspect of the application displayed on each one.
I have a couple of icons that display the 'connectivity status' of the application to a remote server (i.e. one image is displayed if the application is connect to the server, and another image is displayed if it's not connected). These images are currently displayed inside one of the tabbed displays, but I want to move them onto the 'tab' bar (on the far right hand side of the application window), so that they will always be visible, no matter what tab the user is currently viewing.
My XAML is currently structured like this:
<Grid>
<TabControl ...>
<TabItem>
...
</TabItem>
<TabItem ...>
<StackPanel>
<Grid>
...
<Image ... />
<Image ... />
</Grid>
</StackPanel>
</TabItem>
</TabControl>
</Grid>
Basically, one of the images in the <Image>
tags is displayed to indicate that the application is connected to the server, and the other image is displayed to indicate that the application is not connected to the server. They have both been placed in the same location inside the application, and there is a method that checks whether the application is connected to the server or not, and displays the appropriate image based on the value that the method returns.
What I want to do, is move these <Image>
tags into the main <TabControl>
tag, so that these images can be displayed on the 'tab menu', but on the far right hand side of the window (as the various tabs available to the user are displayed on the far left). This would then mean that those images are displayed no matter what tab the user is currently viewing.
Is there a way that I can do this? I have tried adding the <Image>
tags directly inside the <TabControl>
tags, but the images are not displayed when I run my application... Anyone have any suggestions for how I can achieve what I'm looking to do here?