This is a migrated thread and some comments may be shown as answers.

Possible to have status bar when using RadTabbedWindow with itemsource?

2 Answers 189 Views
TabbedWindow
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Veteran
Robert asked on 21 Jul 2020, 01:44 PM

Hi

We have a RadTabbedWindow with tabs as itemsource. Is it possible to have a status bar at the bottom? 

And whenI put in the statusbar-markup I get the error message "System.InvalidOperationException: 'Operation is not valid while ItemsSource is in use. Access and modify elements with ItemsControl.ItemsSource instead.'"

Just for laughs I have tried to add status bar to the user controls for the tabs as well, but it cant go there

 

<telerik:RadTabbedWindow 

       ...
        ItemsSource="{Binding WindowTabs}"                          
        SelectedItem="{Binding SelectedWindowTab, Mode=TwoWay}">

    <telerik:RadTabbedWindow.Resources>
      ...
    </telerik:RadTabbedWindow.Resources>

    <telerik:RadTabbedWindow.ItemTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding TabHeader}"  Foreground="Black"/>
        </DataTemplate>
    </telerik:RadTabbedWindow.ItemTemplate>
 
    <StatusBar Name="sbar"  VerticalAlignment="Bottom" >
        <StatusBarItem>
            <TextBlock>Im a status bar!</TextBlock>
        </StatusBarItem>
    </StatusBar>
</telerik:RadTabbedWindow>

2 Answers, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 24 Jul 2020, 09:11 AM

Hi Robert,

In order to display a status bar at the bottom of the RadTabbedWindow, you will need to modify its control template.

For your convenience, I've prepared a small sample project which demonstrates this approach. In addition, you can bind the content of the status bar to properties of your window, should you find this necessary.

Please have a look at the attached project and let me know if such an approach would work for you.

Regards,
Dilyan Traykov
Progress Telerik

0
Robert
Top achievements
Rank 1
Veteran
answered on 28 Jul 2020, 08:38 AM

Super! 

Thanks!

Tags
TabbedWindow
Asked by
Robert
Top achievements
Rank 1
Veteran
Answers by
Dilyan Traykov
Telerik team
Robert
Top achievements
Rank 1
Veteran
Share this question
or