AlohaKit.Controls icon indicating copy to clipboard operation
AlohaKit.Controls copied to clipboard

Add default brushes to controls to prevent rendering issues

Open bhavanesh2001 opened this issue 9 months ago • 0 comments

Description of change

This PR adds default brush initialization to several controls that previously lacked them. Without defined brushes or colors, some controls — such as the Slider — were not rendering at all.

If i define controls something like this

 <controls:Slider />
 <controls:ToggleSwitch />
 <controls:SegmentedControl>
   <controls:SegmentedControl.ItemsSource>
     <x:Array Type="{x:Type x:String}">
       <x:String>Option 1</x:String>
       <x:String>Option 2</x:String>
       <x:String>Option 3</x:String>
     </x:Array>
   </controls:SegmentedControl.ItemsSource>
 </controls:SegmentedControl>
 <controls:NumericUpDown  />
 <controls:LinearGauge Value="50"  />

The slider is not visible at all, and other controls have issues too..

Mobile Screenshot

After Fix

Mobile Screenshot

Fixes #64

bhavanesh2001 avatar Mar 28 '25 07:03 bhavanesh2001