Buttons are not clickable since Q2 updated

5 posts, 1 answers
  1. Nazar
    Nazar avatar
    8 posts
    Member since:
    May 2011

    Posted 18 Aug 2011 Link to this post

    Buttons can’t be clicked within RadDocking since Q2 assemblies were used.  

    When mouse pointer comes over the button it became highlighted but button doesn’t reflect any mouse clicks and accordingly can’t be clicked. Button doesn’t became pressed (meaning state) .

    I paste my simple xaml, buttons are within telerik:RadPane and header of RadTabControl.

    <controls:ChildWindow x:Class="WDAdminUI.SiteModule.SiteEndpoints.Views.SiteEndpointManagerView"
        xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
        xmlns:CommandingResources="clr-namespace:WDAdminUI.SiteModule.VirtSiteUI.Commanding"
        xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
        xmlns:LocalUC="clr-namespace:WDAdminUI.SiteModule.VirtSiteUI"
        xmlns:MultiBind="clr-namespace:SLMultiBinding;assembly=SLMultiBinding"
        xmlns:LocalConverters="clr-namespace:WDAdminUI.SiteModule.Converters"
        xmlns:SharedCommandingResources="clr-namespace:WDAdminServer.SharedUIHelpers.Commanding;assembly=WDAdminServer.SharedUIHelpers"
        xmlns:Commands="clr-namespace:Microsoft.Practices.Prism.Commands;assembly=Microsoft.Practices.Prism"
        xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
        xmlns:sys="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
        xmlns:Views="clr-namespace:WDAdminUI.SiteModule.SiteEndpoints.Views"
        xmlns:converters="clr-namespace:WDAdminServerUI.Resource.Converters;assembly=WDAdminServerUI.Resource"
        HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Padding="0"
        xmlns:Commanding="clr-namespace:WDAdminServer.SharedUIHelpers.Commanding;assembly=WDAdminServer.SharedUIHelpers"
        xmlns:BindingResource="clr-namespace:WDAdminServer.SharedUIHelpers.RelativeBinding;assembly=WDAdminServer.SharedUIHelpers"
        mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="1024" HasCloseButton="False">
     
        <controls:ChildWindow.Resources>
            <DataTemplate x:Key="EndpointComboBoxItemDataTemplate">
                <toolkit:DockPanel>
                    <TextBlock TextWrapping="NoWrap" Text="{Binding Count}" TextTrimming="WordEllipsis"/>
                    <TextBlock TextWrapping="Wrap" Text=" "/>
                    <TextBlock Margin="0" TextWrapping="NoWrap" Text="{Binding ContentTypeName}" TextTrimming="WordEllipsis"/>
                </toolkit:DockPanel>
            </DataTemplate>
            <converters:BoolTrueToCollapsedConverter x:Key="BoolTrueToCollapsedConverter" />
            <converters:BoolOppositeConverter x:Key="BoolOppositeConverter" />
            <BindingResource:DataContextProxy x:Key="DataContextProxy" />
             
            <ControlTemplate x:Key="PaneGroup_DocumentFrameTemplate" TargetType="ContentControl">
                <!-- NOTE: this PaneGroup_DocumentFrameTemplate is the template of the multybordered dock. I will just strip the Borders -->
                <Border
                x:Name="Root"
                BorderBrush="{TemplateBinding BorderBrush}"
                Background="{TemplateBinding Background}"
                BorderThickness="{TemplateBinding BorderThickness}"
                CornerRadius="0,2,2,2">
     
                    <ContentPresenter />
                </Border>
            </ControlTemplate>
             
            <Style x:Key="PaneGroup_DocumentFrameStyle" TargetType="ContentControl">
                <Setter Property="Template" Value="{StaticResource PaneGroup_DocumentFrameTemplate}" />
            </Style>
            <!--<ResourceDictionary Source="/WDAdminUI.SiteModule;component/Styles/VirtualSiteMergedResourceDictionary.xaml" />-->
            <ControlTemplate x:Key="PaneGroupDocumentTemplate" TargetType="telerik:RadPaneGroup">
                <Grid>
     
                    <VisualStateManager.VisualStateGroups>
                        <VisualStateGroup x:Name="CommonStates">
                            <VisualState x:Name="Disabled" />
                            <VisualState x:Name="Normal" />
                        </VisualStateGroup>
                        <VisualStateGroup x:Name="ResizerStates">
                            <VisualState x:Name="ResizerLeft">
                                <Storyboard>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer"
                                        Storyboard.TargetProperty="Visibility" Duration="0">
                                        <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
                                    </ObjectAnimationUsingKeyFrames>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer"
                                        Storyboard.TargetProperty="Width" Duration="0">
                                        <DiscreteObjectKeyFrame KeyTime="0" Value="4" />
                                    </ObjectAnimationUsingKeyFrames>
                                    <ObjectAnimationUsingKeyFrames
                                        Storyboard.TargetName="ItemsPresenterElement"
                                        Storyboard.TargetProperty="Margin" Duration="0">
                                        <DiscreteObjectKeyFrame KeyTime="0" Value="4 0 0 0" />
                                    </ObjectAnimationUsingKeyFrames>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentBackground"
                                        Storyboard.TargetProperty="Margin" Duration="0">
                                        <DiscreteObjectKeyFrame KeyTime="0" Value="4 0 0 0" />
                                    </ObjectAnimationUsingKeyFrames>
                                </Storyboard>
                            </VisualState>
                            <VisualState x:Name="ResizerTop">
                                <Storyboard>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer"
                                        Storyboard.TargetProperty="Visibility" Duration="0">
                                        <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
                                    </ObjectAnimationUsingKeyFrames>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer"
                                        Storyboard.TargetProperty="VerticalAlignment" Duration="0">
                                        <DiscreteObjectKeyFrame KeyTime="0" Value="Top" />
                                    </ObjectAnimationUsingKeyFrames>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer"
                                        Storyboard.TargetProperty="HorizontalAlignment" Duration="0">
                                        <DiscreteObjectKeyFrame KeyTime="0" Value="Stretch" />
                                    </ObjectAnimationUsingKeyFrames>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer"
                                        Storyboard.TargetProperty="Placement" Duration="0">
                                        <DiscreteObjectKeyFrame KeyTime="0">
                                            <DiscreteObjectKeyFrame.Value>
                                                <telerik:Dock>Top</telerik:Dock>
                                            </DiscreteObjectKeyFrame.Value>
                                        </DiscreteObjectKeyFrame>
                                    </ObjectAnimationUsingKeyFrames>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer"
                                        Storyboard.TargetProperty="Height" Duration="0">
                                        <DiscreteObjectKeyFrame KeyTime="0" Value="4" />
                                    </ObjectAnimationUsingKeyFrames>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer"
                                        Storyboard.TargetProperty="(Grid.RowSpan)" Duration="0">
                                        <DiscreteObjectKeyFrame KeyTime="0" Value="1" />
                                    </ObjectAnimationUsingKeyFrames>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer"
                                        Storyboard.TargetProperty="(Grid.Row)" Duration="0">
                                        <DiscreteObjectKeyFrame KeyTime="0" Value="0" />
                                    </ObjectAnimationUsingKeyFrames>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Header"
                                        Storyboard.TargetProperty="Margin" Duration="0">
                                        <DiscreteObjectKeyFrame KeyTime="0" Value="0 4 0 0" />
                                    </ObjectAnimationUsingKeyFrames>
                                </Storyboard>
                            </VisualState>
                            <VisualState x:Name="HideResizer" />
                        </VisualStateGroup>
                    </VisualStateManager.VisualStateGroups>
     
     
                    <Grid.RowDefinitions>
                        <RowDefinition Height="auto" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
     
                    <Grid Grid.Row="0" x:Name="Header">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
     
                        <ScrollViewer x:Name="ScrollViewerElement" Grid.Column="1" Margin="0 -2" HorizontalScrollBarVisibility="{Binding (ScrollViewer.HorizontalScrollBarVisibility), RelativeSource={RelativeSource TemplatedParent}}">
                            <ScrollViewer.Template>
                                <ControlTemplate TargetType="ScrollViewer">
                                    <ScrollContentPresenter x:Name="ScrollContentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Margin="0 0 1 0" />
                                </ControlTemplate>
                            </ScrollViewer.Template>
                            <ItemsPresenter x:Name="ItemsPresenterElement" Margin="0 2" />
                        </ScrollViewer>
                    </Grid>
     
                    <!--Content-->
                    <ContentControl x:Name="ContentBackground" Grid.Row="1"
                        BorderBrush="{TemplateBinding BorderBrush}"
                        BorderThickness="{TemplateBinding BorderThickness}"
                        Background="Transparent"
                        Style="{StaticResource PaneGroup_DocumentFrameStyle}">
     
                        <ContentPresenter x:Name="ContentElement" ContentTemplate="{TemplateBinding SelectedContentTemplate}" />
                    </ContentControl>
     
                    <telerik:RadGridResizer x:Name="DockResizer" Placement="Left" ShowsPreview="True"
                        Visibility="Collapsed" VerticalAlignment="Stretch" HorizontalAlignment="Left"
                        Grid.RowSpan="2" />
     
                </Grid>
     
            </ControlTemplate>
     
            <DataTemplate x:Key="SiteVirtualDisplayLayoutsHeader">
                <StackPanel Orientation="Horizontal">
                    <Button Command="{Binding Source={StaticResource DataContextProxy}, Path=DataSource.DeleteSiteLayoutCommand}"
                        CommandParameter="{Binding}" Margin="2,2,5,2"
                        Visibility="{Binding Source={StaticResource DataContextProxy}, Path=DataSource.IsViewOnlyMode, Converter={StaticResource BoolTrueToCollapsedConverter}}">
                        <ToolTipService.ToolTip>
                            <StackPanel Orientation="Horizontal">
                                <TextBlock Text="Delete Store Area: " />
                                <TextBlock Text="{Binding TargetSiteVirtualDisplayLayout.SiteVirtualDisplayLayoutName}" />
                            </StackPanel>
                        </ToolTipService.ToolTip>
                    </Button>
                    <TextBox Text="{Binding TargetSiteVirtualDisplayLayout.SiteVirtualDisplayLayoutName, Mode=TwoWay}"
                         Background="Transparent"
                         IsReadOnly="{Binding IsAreaNameHeaderTextEnabled}"
                         IsEnabled="{Binding Source={StaticResource DataContextProxy}, Path=DataSource.IsViewOnlyMode, Converter={StaticResource BoolOppositeConverter}}">
                        <i:Interaction.Triggers>
                            <SharedCommandingResources:UIElementMouseDoubleClickTrigger>
                                <SharedCommandingResources:UIElementMouseDoubleClickTrigger.Actions>
                                    <SharedCommandingResources:EventToCommand Command="{Binding Path=AreaHeader_DoubleClickCommand}" PassEventArgsToCommand="True" />
                                </SharedCommandingResources:UIElementMouseDoubleClickTrigger.Actions>
                            </SharedCommandingResources:UIElementMouseDoubleClickTrigger>
                            <i:EventTrigger EventName="LostFocus">
                                <ei:CallMethodAction MethodName="AreaHeader_LostFocus" TargetObject="{Binding}" />
                            </i:EventTrigger>
                            <i:EventTrigger EventName="KeyDown">
                                <ei:CallMethodAction MethodName="AreaHeader_EnterPressed" TargetObject="{Binding}" />
                            </i:EventTrigger>
                            <i:EventTrigger EventName="GotFocus">
                                <CommandingResources:EventToCommand
                                Command="{Binding Source={StaticResource DataContextProxy}, Path=DataSource.AreaHeader_GotFocusCommand}"
                                CommandParameter="{Binding}"/>
                            </i:EventTrigger>
                        </i:Interaction.Triggers>
                    </TextBox >
                    <Button Command="{Binding Source={StaticResource DataContextProxy}, Path=DataSource.AddNewSiteLayoutCommand}"
                        Margin="8,2,2,2" ToolTipService.ToolTip="Add New Store Area"
                        Visibility="{Binding Source={StaticResource DataContextProxy}, Path=DataSource.IsViewOnlyMode, Converter={StaticResource BoolTrueToCollapsedConverter}}"/>
                </StackPanel>
            </DataTemplate>
     
            <Style x:Key="DisplayListTemplateListBoxItemStyle" TargetType="ListBoxItem">
                <Setter Property="Padding" Value="3"/>
                <Setter Property="HorizontalContentAlignment" Value="Left"/>
                <Setter Property="VerticalContentAlignment" Value="Top"/>
                <Setter Property="Background" Value="Transparent"/>
                <Setter Property="BorderThickness" Value="1"/>
                <Setter Property="TabNavigation" Value="Local"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="ListBoxItem">
                            <Grid Background="{TemplateBinding Background}">
                                <Grid HorizontalAlignment="Stretch" x:Name="contentPresenter">
                                    <Grid.Background>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="Transparent" />
                                            <GradientStop Color="Transparent"  Offset="1" />
                                        </LinearGradientBrush>
                                    </Grid.Background>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="*" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
     
                                    <TextBlock x:Name="MainText" Grid.Column="1" Grid.Row="0" Text="{Binding EndpointDisplayName}"
                                           FontSize="11" >
                                    <TextBlock.Foreground>
                                        <SolidColorBrush Color="White" />
                                    </TextBlock.Foreground>
                                    </TextBlock>
                                    <Button Grid.Column="2" Grid.Row="0" Margin="4,0,0,0" HorizontalAlignment="Right" Content="Add"
                                        Command="{Binding Source={StaticResource DataContextProxy}, Path=DataSource.AddNewDisplayToLayoutCommand}"
                                        CommandParameter="{Binding}" />
                                </Grid>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
        </controls:ChildWindow.Resources>
        <!--<controls:ChildWindow.Style>
            <StaticResource ResourceKey="CommonChildWindowStyle"/>
        </controls:ChildWindow.Style>-->
     
        <Grid x:Name="LayoutRoot" Background="DarkGray">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
     
            <Button Grid.Column="0" Grid.Row="0" Height="22"
                    Margin="0,2,8,1" HorizontalAlignment="Right" VerticalAlignment="Top"
                    Command="{Binding AddCommand}" Canvas.ZIndex="1">
                <StackPanel Orientation="Horizontal">
                    <Image Source="/WDAdminServerUI.Resource;component/Images/down_plus.png" Margin="2,2,5,0" Height="16" Width="16" />
                    <TextBlock Text="Add New Endpoint" Margin="0,0,10,0" VerticalAlignment="Center" Foreground="White"  />
                </StackPanel>
            </Button>
     
            <telerik:RadDocking Grid.Column="0" Grid.Row="1"  HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                <telerik:RadDocking.DocumentHost>
                    <telerik:RadSplitContainer>
                        <telerik:RadPaneGroup DocumentHostTemplate="{StaticResource PaneGroupDocumentTemplate}">
                            <telerik:RadDocumentPane CanUserClose="False" Visibility="Collapsed">
                                <telerik:RadDocumentPane.Content>
                                    <telerik:RadTabControl
                                              ItemsSource="{Binding SiteLayoutVMs}"
                                              ItemTemplate="{StaticResource SiteVirtualDisplayLayoutsHeader}"
                                              SelectedItem="{Binding SelectedDisplayLayout, Mode=TwoWay}">
                                        <telerik:RadTabControl.ContentTemplate>
                                            <DataTemplate>
                                                <Views:VirtualSite HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
                                            </DataTemplate>
                                        </telerik:RadTabControl.ContentTemplate>
                                    </telerik:RadTabControl>
                                </telerik:RadDocumentPane.Content>
                            </telerik:RadDocumentPane>
                        </telerik:RadPaneGroup>
                    </telerik:RadSplitContainer>
                </telerik:RadDocking.DocumentHost>
     
                <telerik:RadSplitContainer telerik:DockingPanel.InitialSize="250,150" MaxWidth="600"
                        Name="LeftContainer" InitialPosition="DockedLeft">
                    <telerik:RadPaneGroup x:Name="Group1">
     
                        <telerik:RadPane Header="Info" CanUserClose="False">
                            <StackPanel Orientation="Vertical">
                                <Grid x:Name="SitesGrid" Margin="0">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="90"/>
                                        <ColumnDefinition/>
                                    </Grid.ColumnDefinitions>
                                    <TextBlock TextWrapping="Wrap" Text="Site" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="White" Margin="4"/>
                                    <TextBlock d:LayoutOverrides="Height" Margin="4" Grid.Column="1" Text="{Binding EditSite.BusinessEntityName, Mode=TwoWay}" Foreground="White" />
                                </Grid>
     
                                <Grid Margin="0">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="90"/>
                                        <ColumnDefinition/>
                                    </Grid.ColumnDefinitions>
                                    <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" d:LayoutOverrides="Height" Text="Store Type" Margin="4" Foreground="White"/>
                                    <TextBlock Margin="4" TextWrapping="Wrap" Text="{Binding EditSite.StoreTypes.StoreTypeName}" d:LayoutOverrides="Height" Grid.Column="1" Foreground="White" VerticalAlignment="Center"/>
                                </Grid>
     
                                <Grid Margin="0" Height="Auto">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="90"/>
                                        <ColumnDefinition/>
                                    </Grid.ColumnDefinitions>
                                    <TextBlock Text="{Binding EditSite.StoreTypes.StoreTypeDescription}" d:LayoutOverrides="Height" Foreground="White" Margin="4" Grid.Column="1" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto" VerticalAlignment="Top"/>
                                    <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" d:LayoutOverrides="Height" Text="Store Type Description" Margin="4" Foreground="White"/>
                                </Grid>
     
                                <Grid Margin="0" Height="160">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="90"/>
                                        <ColumnDefinition/>
                                    </Grid.ColumnDefinitions>
                                    <ItemsControl ItemsSource="{Binding IndoorEndpointsGroupList}" d:LayoutOverrides="Height" Margin="4" ItemTemplate="{StaticResource EndpointComboBoxItemDataTemplate}" Foreground="White" Grid.Column="1" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto" BorderThickness="1" BorderBrush="{x:Null}" Background="{x:Null}" />
                                    <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" d:LayoutOverrides="Height" Text="Indoor Endpoint Displays by Type" Margin="4" Foreground="White"/>
                                </Grid>
     
                                <Grid Margin="0" Height="160">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="90"/>
                                        <ColumnDefinition/>
                                    </Grid.ColumnDefinitions>
                                    <ItemsControl ItemsSource="{Binding OutdoorEndpointsGroupList}" d:LayoutOverrides="Height" Margin="4" ItemTemplate="{StaticResource EndpointComboBoxItemDataTemplate}" Foreground="White" Grid.Column="1" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto" BorderThickness="1" BorderBrush="{x:Null}" Background="{x:Null}"/>
                                    <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" d:LayoutOverrides="Height" Text="Outdoor Endpoint Displays by Type" Margin="4" Foreground="White"/>
                                </Grid>
                            </StackPanel>
                        </telerik:RadPane>
     
                        <telerik:RadPane Header="Avail Displays" CanUserClose="False">
                            <Grid>
                                <ListBox ItemsSource="{Binding SiteEndpointDisplays}" HorizontalContentAlignment="Stretch"
                                          Background="Transparent" ItemContainerStyle="{StaticResource DisplayListTemplateListBoxItemStyle}" />
                            </Grid>
                        </telerik:RadPane>
     
                        <!--<telerik:RadPane Header="Current Displays" CanUserClose="False">
                            <Grid>
                                <telerik:HeaderedContentControl Background="Transparent"
                                            Style="{StaticResource DefaultHeaderedContentControlStyle}" VerticalAlignment="Stretch"
                                            HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
                                    <telerik:HeaderedContentControl.Header>
                                        <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
                                            <TextBlock Text="Selected Area: " HorizontalAlignment="Center" />
                                            <TextBlock Text="{Binding SelectedDisplayLayout.TargetSiteVirtualDisplayLayout.SiteVirtualDisplayLayoutName}" HorizontalAlignment="Center" />
                                        </StackPanel>
                                    </telerik:HeaderedContentControl.Header>
                                    <ListBox ItemsSource="{Binding SelectedDisplayLayout.TargetSiteVirtualDisplayLayout.SiteVirtualDisplayLayouts_EndpointDisplays}"
                                         HorizontalContentAlignment="Stretch" SelectedItem="{Binding SelectedDisplayLayout.SelectedDisplay, Mode=TwoWay}"
                                             ItemContainerStyle="{StaticResource CurrentSelDisplayListTemplateListBoxItemStyle}" Background="Transparent" />
                                </telerik:HeaderedContentControl>
                            </Grid>
                        </telerik:RadPane>-->
     
                        <telerik:RadPane Header="Position Controls" CanUserClose="False" CanFloat="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                            <!--<LocalUC:EndpointDisplayPositionControls HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />-->
                        </telerik:RadPane>
     
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
     
            </telerik:RadDocking>
     
            <Grid Grid.Column="0" Grid.Row="2" HorizontalAlignment="Right" Margin="0,0,5,10">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
     
                <Button x:Name="CancelButton" Commands:Click.Command="{Binding CancelCommand}" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,5,0,0" Grid.Row="2" Grid.Column="2">
                    <StackPanel Orientation="Horizontal">
                        <Image Source="/WDAdminServerUI.Resource;component/Images/delete.png" Margin="2,2,5,2" />
                        <TextBlock Text="Cancel" VerticalAlignment="Center" Foreground="White" />
                    </StackPanel>
                </Button>
                <Button x:Name="OKButton" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,5,40,0" Grid.Column="0" Grid.Row="2"
                        Commands:Click.Command="{Binding SaveCommand}"
                        Commands:Click.CommandParameter="{Binding EditSite}">
                    <StackPanel Orientation="Horizontal">
                        <Image Source="/WDAdminServerUI.Resource;component/Images/disk_blue_ok.png" Margin="2,2,5,2" />
                        <TextBlock Text="Save" VerticalAlignment="Center" Foreground="White" />
                    </StackPanel>
                </Button>
                <Button x:Name="SaveCloseButton" Width="120" Height="23" HorizontalAlignment="Right" Margin="0,5,40,0" Grid.Row="2" Grid.Column="1"
                        Commands:Click.Command="{Binding SaveCloseCommand}"
                        Commands:Click.CommandParameter="{Binding EditSite}">
                    <StackPanel Orientation="Horizontal">
                        <Image Source="/WDAdminServerUI.Resource;component/Images/disk_blue_ok.png" Margin="2,2,5,2" />
                        <TextBlock Text="Save & Close" VerticalAlignment="Center" Foreground="White" />
                    </StackPanel>
                </Button>
     
            </Grid>
     
            <toolkit:BusyIndicator Grid.Row="0" Grid.RowSpan="4" Content="" IsBusy="{Binding IsLoading}" >
                <toolkit:BusyIndicator.BusyContent>
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <TextBlock x:Name="BusyIndicatorText" Foreground="Black" Text="Loading.." FontSize="9" Margin="0,0,0,4" />
                    </Grid>
                </toolkit:BusyIndicator.BusyContent>
            </toolkit:BusyIndicator>
     
        </Grid>
    </controls:ChildWindow>

  2. Nick Wood
    Nick Wood avatar
    126 posts
    Member since:
    Feb 2010

    Posted 18 Aug 2011 Link to this post

    I too am having the exact same issue. When I put any button in a DockPane it does not raise the click event.
    I dont need to say that this is a very urgent matter!.

    Nick
  3. DevCraft banner
  4. Nick Wood
    Nick Wood avatar
    126 posts
    Member since:
    Feb 2010

    Posted 18 Aug 2011 Link to this post

    Update:

    I have found that this only affects RadPanes that are Pinned. So if the pane is UnPinned the Click event IS raised.
    Nick
  5. Answer
    Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 22 Aug 2011 Link to this post

    Hello Nick,

    This issue is known and it is already fixed. I suggest you downloading the latest internal build.

    Hope this helps.

    All the best,
    Ivo
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  6. Nazar
    Nazar avatar
    8 posts
    Member since:
    May 2011

    Posted 23 Aug 2011 Link to this post

    It works now. Thanks!
Back to Top
DevCraft banner