简体   繁体   中英

ColorSpectrum Width and Height can't be Changed in UWP?

ColorSpectrum ColorSpectrum = new ColorSpectrum();
ColorSpectrum.Width = 400;
ColorSpectrum.Height = 180;

But the Width and height cant be changed..How to change it?

But the Width and height cant be changed..How to change it?

Unfortunately, the default shape of ColorSpectrum is square , because a user will has more control when they select a specific color using a square because more of the color gamut is shown. So ColorSpectrum will limit by the minimum value of Width Height. If you want change the size, please set Width and Height same value.

ColorSpectrum ColorSpectrum = new ColorSpectrum();
ColorSpectrum.Width = ColorSpectrum.Height = 400;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM