TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Siddle Mathew
NA
75
1k
Selection chaned event does not working with touch scroll?
Apr 16 2016 4:57 AM
Touch Scrolling is working when check my app by window Simulator on the OS 2010.
Selection event of Telerik TileList control does not firing with touch screen. I want to scrolling tile list by touch screen and if user click on tiles then will be fire selection changed event but not firing why?
<ScrollViewer VerticalScrollBarVisibility=
"Disabled"
HorizontalScrollBarVisibility=
"Auto"
PanningMode=
"Both"
ManipulationBoundaryFeedback=
"ScrollViewerCanvas_ManipulationBoundaryFeedback"
>
<telerik:RadTileList Grid.Column=
"1"
Grid.Row=
"1"
x:Name=
"horizontalListBox"
ItemsPanel=
"{StaticResource itemsPanelTemplate}"
ItemsSource=
"{Binding HomeModel.TechnicianFieldScheuleCollection }"
>
<telerik:RadTileList.ItemContainerStyle>
<Style>
<Setter Property=
"telerik:Tile.Background"
Value=
"Transparent"
/>
</Style>
<!--<Style TargetType=
"telerik:Tile"
BasedOn=
"{StaticResource {x:Type telerik:Tile}}"
>
<Setter Property=
"Background"
Value=
"Tomato"
/>
<Setter Property=
"flowConfiguration:TileAttachedProperties.IsTyleTypeBound"
Value=
"True"
/>
these events wil be handled
in
.xaml.cs file
<EventSetter Event=
"TouchDown"
Handler=
"TouchDown_OnHandler"
/>
<EventSetter Event=
"MouseDown"
Handler=
"MouseDown_OnHandler"
/>
<Setter Property=
"Template"
>
<Setter.Value>
<ControlTemplate>
<Grid x:Name=
"TileRootPanel"
Background=
"{TemplateBinding Background}"
Margin=
"10"
HorizontalAlignment=
"Stretch"
VerticalAlignment=
"Stretch"
>
<Grid x:Name=
"ContentVisual"
HorizontalAlignment=
"Stretch"
VerticalAlignment=
"Stretch"
>
<ContentPresenter HorizontalAlignment=
"Stretch"
VerticalAlignment=
"Stretch"
Content="{Binding
RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type telerik:Tile}},
Path=Content, UpdateSourceTrigger=PropertyChanged}"
ContentTemplateSelector=
"{StaticResource TileContentTemplateSelectorKey}"
/>
</Grid>
<Border x:Name=
"SelectedVisual"
Visibility=
"Collapsed"
BorderThickness=
"1"
Margin=
"0"
HorizontalAlignment=
"Stretch"
VerticalAlignment=
"Stretch"
>
<Grid Margin=
"0"
x:Name=
"SelectedSymbol"
Background=
"Blue"
HorizontalAlignment=
"Right"
VerticalAlignment=
"Bottom"
Width=
"20"
Height=
"20"
>
<TextBlock Text=
"!"
FontWeight=
"Bold"
Foreground=
"Red"
HorizontalAlignment=
"Center"
VerticalAlignment=
"Center"
/>
</Grid>
</Border>
<Border x:Name=
"MouseOverVisual"
Margin=
"0"
Visibility=
"Collapsed"
BorderThickness=
"1"
HorizontalAlignment=
"Stretch"
VerticalAlignment=
"Stretch"
/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property=
"telerik:Tile.IsMouseOver"
Value=
"True"
>
<Setter Property=
"Border.BorderBrush"
TargetName=
"MouseOverVisual"
Value=
"GreenYellow"
/>
<Setter Property=
"Border.Visibility"
TargetName=
"MouseOverVisual"
Value=
"Visible"
/>
<Setter Property=
"Border.BorderThickness"
TargetName=
"MouseOverVisual"
Value=
"1.5"
/>
</Trigger>
<Trigger Property=
"telerik:Tile.IsMouseOver"
Value=
"False"
>
<Setter Property=
"Border.BorderBrush"
TargetName=
"MouseOverVisual"
Value=
"Transparent"
/>
<Setter Property=
"Border.Visibility"
TargetName=
"MouseOverVisual"
Value=
"Collapsed"
/>
</Trigger>
<Trigger Property=
"telerik:Tile.IsSelected"
Value=
"True"
>
<Setter Property=
"Border.BorderBrush"
TargetName=
"SelectedVisual"
Value=
"Blue"
/>
<Setter Property=
"Border.BorderThickness"
TargetName=
"SelectedVisual"
Value=
"2.5"
/>
<Setter Property=
"Grid.Visibility"
TargetName=
"SelectedVisual"
Value=
"Visible"
/>
</Trigger>
<Trigger Property=
"telerik:Tile.IsSelected"
Value=
"False"
>
<Setter Property=
"Border.BorderBrush"
TargetName=
"SelectedVisual"
Value=
"Transparent"
/>
<Setter Property=
"Grid.Visibility"
TargetName=
"SelectedVisual"
Value=
"Collapsed"
/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>-->
</telerik:RadTileList.ItemContainerStyle>
<ie:Interaction.Triggers>
<ie:EventTrigger EventName=
"SelectionChanged"
>
<ie:InvokeCommandAction Command=
"{Binding homeTileListSelectedItemChangedCommand}"
>
<ie:InvokeCommandAction.CommandParameter>
<MultiBinding>
<MultiBinding.Converter>
<app:TechnicianConverterHome></app:TechnicianConverterHome>
</MultiBinding.Converter>
<Binding ElementName=
"horizontalListBox"
/>
<Binding ElementName=
"HomeUserControl"
/>
</MultiBinding>
</ie:InvokeCommandAction.CommandParameter>
</ie:InvokeCommandAction>
</ie:EventTrigger>
</ie:Interaction.Triggers>
</telerik:RadTileList>
</ScrollViewer>
and in code behind :
private
void
ScrollViewerCanvas_ManipulationBoundaryFeedback(
object
sender, ManipulationBoundaryFeedbackEventArgs e)
{
e.Handled =
true
;
}
Reply
Answers (
0
)
How to set background color to ComboBox In WPF?
how to change shapes of button like circle, rounded corners