Hello, I need to customize the BrushEditor by
1) Add a remove button to remove gradientstop (nobody can figure out they can remove stops by dragging)
2) Add a spinner that shows and modifies the offset of the seleted stop
I modified the BrushEditor.xaml by adding:
<Button Style="{DynamicResource {x:Static ToolBar.ButtonStyleKey}}"
Command="{x:Static shared:GradientBrushSlider.RemoveStopCommand}"
CommandTarget="{Binding ElementName=gradientBrushSlider}"
ToolTip="Remove Stop" IsEnabled="{Binding ElementName=gradientBrushSlider, Path=CanRemoveStops}">
<Rectangle Height="12" Width="12" Fill="{StaticResource StopBrush}" />
</Button>
</StackPanel>
<primitives:DoubleEditBox Grid.Row="10" Grid.Column="5" Margin="40,3,0,0"
VerticalAlignment="Center" Width="50" StepValue="0.01" SpinnerVisibility="Visible"
SpinnerInactiveVisibility="Visible" Minimum="0" Maximum="1" Format="F2"
Value="{Binding ElementName=gradientBrushSlider,Path=SelectedStop.Offset, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding ElementName=gradientActionButtons, Path=Visibility}" />
Everything works except the setting of the offset via spinner. Is there a way to achieve this by just modifying this xaml file?