Hello.
I am trying RadSlider control and found this small problem:
I have on my container (Canvas) except RadSlider control also Button (or some other control that can have keyboard focus).
By default RadSlider has Focusable property set to true and when it has keyboard focus it also reacts on arrow keys.
Problem is that when I press and release arrow key it starts to move selection on slider but don’t stop with it (like when arrow key would be pressed forever).
I think the reason is that with arrow keys keyboard focus is moved to my button and I believe slider receives keydown event but don’t get keyup because it is already received by button. As KeyboardNavigation is by default set to Cycle keyboard focus with arrows.
For me this makes no problem because I don’t need this feature and so I set Focusable property on slider to false but I wanted to mention it.
Best regards,
Michal
<Telerik:GridViewDataColumn HeaderText="Comment" IsFilterable="False" UniqueName="Comment" DataMemberPath="InnerValue" Width="*"> | |
<Telerik:GridViewDataColumn.CellStyle> | |
<Style TargetType="{x:Type Telerik:GridViewCell}"> | |
<EventSetter Event="EditEnded" Handler="Comment_EditEnded"/> | |
<EventSetter Event="MouseUp" Handler="Cell_MouseUp" /> | |
<Setter Property="IsEnabled" Value="{Binding Path=IsSelected}"/> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="{x:Type Telerik:GridViewCell}"> | |
<ctlPanel:ColumnWrapPanel> | |
<TextBlock TextWrapping="Wrap" TextTrimming="None" Text="{TemplateBinding Content}"/> | |
</ctlPanel:ColumnWrapPanel> | |
</ControlTemplate> | |
</Setter.Value> | |
</Setter> | |
<Style.Triggers> | |
<Trigger Property="IsInEditMode" Value="True"> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="{x:Type Telerik:GridViewCell}"> | |
<ctlPanel:ColumnWrapPanel> | |
<TextBox Name="txt" Height="auto" TextWrapping="Wrap" Margin="2,2,2,2" Foreground="Black" | |
Text="{TemplateBinding Content}"/> | |
</ctlPanel:ColumnWrapPanel> | |
</ControlTemplate> | |
</Setter.Value> | |
</Setter> | |
</Trigger> | |
</Style.Triggers> | |
</Style> | |
</Telerik:GridViewDataColumn.CellStyle> | |
</Telerik:GridViewDataColumn> |
<UserControl |
x:Class="Window2" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
xmlns:local="clr-namespace:XXX.XXX.LoadOnDemand" Background="Transparent"> |
<DockPanel> |
<TextBlock DockPanel.Dock="Bottom" TextWrapping="Wrap" FontSize="12"> |
<Image Source="/XXX;component/LoadOnDemand/Images/logo.png" Height="120" Width="160"></Image> |
</TextBlock> |
<TreeView ItemsSource="{Binding Regions}" Background="Transparent" BorderThickness="0" x:Name="MonTreeview"> |
<TreeView.ItemContainerStyle> |
<!-- |
This Style binds a TreeViewItem to a TreeViewItemViewModel. |
--> |
<Style TargetType="{x:Type TreeViewItem}"> |
<Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" /> |
<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" /> |
<Setter Property="FontWeight" Value="Normal" /> |
<Style.Triggers> |
<Trigger Property="IsSelected" Value="True"> |
<Setter Property="FontWeight" Value="Bold" /> |
</Trigger> |
</Style.Triggers> |
</Style> |
</TreeView.ItemContainerStyle> |
<TreeView.Resources> |
<HierarchicalDataTemplate |
DataType="{x:Type local:affaireModel}" |
ItemsSource="{Binding Children}" |
> |
<StackPanel Orientation="Horizontal"> |
<Image Width="16" Height="16" Margin="3,0" Source="Images\Region.png" /> |
<TextBlock Text="{Binding AffaireName}" /> |
</StackPanel> |
</HierarchicalDataTemplate> |
<HierarchicalDataTemplate |
DataType="{x:Type local:StateViewModel}" |
ItemsSource="{Binding Children}" |
> |
<StackPanel Orientation="Horizontal"> |
<Image Width="16" Height="16" Margin="3,0" Source="Images\State.png" /> |
<TextBlock Text="{Binding ChapitreAffaireName}" /> |
</StackPanel> |
</HierarchicalDataTemplate> |
<DataTemplate DataType="{x:Type local:maTacheModel}"> |
<StackPanel Orientation="Horizontal"> |
<Image Width="16" Height="16" Margin="3,0" Source="Images\City.png" /> |
<TextBlock Text="{Binding TacheName}" /> |
</StackPanel> |
</DataTemplate> |
</TreeView.Resources> |
</TreeView> |
<Label Height="66" Name="Label1" Width="149">Label</Label> |
</DockPanel> |
</UserControl> |
<telerik:RadCarousel Error is : The element grid in namespace http://schemas.microsoft.com/winfx/2006/xaml/presentation has invalid child element RadCarousel in namepace http://schemas.microsoft.com/winfx/2006/xaml/ list of possible elements expexted..... |
<QuickStart:ExampleControl x:Class="Telerik.Windows.Examples.Carousel.BringIntoView.Example" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
xmlns:QuickStart="clr-namespace:Telerik.Windows.QuickStart;assembly=Telerik.Windows.QuickStart" |
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" |
xmlns:e="clr-namespace:Telerik.Windows.Examples"> |
<QuickStart:ExampleControl.Resources> |
<ObjectDataProvider x:Key="objectDataProvider" ObjectType="{x:Type e:ExamplesDB}" MethodName="GetAddressBookSimple" /> |
</QuickStart:ExampleControl.Resources> |
<Grid> |
<telerik:RadCarousel Name="radCarousel" DataContext="{StaticResource objectDataProvider}" ItemsSource="{Binding}"/> |
</Grid> |
<QuickStart:ExampleControl.TopRightPanel> |
<StackPanel> |
<TextBlock Text="Locate contact" /> |
<ComboBox DisplayMemberPath="FirstName" DataContext="{StaticResource objectDataProvider}" |
ItemsSource="{Binding}" HorizontalAlignment="Stretch" ClipToBounds="True" SelectedIndex="0" |
SelectionChanged="Contact_SelectionChanged" /> |
</StackPanel> |
</QuickStart:ExampleControl.TopRightPanel> |
</QuickStart:ExampleControl> |