Embed Controls in Window's Header

6 posts, 0 answers
  1. Parvinder Singh
    Parvinder Singh avatar
    10 posts
    Member since:
    Mar 2010

    Posted 28 May 2010 Link to this post

    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.. 
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 02 Jun 2010 Link to this post

    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.
  3. DevCraft banner
  4. Parvinder Singh
    Parvinder Singh avatar
    10 posts
    Member since:
    Mar 2010

    Posted 03 Jun 2010 Link to this post

    I already tried  IsHeaderHitTestVisible property to "True
    But it was not working :( 
  5. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 07 Jun 2010 Link to this post

    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.
  6. Parvinder Singh
    Parvinder Singh avatar
    10 posts
    Member since:
    Mar 2010

    Posted 07 Jun 2010 Link to this post

    Thank you, i will update to latest version & let you know. 
  7. Le_Roy
    Le_Roy avatar
    31 posts
    Member since:
    Nov 2009

    Posted 15 Jun 2010 Link to this post

    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> 
Back to Top
DevCraft banner