View Issue Details

IDProjectCategoryView StatusLast Update
0002469NoesisGUIXamlToypublic2022-11-28 17:43
Reporterstonstad Assigned Tosfernandez  
PrioritynormalSeverityminor 
Status resolvedResolutionno change required 
Product Version3.1.5 
Summary0002469: Slider.IsMoveToPointEnabled Not Implemented?
Description

IsMoveToPointEnabled Gets or sets a value that indicates whether the Thumb of a Slider moves immediately to the location of the mouse click that occurs while the mouse pointer pauses on the Slider track

I don't believe this is implemented. If I click on the slider track it moves the thumb even when I have this value set to false;

Steps To Reproduce

<Grid
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:noesis="clr-namespace:NoesisGUIExtensions;assembly=Noesis.GUI.Extensions">
<Grid Background="{StaticResource Brush.Window.Background}">
<StackPanel Margin="10,10,-10,0" HorizontalAlignment="Center" VerticalAlignment="Center">
<StackPanel Orientation="Horizontal">
<StackPanel>
<TextBlock Text="Default Button" FontSize="18" TextAlignment="Center" Margin="0,0,0,10"/>
<Button Content="Enabled"/>
<Button Content="Disabled" IsEnabled="False" Margin="0,5,0,0"/>
</StackPanel>
<StackPanel Margin="20,0">
<TextBlock Text="Toggle Button" FontSize="18" TextAlignment="Center" Margin="0,0,0,10"/>
<ToggleButton Content="Enabled"/>
<ToggleButton Content="Checked" IsChecked="True" Margin="0,5,0,0"/>
<ToggleButton Content="Disabled" IsEnabled="False" Margin="0,5,0,0"/>
<ToggleButton Content="Checked" IsChecked="True" IsEnabled="False" Margin="0,5,0,0"/>
</StackPanel>
<StackPanel>
<TextBlock Text="Toggle Switch" FontSize="18" TextAlignment="Center" Margin="0,0,0,10"/>
<ToggleButton Style="{StaticResource Style.ToggleSwitch}" Content="Enabled"/>
<ToggleButton Style="{StaticResource Style.ToggleSwitch}" Content="Checked" IsChecked="True" Margin="0,5,0,0"/>
<ToggleButton Style="{StaticResource Style.ToggleSwitch}" Content="Disabled" IsEnabled="False" Margin="0,5,0,0"/>
<ToggleButton Style="{StaticResource Style.ToggleSwitch}" Content="Checked" IsChecked="True" IsEnabled="False" Margin="0,5,0,0"/>
</StackPanel>
<StackPanel Margin="20,0">
<TextBlock Text="CheckBox" FontSize="18" TextAlignment="Center" Margin="0,0,0,10"/>
<CheckBox Content="Enabled"/>
<CheckBox Content="Checked" IsChecked="True" Margin="0,5,0,0"/>
<CheckBox Content="3-State" IsChecked="{x:Null}" IsThreeState="True" Margin="0,5,0,0"/>
<CheckBox Content="Disabled" IsEnabled="False" Margin="0,5,0,0"/>
<CheckBox Content="Checked" IsChecked="True" IsEnabled="False" Margin="0,5,0,0"/>
<CheckBox Content="3-State" IsChecked="{x:Null}" IsThreeState="True" IsEnabled="False" Margin="0,5,0,0"/>
</StackPanel>
<StackPanel Margin="20,0">
<TextBlock Text="RadioButton" FontSize="18" TextAlignment="Center" Margin="0,0,0,10"/>
<StackPanel>
<RadioButton Content="Enabled"/>
<RadioButton Content="Checked" IsChecked="True" Margin="0,5,0,0"/>
</StackPanel>
<StackPanel>
<RadioButton Content="Disabled" IsEnabled="False" Margin="0,5,0,0"/>
<RadioButton Content="Checked" IsChecked="True" IsEnabled="False" Margin="0,5,0,0"/>
</StackPanel>
</StackPanel>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,20,0,0">
<StackPanel>
<TextBlock Text="TextBox" FontSize="18" TextAlignment="Center" Margin="0,0,0,10"/>
<TextBox Text="Enabled"/>
<TextBox noesis:Text.Placeholder="Placeholder" Margin="0,5,0,0"/>
<TextBox Text="Disabled" IsEnabled="False" Margin="0,5,0,0"/>
</StackPanel>
<StackPanel Margin="20,0">
<TextBlock Text="PasswordBox" FontSize="18" TextAlignment="Center" Margin="0,0,0,10"/>
<PasswordBox Password="Enabled"/>
<PasswordBox noesis:Text.Placeholder="Placeholder" Margin="0,5,0,0"/>
<PasswordBox Password="Disabled" IsEnabled="False" Margin="0,5,0,0"/>
</StackPanel>
<StackPanel>
<TextBlock Text="Slider" FontSize="18" TextAlignment="Center" Margin="0,0,0,10"/>
<Slider Value="0" MinWidth="120" IsMoveToPointEnabled="False"/>
<Slider Value="1" TickPlacement="Both" Margin="0,5,0,0" IsMoveToPointEnabled="False"/>
<Slider Value="2" IsDirectionReversed="True" TickPlacement="BottomRight" Margin="0,5,0,0" IsMoveToPointEnabled="False"/>
<Slider Value="5" IsEnabled="False" Margin="0,5,0,0"/>
</StackPanel>
<StackPanel Margin="20,0">
<TextBlock Text="ListBox" FontSize="18" TextAlignment="Center" Margin="0,0,0,10"/>
<ListBox BorderBrush="{StaticResource Brush.Border.Normal}" BorderThickness="1">
<ListBoxItem Content="Unselected"/>
<ListBoxItem Content="Selected" IsSelected="True"/>
<ListBoxItem Content="Disabled" IsEnabled="False"/>
</ListBox>
</StackPanel>
<StackPanel>
<TextBlock Text="TreeView" FontSize="18" TextAlignment="Center" Margin="0,0,0,10"/>
<TreeView BorderBrush="{StaticResource Brush.Border.Normal}" BorderThickness="1">
<TreeViewItem Header="Expanded" IsExpanded="True">
<TreeViewItem Header="Child"/>
</TreeViewItem>
<TreeViewItem Header="Collapsed">
<TreeViewItem Header="Child"/>
</TreeViewItem>
<TreeViewItem Header="Disabled" IsEnabled="False">
<TreeViewItem Header="Child"/>
</TreeViewItem>
</TreeView>
</StackPanel>
</StackPanel>
</StackPanel>
</Grid>
</Grid>

PlatformAny

Activities

sfernandez

sfernandez

2022-11-28 10:36

manager   ~0008176

This property doesn't mean that, when set to false, clicking the track bar won't do anything, it advances the slider by its LargeChange property value.
When this property is set to true what happens is that the thumb is moved directly to the position you clicked in the track bar.

If you want to disable the track bar clicks you can modify the Slider template and remove the RepeatButtons placed in the Track that are in charge of moving the thumb by LargeChange increments.

stonstad

stonstad

2022-11-28 16:23

reporter   ~0008180

Understood. Thank you!

Issue History

Date Modified Username Field Change
2022-11-27 03:32 stonstad New Issue
2022-11-28 10:36 sfernandez Assigned To => sfernandez
2022-11-28 10:36 sfernandez Status new => feedback
2022-11-28 10:36 sfernandez Note Added: 0008176
2022-11-28 16:23 stonstad Note Added: 0008180
2022-11-28 16:23 stonstad Status feedback => assigned
2022-11-28 17:43 sfernandez Status assigned => resolved
2022-11-28 17:43 sfernandez Resolution open => no change required