Category / Section
How to set the background for the InnerRim of the SfRadialSlider?
1 min read
The background for the inner rim of the SfRadialSlider can be changed by InnerRimFill property. The same has been demonstrated in the following code example:
XAML:
<Window x:Class="SfRadialMenuItem_New.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:navigation="clr-namespace:Syncfusion.Windows.Controls.Navigation;assembly=Syncfusion.SfRadialMenu.Wpf" Title="MainWindow" Height="350" Width="525"> <Grid x:Name="Grid1"> <navigation:SfRadialSlider x:Name="_RadialSlider" InnerRimFill="Brown"/> </Grid> </Window>
C#:
namespace SfRadialMenuItem_New { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); SfRadialSlider _RadialSlider = new SfRadialSlider(); _RadialSlider.InnerRimFill = Brushes.Brown; Grid1.Children.Add(_RadialSlider); } } }
Output: