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

Header hit test?

3 Answers 78 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jon Barron
Top achievements
Rank 1
Jon Barron asked on 18 Jun 2010, 11:24 PM

Hi,

I've created a RadWindow with a RadBibbonBar in the header. I got the appearance to what I want, but the ribbon bar is not registering hits, and none of the buttons or tabs respond to mouse clicks. I've tried setting the IsHeaderHitTestVisible property as recommended in http://www.telerik.com/community/forums/wpf/window/adding-a-button-to-the-title-bar.aspx, but this has no effect.

I've simplified the XAML down to the bare minimum parts, and it still does not work. What am I doing wrong???!?!?

Thanks!

<telerik:RadWindow x:Class="Exprt.Controls.ScratchPad"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Windows="clr-namespace:System.Windows;assembly=System.Windows"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    xmlns:telerikRibbonBar="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.RibbonBar"
    xmlns:Data="clr-namespace:System.Windows.Data;assembly=System.Windows" Width="474"
    Name="windowMenu" IsHeaderHitTestVisible="True" CanClose="True">
    <telerik:RadWindow.HeaderTemplate>
        <Windows:DataTemplate>
            <telerikRibbonBar:RadRibbonBar HorizontalContentAlignment="Stretch" HorizontalAlignment="Stretch" Margin="-8,3,-25,0" Name="ribbonBar" VerticalAlignment="Top" IsMinimizable="False" HelpButtonVisibility="Visible" TitleBarVisibility="Visible">
                <telerikRibbonBar:RadRibbonBar.QuickAccessToolBar>
                    <telerikRibbonBar:QuickAccessToolBar>
                        <telerikRibbonBar:RadRibbonButton Text="Save" SmallImage="/Exprt;component/Images/save.png" Size="Small"  Command="{Data:Binding SaveCommand}"  />
                        <telerikRibbonBar:RadRibbonButton Text="Undo" SmallImage="/Exprt;component/Images/undo.png" Size="Small" Name="btnUndo" />
                    </telerikRibbonBar:QuickAccessToolBar>
                </telerikRibbonBar:RadRibbonBar.QuickAccessToolBar>
            </telerikRibbonBar:RadRibbonBar>
        </Windows:DataTemplate>
    </telerik:RadWindow.HeaderTemplate>     
</telerik:RadWindow>

3 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 23 Jun 2010, 05:01 PM
Hi Jon,

 We used to have problem with the IsHeaderHitTestVisible property, but it should be solved in the latest version. Which version of RadControls for Silverlight do you use?

All the best,
Miroslav Nedyalkov
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
Jon Barron
Top achievements
Rank 1
answered on 24 Jun 2010, 08:00 PM
v.2010.1.422.1040 is what I have installed.
0
Jon Barron
Top achievements
Rank 1
answered on 24 Jun 2010, 08:01 PM
I see that v.2010.1.0603.0 is available; I'll install that and see if that fixes the issue.
Tags
Window
Asked by
Jon Barron
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Jon Barron
Top achievements
Rank 1
Share this question
or