Skip to content

Add default brushes to controls to prevent rendering issues #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bhavanesh2001
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slider is not visible in Android
1 participant