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

splecial slot style - Urgent Help Needed

2 Answers 41 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Mário
Top achievements
Rank 1
Mário asked on 04 Apr 2011, 03:19 PM
Urgent.... My client has a bug in production enviroment and he can
not do his work. This feature is important and I do not have any
workarround

 I am trying to draw something with splecialslot  style . But the
DataContext of highlightitem is changing incorrectly, and I can not
control the correct positioning of specific images with  databinding

<ctr:SpecialSlotStyleSelector x:Key="
SpecialSlotStyleSelector">
       <ctr:SpecialSlotStyleSelector.MarcaStyle>
           <Style TargetType="telerik:HighlightItem">
               <Setter Property="Panel.ZIndex" Value="20" />
               <Setter
Property="bv:HackIsHitTestVisible.IsHitTestVisible" Value="true"/>
               <Setter Property="Template">
                   <Setter.Value>
                       <ControlTemplate>
                           <Grid >
                               <Border  IsHitTestVisible="False"
Background="White" Opacity="0.25" >

                               </Border>
                               <Grid IsHitTestVisible="True"
telerik:RadDragAndDropManager.AllowDrag="True"
Background="Transparent" x:Name="root" HorizontalAlignment="Center">
                                   <Grid.InputBindings>
                                       <MouseBinding
MouseAction="LeftDoubleClick" CommandParameter="{Binding
Path=Marcador}" Command="app:AppCommands.ShowMarkEditVw"/>
                                   </Grid.InputBindings>
                                   <Grid.ColumnDefinitions>
                                       <ColumnDefinition
Width="auto"></ColumnDefinition>
                                   </Grid.ColumnDefinitions>
                                   <Image Margin="0,0,0,0"
Source="{Binding Imagem, Converter={StaticResource imageConverter}}"/>

                                   <telerik:RadButton Grid.Column="1"
x:Name="DeleteButton" Opacity="1" Visibility="Collapsed"
                                                                               CommandParameter="{Binding Path=Marcador.ID_ViaturasMarcadores}"
                                                                               Command="local:AppCommands.RemoveMark"
                                                                               HorizontalAlignment="Right" Height="11" Margin="1,1,-11,1" Padding="0"
                                                                               VerticalAlignment="Top" Width="11">
                                       <telerik:StyleManager.Theme>
                                           <telerik:Expression_DarkTheme />
                                       </telerik:StyleManager.Theme>
                                       <Path Data="M0,0L5,5 M5,0L0,5"
Stroke="#FFDDDDDD" />
                                   </telerik:RadButton>


                               </Grid>
                           </Grid>

                           <ControlTemplate.Triggers>
                               <Trigger Property="IsMouseOver"
Value="true" SourceName="root">
                                   <Setter Property="Visibility"
Value="Visible" TargetName="DeleteButton" />

                               </Trigger>
                           </ControlTemplate.Triggers>
                       </ControlTemplate>
                   </Setter.Value>
               </Setter>
           </Style>
       </ctr:SpecialSlotStyleSelector.MarcaStyle>
   </ctr:SpecialSlotStyleSelector>

2 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 04 Apr 2011, 03:29 PM
Hi Mário,

The provided information is not enough to reproduce the problem and provide you with a solution.
I suggest you send us a sample running project and/or detailed step - by- step instructions
illustrating the issue. This will help us to investigate the issue and provide you with more detailed technical instructions.

Best wishes,
Rosi
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
Mário
Top achievements
Rank 1
answered on 05 Apr 2011, 09:43 AM
Thank's for the help.
I detected the issue.
Thank's once more.
Tags
ScheduleView
Asked by
Mário
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Mário
Top achievements
Rank 1
Share this question
or