Posts

Showing posts from June, 2021
Share:

SelectionTool in C# | WPF | Saatody | Amit Padhiyar

SelectionTool is used for array group selection like select odd values or select even values from particular numbers range. This also select groups like 2, 3, 4, 1 etc... SelectionTool Class API SelectionTool class is main class of SelectionTool. This class provides rich options to select all, deselect all, select left half, select right half, select left half from already selected values, select right half from already selected values. Add custom group selection using 'Add' button. Properties Here in SelectionTool class has only two properties. The 'Range' used to define 'from value' to 'to value'. The 'SelectedRange' gives list of selected values from 'Range' value. Syntax public Range Range public List<int> SelectedRange Constructors This is one and default constructor. Syntax public SelectionTool() Events Here only one event 'SelectedRangeChanged' which fire when selected range changed from any source. For examples: Sele

NSSlider in C# | WPF | Saatody | Amit Padhiyar

NSSlider is WPF slider's alternative. Here NS means N-North and S-South. So, NSSlider is vertical slider in WPF. In this post, I will show reference API of this UI. NSSlider Class API NSSlider has one class and this is main class. NSSlider provides Minimum, Maximum, Change, Format, Value and Caption properties with one event which is ValueChanged event. Properties Here basic commons properties with syntax is below. Syntax public decimal Minimum public decimal Maximum public decimal Change public string Format public decimal Value public string Caption  Constructors This is one and default constructor. Syntax public NSSlider() Events Here is only an event ValueChanged. This event fire when Value property value being changed. Syntax public event EventHandler ValueChanged;  Example Of NSSlider <gui:NSSlider x:Name="NS1" Minimum="-50" Maximum="20" Change="0.1" Format="00.00$" Value="5" Caption="Demo"/> NS1.