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

Embed Controls in Window's Header

5 Answers 58 Views
Window
This is a migrated thread and some comments may be shown as answers.
Parvinder Singh
Top achievements
Rank 1
Parvinder Singh asked on 28 May 2010, 09:36 PM
Hi,

I m trying to embed different controls in window's headed part and window is working fine but problem is all controls appeared in disable mode, code is as follows:

<telerik:RadWindow x:Name="windowMenu" HorizontalAlignment="Stretch" Height="400" VerticalAlignment="Stretch" Background="#FF333333" CanClose="False" Left="215" Top="80" FontFamily="Arial" FontSize="10.667">
                            <telerik:RadWindow.HeaderTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal">      
                                            <telerik:RadSplitButton x:Name="splitbuttonSelectView" Content="Select view" />
                                            <sdk:AutoCompleteBox Margin="30,3,0,3" Width="250"/>
                                            <TextBlock x:Name="textblockSearch" Margin="10,10,0,9" Text="Search" />
                                            <telerik:RadButton Content="Reset Canvas" Margin="30,3,0,3" FontFamily="Arial" FontSize="12"/>
                                            <telerik:RadSlider Margin="30,7,0,7" Width="170"/>
                                            <TextBlock x:Name="textblockZoom" Margin="10,10,0,9" Text="Zoom" />
                                            <telerik:RadSlider Margin="30,7,0,7" Width="170"/>
                                            <TextBlock x:Name="textblockRelaxation" Margin="10,10,14,9" Text="Relaxation" />
                                        <!--</telerik:RadToolBar>-->
                                    </StackPanel>
                                </DataTemplate>
                            </telerik:RadWindow.HeaderTemplate>
                        </telerik:RadWindow>
Thank you in advance.. 

5 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 02 Jun 2010, 02:44 PM
Hello Parvinder,

Thank you for contacting us.

To enable the controls in the Header of the Window you will have to set its IsHeaderHitTestVisible property to "True".
Hope this helps.

If you have any other questions about our controls please let us know.

All the best,
Konstantina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Parvinder Singh
Top achievements
Rank 1
answered on 03 Jun 2010, 06:10 AM
I already tried  IsHeaderHitTestVisible property to "True
But it was not working :( 
0
Konstantina
Telerik team
answered on 07 Jun 2010, 12:05 PM
Hi Parvinder,

To make it work please migrate to the latest available version of the controls from 03 June 2010.

If you still experience difficulties could you please send us a sample project in which the issue is observed.

Best wishes,
Konstantina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Parvinder Singh
Top achievements
Rank 1
answered on 07 Jun 2010, 12:09 PM
Thank you, i will update to latest version & let you know. 
0
Le_Roy
Top achievements
Rank 2
answered on 15 Jun 2010, 01:04 PM

Hello!
This one snippet worked for me

<telerikNavigation:RadWindow  
  x:Class="my.Controls.DataWindow" 
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
  xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" 
  xmlns:telerikControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
  xmlns:myControls="clr-namespace:my.Controls;assembly=my.Controls" 
  IsRestricted="True" Height="600">  
 
  <telerikNavigation:RadWindow.ContentTemplate> 
    <DataTemplate> 
      <Grid Background="White">  
        <Grid.RowDefinitions> 
          <RowDefinition Height="20"/>  
          <RowDefinition/> 
          <RowDefinition Height="20"/>  
        </Grid.RowDefinitions> 
        <!-- Header --><myControls:ProgressBar x:Name="Indicator" Grid.Row="0" Margin="5,0,5,0"/>  
        <ContentPresenter Grid.Row="1" Content="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}"/>  
        <!-- Footer --><myControls:ProgressBar x:Name="Indicator" Grid.Row="2" Margin="5,0,5,0"/>  
      </Grid> 
    </DataTemplate> 
  </telerikNavigation:RadWindow.ContentTemplate> 
 
  <Grid> 
  </Grid>     
</telerikNavigation:RadWindow> 
Tags
Window
Asked by
Parvinder Singh
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Parvinder Singh
Top achievements
Rank 1
Le_Roy
Top achievements
Rank 2
Share this question
or