521 references to Colors
Microsoft.Maui (8)
Animations\AnimationLerpingExtensions.cs (4)
9 color ??= Colors.Black; 10 endColor ??= Colors.Black; 60 var color = paint?.Color ?? Colors.Black; 61 var endColor = endPaint?.Color ?? Colors.Black;
Graphics\PaintExtensions.cs (1)
45 return solidPaint.Color == Colors.Transparent;
Graphics\ShapeDrawable.cs (1)
122 canvas.FillColor = Colors.Transparent;
Platform\SwipeViewExtensions.cs (2)
19 return (luminosity < 0.75f ? Colors.White : Colors.Black);
Microsoft.Maui.Controls (309)
Brush\Brush.cs (289)
118 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.AliceBlue"/>.</summary> 119 public static SolidColorBrush AliceBlue => aliceBlue ??= new(Colors.AliceBlue); 121 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.AntiqueWhite"/>.</summary> 122 public static SolidColorBrush AntiqueWhite => antiqueWhite ??= new(Colors.AntiqueWhite); 124 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Aqua"/>.</summary> 125 public static SolidColorBrush Aqua => aqua ??= new(Colors.Aqua); 127 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Aquamarine"/>.</summary> 128 public static SolidColorBrush Aquamarine => aquamarine ??= new(Colors.Aquamarine); 130 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Azure"/>.</summary> 131 public static SolidColorBrush Azure => azure ??= new(Colors.Azure); 133 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Beige"/>.</summary> 134 public static SolidColorBrush Beige => beige ??= new(Colors.Beige); 136 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Bisque"/>.</summary> 137 public static SolidColorBrush Bisque => bisque ??= new(Colors.Bisque); 139 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Black"/>.</summary> 140 public static SolidColorBrush Black => black ??= new(Colors.Black); 142 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.BlanchedAlmond"/>.</summary> 143 public static SolidColorBrush BlanchedAlmond => blanchedAlmond ??= new(Colors.BlanchedAlmond); 145 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Blue"/>.</summary> 146 public static SolidColorBrush Blue => blue ??= new(Colors.Blue); 148 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.BlueViolet"/>.</summary> 149 public static SolidColorBrush BlueViolet => blueViolet ??= new(Colors.BlueViolet); 151 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Brown"/>.</summary> 152 public static SolidColorBrush Brown => brown ??= new(Colors.Brown); 154 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.BurlyWood"/>.</summary> 155 public static SolidColorBrush BurlyWood => burlyWood ??= new(Colors.BurlyWood); 157 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.CadetBlue"/>.</summary> 158 public static SolidColorBrush CadetBlue => cadetBlue ??= new(Colors.CadetBlue); 160 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Chartreuse"/>.</summary> 161 public static SolidColorBrush Chartreuse => chartreuse ??= new(Colors.Chartreuse); 163 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Chocolate"/>.</summary> 164 public static SolidColorBrush Chocolate => chocolate ??= new(Colors.Chocolate); 166 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Coral"/>.</summary> 167 public static SolidColorBrush Coral => coral ??= new(Colors.Coral); 169 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.CornflowerBlue"/>.</summary> 170 public static SolidColorBrush CornflowerBlue => cornflowerBlue ??= new(Colors.CornflowerBlue); 172 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Cornsilk"/>.</summary> 173 public static SolidColorBrush Cornsilk => cornsilk ??= new(Colors.Cornsilk); 175 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Crimson"/>.</summary> 176 public static SolidColorBrush Crimson => crimson ??= new(Colors.Crimson); 178 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Cyan"/>.</summary> 179 public static SolidColorBrush Cyan => cyan ??= new(Colors.Cyan); 181 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkBlue"/>.</summary> 182 public static SolidColorBrush DarkBlue => darkBlue ??= new(Colors.DarkBlue); 184 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkCyan"/>.</summary> 185 public static SolidColorBrush DarkCyan => darkCyan ??= new(Colors.DarkCyan); 187 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkGoldenrod"/>.</summary> 188 public static SolidColorBrush DarkGoldenrod => darkGoldenrod ??= new(Colors.DarkGoldenrod); 190 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkGray"/>.</summary> 191 public static SolidColorBrush DarkGray => darkGray ??= new(Colors.DarkGray); 192 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkGrey"/>.</summary> 195 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkGreen"/>.</summary> 196 public static SolidColorBrush DarkGreen => darkGreen ??= new(Colors.DarkGreen); 198 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkKhaki"/>.</summary> 199 public static SolidColorBrush DarkKhaki => darkKhaki ??= new(Colors.DarkKhaki); 201 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkMagenta"/>.</summary> 202 public static SolidColorBrush DarkMagenta => darkMagenta ??= new(Colors.DarkMagenta); 204 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkOliveGreen"/>.</summary> 205 public static SolidColorBrush DarkOliveGreen => darkOliveGreen ??= new(Colors.DarkOliveGreen); 207 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkOrange"/>.</summary> 208 public static SolidColorBrush DarkOrange => darkOrange ??= new(Colors.DarkOrange); 210 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkOrchid"/>.</summary> 211 public static SolidColorBrush DarkOrchid => darkOrchid ??= new(Colors.DarkOrchid); 213 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkRed"/>.</summary> 214 public static SolidColorBrush DarkRed => darkRed ??= new(Colors.DarkRed); 216 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkSalmon"/>.</summary> 217 public static SolidColorBrush DarkSalmon => darkSalmon ??= new(Colors.DarkSalmon); 219 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkSeaGreen"/>.</summary> 220 public static SolidColorBrush DarkSeaGreen => darkSeaGreen ??= new(Colors.DarkSeaGreen); 222 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkSlateBlue"/>.</summary> 223 public static SolidColorBrush DarkSlateBlue => darkSlateBlue ??= new(Colors.DarkSlateBlue); 225 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkSlateGray"/>.</summary> 226 public static SolidColorBrush DarkSlateGray => darkSlateGray ??= new(Colors.DarkSlateGray); 227 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkSlateGrey"/>.</summary> 230 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkTurquoise"/>.</summary> 231 public static SolidColorBrush DarkTurquoise => darkTurquoise ??= new(Colors.DarkTurquoise); 233 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkViolet"/>.</summary> 234 public static SolidColorBrush DarkViolet => darkViolet ??= new(Colors.DarkViolet); 236 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DeepPink"/>.</summary> 237 public static SolidColorBrush DeepPink => deepPink ??= new(Colors.DeepPink); 239 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DeepSkyBlue"/>.</summary> 240 public static SolidColorBrush DeepSkyBlue => deepSkyBlue ??= new(Colors.DeepSkyBlue); 242 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DimGray"/>.</summary> 243 public static SolidColorBrush DimGray => dimGray ??= new(Colors.DimGray); 244 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DimGrey"/>.</summary> 247 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DodgerBlue"/>.</summary> 248 public static SolidColorBrush DodgerBlue => dodgerBlue ??= new(Colors.DodgerBlue); 250 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Firebrick"/>.</summary> 251 public static SolidColorBrush Firebrick => firebrick ??= new(Colors.Firebrick); 253 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.FloralWhite"/>.</summary> 254 public static SolidColorBrush FloralWhite => floralWhite ??= new(Colors.FloralWhite); 256 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.ForestGreen"/>.</summary> 257 public static SolidColorBrush ForestGreen => forestGreen ??= new(Colors.ForestGreen); 259 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Fuchsia"/>.</summary> 260 public static SolidColorBrush Fuchsia => fuchsia ??= new(Colors.Fuchsia); 262 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Gainsboro"/>.</summary> 263 public static SolidColorBrush Gainsboro => gainsboro ??= new(Colors.Gainsboro); 265 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.GhostWhite"/>.</summary> 266 public static SolidColorBrush GhostWhite => ghostWhite ??= new(Colors.GhostWhite); 268 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Gold"/>.</summary> 269 public static SolidColorBrush Gold => gold ??= new(Colors.Gold); 271 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Goldenrod"/>.</summary> 272 public static SolidColorBrush Goldenrod => goldenrod ??= new(Colors.Goldenrod); 274 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Gray"/>.</summary> 275 public static SolidColorBrush Gray => gray ??= new(Colors.Gray); 276 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Grey"/>.</summary> 279 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Green"/>.</summary> 280 public static SolidColorBrush Green => green ??= new(Colors.Green); 282 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.GreenYellow"/>.</summary> 283 public static SolidColorBrush GreenYellow => greenYellow ??= new(Colors.GreenYellow); 285 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Honeydew"/>.</summary> 286 public static SolidColorBrush Honeydew => honeydew ??= new(Colors.Honeydew); 288 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.HotPink"/>.</summary> 289 public static SolidColorBrush HotPink => hotPink ??= new(Colors.HotPink); 291 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.IndianRed"/>.</summary> 292 public static SolidColorBrush IndianRed => indianRed ??= new(Colors.IndianRed); 294 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Indigo"/>.</summary> 295 public static SolidColorBrush Indigo => indigo ??= new(Colors.Indigo); 297 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Ivory"/>.</summary> 298 public static SolidColorBrush Ivory => ivory ??= new(Colors.Ivory); 300 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Khaki"/>.</summary> 301 public static SolidColorBrush Khaki => khaki ??= new(Colors.Khaki); 303 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Lavender"/>.</summary> 304 public static SolidColorBrush Lavender => lavender ??= new(Colors.Lavender); 306 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LavenderBlush"/>.</summary> 307 public static SolidColorBrush LavenderBlush => lavenderBlush ??= new(Colors.LavenderBlush); 309 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LawnGreen"/>.</summary> 310 public static SolidColorBrush LawnGreen => lawnGreen ??= new(Colors.LawnGreen); 312 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LemonChiffon"/>.</summary> 313 public static SolidColorBrush LemonChiffon => lemonChiffon ??= new(Colors.LemonChiffon); 315 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightBlue"/>.</summary> 316 public static SolidColorBrush LightBlue => lightBlue ??= new(Colors.LightBlue); 318 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightCoral"/>.</summary> 319 public static SolidColorBrush LightCoral => lightCoral ??= new(Colors.LightCoral); 321 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightCyan"/>.</summary> 322 public static SolidColorBrush LightCyan => lightCyan ??= new(Colors.LightCyan); 324 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightGoldenrodYellow"/>.</summary> 325 public static SolidColorBrush LightGoldenrodYellow => lightGoldenrodYellow ??= new(Colors.LightGoldenrodYellow); 327 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightGray"/>.</summary> 328 public static SolidColorBrush LightGray => lightGray ??= new(Colors.LightGray); 329 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightGrey"/>.</summary> 332 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightGreen"/>.</summary> 333 public static SolidColorBrush LightGreen => lightGreen ??= new(Colors.LightGreen); 335 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightPink"/>.</summary> 336 public static SolidColorBrush LightPink => lightPink ??= new(Colors.LightPink); 338 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightSalmon"/>.</summary> 339 public static SolidColorBrush LightSalmon => lightSalmon ??= new(Colors.LightSalmon); 341 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightSeaGreen"/>.</summary> 342 public static SolidColorBrush LightSeaGreen => lightSeaGreen ??= new(Colors.LightSeaGreen); 344 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightSkyBlue"/>.</summary> 345 public static SolidColorBrush LightSkyBlue => lightSkyBlue ??= new(Colors.LightSkyBlue); 347 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightSlateGray"/>.</summary> 348 public static SolidColorBrush LightSlateGray => lightSlateGray ??= new(Colors.LightSlateGray); 349 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightSlateGrey"/>.</summary> 352 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightSteelBlue"/>.</summary> 353 public static SolidColorBrush LightSteelBlue => lightSteelBlue ??= new(Colors.LightSteelBlue); 355 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightYellow"/>.</summary> 356 public static SolidColorBrush LightYellow => lightYellow ??= new(Colors.LightYellow); 358 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Lime"/>.</summary> 359 public static SolidColorBrush Lime => lime ??= new(Colors.Lime); 361 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LimeGreen"/>.</summary> 362 public static SolidColorBrush LimeGreen => limeGreen ??= new(Colors.LimeGreen); 364 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Linen"/>.</summary> 365 public static SolidColorBrush Linen => linen ??= new(Colors.Linen); 367 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Magenta"/>.</summary> 368 public static SolidColorBrush Magenta => magenta ??= new(Colors.Magenta); 370 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Maroon"/>.</summary> 371 public static SolidColorBrush Maroon => maroon ??= new(Colors.Maroon); 373 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.MediumAquamarine"/>.</summary> 374 public static SolidColorBrush MediumAquamarine => mediumAquararine ??= new(Colors.MediumAquamarine); 376 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.MediumBlue"/>.</summary> 377 public static SolidColorBrush MediumBlue => mediumBlue ??= new(Colors.MediumBlue); 379 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.MediumOrchid"/>.</summary> 380 public static SolidColorBrush MediumOrchid => mediumOrchid ??= new(Colors.MediumOrchid); 382 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.MediumPurple"/>.</summary> 383 public static SolidColorBrush MediumPurple => mediumPurple ??= new(Colors.MediumPurple); 385 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.MediumSeaGreen"/>.</summary> 386 public static SolidColorBrush MediumSeaGreen => mediumSeaGreen ??= new(Colors.MediumSeaGreen); 388 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.MediumSlateBlue"/>.</summary> 389 public static SolidColorBrush MediumSlateBlue => mediumSlateBlue ??= new(Colors.MediumSlateBlue); 391 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.MediumSpringGreen"/>.</summary> 392 public static SolidColorBrush MediumSpringGreen => mediumSpringGreen ??= new(Colors.MediumSpringGreen); 394 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.MediumTurquoise"/>.</summary> 395 public static SolidColorBrush MediumTurquoise => mediumTurquoise ??= new(Colors.MediumTurquoise); 397 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.MediumVioletRed"/>.</summary> 398 public static SolidColorBrush MediumVioletRed => mediumVioletRed ??= new(Colors.MediumVioletRed); 400 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.MidnightBlue"/>.</summary> 401 public static SolidColorBrush MidnightBlue => midnightBlue ??= new(Colors.MidnightBlue); 403 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.MintCream"/>.</summary> 404 public static SolidColorBrush MintCream => mintCream ??= new(Colors.MintCream); 406 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.MistyRose"/>.</summary> 407 public static SolidColorBrush MistyRose => mistyRose ??= new(Colors.MistyRose); 409 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Moccasin"/>.</summary> 410 public static SolidColorBrush Moccasin => moccasin ??= new(Colors.Moccasin); 412 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.NavajoWhite"/>.</summary> 413 public static SolidColorBrush NavajoWhite => navajoWhite ??= new(Colors.NavajoWhite); 415 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Navy"/>.</summary> 416 public static SolidColorBrush Navy => navy ??= new(Colors.Navy); 418 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.OldLace"/>.</summary> 419 public static SolidColorBrush OldLace => oldLace ??= new(Colors.OldLace); 421 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Olive"/>.</summary> 422 public static SolidColorBrush Olive => olive ??= new(Colors.Olive); 424 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.OliveDrab"/>.</summary> 425 public static SolidColorBrush OliveDrab => oliveDrab ??= new(Colors.OliveDrab); 427 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Orange"/>.</summary> 428 public static SolidColorBrush Orange => orange ??= new(Colors.Orange); 430 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.OrangeRed"/>.</summary> 431 public static SolidColorBrush OrangeRed => orangeRed ??= new(Colors.OrangeRed); 433 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Orchid"/>.</summary> 434 public static SolidColorBrush Orchid => orchid ??= new(Colors.Orchid); 436 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.PaleGoldenrod"/>.</summary> 437 public static SolidColorBrush PaleGoldenrod => paleGoldenrod ??= new(Colors.PaleGoldenrod); 439 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.PaleGreen"/>.</summary> 440 public static SolidColorBrush PaleGreen => paleGreen ??= new(Colors.PaleGreen); 442 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.PaleTurquoise"/>.</summary> 443 public static SolidColorBrush PaleTurquoise => paleTurquoise ??= new(Colors.PaleTurquoise); 445 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.PaleVioletRed"/>.</summary> 446 public static SolidColorBrush PaleVioletRed => paleVioletRed ??= new(Colors.PaleVioletRed); 448 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.PapayaWhip"/>.</summary> 449 public static SolidColorBrush PapayaWhip => papayaWhip ??= new(Colors.PapayaWhip); 451 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.PeachPuff"/>.</summary> 452 public static SolidColorBrush PeachPuff => peachPuff ??= new(Colors.PeachPuff); 454 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Peru"/>.</summary> 455 public static SolidColorBrush Peru => peru ??= new(Colors.Peru); 457 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Pink"/>.</summary> 458 public static SolidColorBrush Pink => pink ??= new(Colors.Pink); 460 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Plum"/>.</summary> 461 public static SolidColorBrush Plum => plum ??= new(Colors.Plum); 463 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.PowderBlue"/>.</summary> 464 public static SolidColorBrush PowderBlue => powderBlue ??= new(Colors.PowderBlue); 466 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Purple"/>.</summary> 467 public static SolidColorBrush Purple => purple ??= new(Colors.Purple); 469 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Red"/>.</summary> 470 public static SolidColorBrush Red => red ??= new(Colors.Red); 472 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.RosyBrown"/>.</summary> 473 public static SolidColorBrush RosyBrown => rosyBrown ??= new(Colors.RosyBrown); 475 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.RoyalBlue"/>.</summary> 476 public static SolidColorBrush RoyalBlue => royalBlue ??= new(Colors.RoyalBlue); 478 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.SaddleBrown"/>.</summary> 479 public static SolidColorBrush SaddleBrown => saddleBrown ??= new(Colors.SaddleBrown); 481 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Salmon"/>.</summary> 482 public static SolidColorBrush Salmon => salmon ??= new(Colors.Salmon); 484 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.SandyBrown"/>.</summary> 485 public static SolidColorBrush SandyBrown => sandyBrown ??= new(Colors.SandyBrown); 487 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.SeaGreen"/>.</summary> 488 public static SolidColorBrush SeaGreen => seaGreen ??= new(Colors.SeaGreen); 490 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.SeaShell"/>.</summary> 491 public static SolidColorBrush SeaShell => seaShell ??= new(Colors.SeaShell); 493 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Sienna"/>.</summary> 494 public static SolidColorBrush Sienna => sienna ??= new(Colors.Sienna); 496 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Silver"/>.</summary> 497 public static SolidColorBrush Silver => silver ??= new(Colors.Silver); 499 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.SkyBlue"/>.</summary> 500 public static SolidColorBrush SkyBlue => skyBlue ??= new(Colors.SkyBlue); 502 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.SlateBlue"/>.</summary> 503 public static SolidColorBrush SlateBlue => slateBlue ??= new(Colors.SlateBlue); 505 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.SlateGray"/>.</summary> 506 public static SolidColorBrush SlateGray => slateGray ??= new(Colors.SlateGray); 507 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.SlateGrey"/>.</summary> 510 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Snow"/>.</summary> 511 public static SolidColorBrush Snow => snow ??= new(Colors.Snow); 513 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.SpringGreen"/>.</summary> 514 public static SolidColorBrush SpringGreen => springGreen ??= new(Colors.SpringGreen); 516 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.SteelBlue"/>.</summary> 517 public static SolidColorBrush SteelBlue => steelBlue ??= new(Colors.SteelBlue); 519 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Tan"/>.</summary> 520 public static SolidColorBrush Tan => tan ??= new(Colors.Tan); 522 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Teal"/>.</summary> 523 public static SolidColorBrush Teal => teal ??= new(Colors.Teal); 525 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Thistle"/>.</summary> 526 public static SolidColorBrush Thistle => thistle ??= new(Colors.Thistle); 528 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Tomato"/>.</summary> 529 public static SolidColorBrush Tomato => tomato ??= new(Colors.Tomato); 531 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Transparent"/>.</summary> 532 public static SolidColorBrush Transparent => transparent ??= new(Colors.Transparent); 534 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Turquoise"/>.</summary> 535 public static SolidColorBrush Turquoise => turquoise ??= new(Colors.Turquoise); 537 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Violet"/>.</summary> 538 public static SolidColorBrush Violet => violet ??= new(Colors.Violet); 540 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Wheat"/>.</summary> 541 public static SolidColorBrush Wheat => wheat ??= new(Colors.Wheat); 543 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.White"/>.</summary> 544 public static SolidColorBrush White => white ??= new(Colors.White); 546 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.WhiteSmoke"/>.</summary> 547 public static SolidColorBrush WhiteSmoke => whiteSmoke ??= new(Colors.WhiteSmoke); 549 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Yellow"/>.</summary> 550 public static SolidColorBrush Yellow => yellow ??= new(Colors.Yellow); 552 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.YellowGreen"/>.</summary> 553 public static SolidColorBrush YellowGreen => yellowGreen ??= new(Colors.YellowGreen);
CheckBox\CheckBox.cs (2)
64 Color IBorderElement.BorderColor => Colors.Transparent; 68 Color IBorderElement.BorderColorDefaultValue => Colors.Transparent;
Compatibility\Handlers\FlyoutPage\iOS\PhoneFlyoutPageRenderer.cs (1)
556 detailRenderer.ViewController.View.Superview.BackgroundColor = Microsoft.Maui.Graphics.Colors.Black.ToPlatform();
Compatibility\Handlers\Shell\iOS\ShellSectionRootHeader.cs (3)
19 Color _defaultForegroundColor = Colors.Black; 20 Color _defaultUnselectedColor = Colors.Black.MultiplyAlpha(0.7f); 186 _bottomShadow.BackgroundColor = Colors.Black.MultiplyAlpha(0.3f).ToPlatform();
IndicatorView\IndicatorStackLayout.cs (3)
119 ? GetColorOrDefault(_indicatorView.SelectedIndicatorColor, Colors.Gray) 120 : GetColorOrDefault(_indicatorView.IndicatorColor, Colors.Silver); 149 Stroke = Colors.Transparent
IndicatorView\IndicatorView.cs (2)
39 public static readonly BindableProperty IndicatorColorProperty = BindableProperty.Create(nameof(IndicatorColor), typeof(Color), typeof(IndicatorView), Colors.LightGrey); 42 public static readonly BindableProperty SelectedIndicatorColorProperty = BindableProperty.Create(nameof(SelectedIndicatorColor), typeof(Color), typeof(IndicatorView), Colors.Black);
Platform\iOS\Extensions\BrushExtensions.cs (1)
248 if (gradientStop.Color == Colors.Transparent)
Shell\BaseShellItem.cs (6)
404 Value = new AppThemeBinding() { Light = Colors.Black.MultiplyAlpha(0.1f), Dark = Colors.White.MultiplyAlpha(0.1f) } 411 Value = Colors.Transparent 493 textColor = Colors.Black.MultiplyAlpha(0.87f); 497 textColor = new AppThemeBinding { Light = Colors.Black.MultiplyAlpha(0.87f), Dark = Colors.White };
Shell\Shell.cs (2)
1172 new AppThemeBinding { Light = Colors.White, Dark = Colors.Black, Mode = BindingMode.OneWay });
Microsoft.Maui.Controls.Compatibility (10)
iOS\Platform.cs (4)
439 var window = new UIWindow { BackgroundColor = Colors.Transparent.ToPlatform() }; 462 var window = new UIWindow { BackgroundColor = Colors.Transparent.ToPlatform() }; 484 var window = new UIWindow { BackgroundColor = Colors.Transparent.ToPlatform() }; 513 window.RootViewController.View.BackgroundColor = Colors.Transparent.ToPlatform();
iOS\Renderers\PhoneFlyoutPageRenderer.cs (1)
390 detailRenderer.ViewController.View.Superview.BackgroundColor = Microsoft.Maui.Graphics.Colors.Black.ToPlatform();
iOS\Renderers\ScrollViewRenderer.cs (1)
312 BackgroundColor = Element.BackgroundColor.ToPlatform(Colors.Transparent);
iOS\Renderers\SwipeViewRenderer.cs (3)
416 BackgroundColor = Colors.Transparent.ToPlatform() 679 return luminosity < 0.75 ? Colors.White : Colors.Black;
iOS\ShadowEffect.cs (1)
25 layer.ShadowColor = Colors.Transparent.ToCGColor();
Microsoft.Maui.Graphics (164)
CanvasExtensions.cs (3)
341 canvas.StrokeColor = Colors.Black; 346 SetFillPattern(target, pattern, Colors.Black); 363 target.FillColor = Colors.White;
Color.cs (148)
762 "aliceblue" => Colors.AliceBlue, 763 "antiquewhite" => Colors.AntiqueWhite, 764 "aqua" => Colors.Aqua, 765 "aquamarine" => Colors.Aquamarine, 766 "azure" => Colors.Azure, 767 "beige" => Colors.Beige, 768 "bisque" => Colors.Bisque, 769 "black" => Colors.Black, 770 "blanchedalmond" => Colors.BlanchedAlmond, 771 "blue" => Colors.Blue, 772 "blueviolet" => Colors.BlueViolet, 773 "brown" => Colors.Brown, 774 "burlywood" => Colors.BurlyWood, 775 "cadetblue" => Colors.CadetBlue, 776 "chartreuse" => Colors.Chartreuse, 777 "chocolate" => Colors.Chocolate, 778 "coral" => Colors.Coral, 779 "cornflowerblue" => Colors.CornflowerBlue, 780 "cornsilk" => Colors.Cornsilk, 781 "crimson" => Colors.Crimson, 782 "cyan" => Colors.Cyan, 783 "darkblue" => Colors.DarkBlue, 784 "darkcyan" => Colors.DarkCyan, 785 "darkgoldenrod" => Colors.DarkGoldenrod, 786 "darkgray" => Colors.DarkGray, 787 "darkgreen" => Colors.DarkGreen, 788 "darkgrey" => Colors.DarkGrey, 789 "darkkhaki" => Colors.DarkKhaki, 790 "darkmagenta" => Colors.DarkMagenta, 791 "darkolivegreen" => Colors.DarkOliveGreen, 792 "darkorange" => Colors.DarkOrange, 793 "darkorchid" => Colors.DarkOrchid, 794 "darkred" => Colors.DarkRed, 795 "darksalmon" => Colors.DarkSalmon, 796 "darkseagreen" => Colors.DarkSeaGreen, 797 "darkslateblue" => Colors.DarkSlateBlue, 798 "darkslategray" => Colors.DarkSlateGray, 799 "darkslategrey" => Colors.DarkSlateGrey, 800 "darkturquoise" => Colors.DarkTurquoise, 801 "darkviolet" => Colors.DarkViolet, 802 "deeppink" => Colors.DeepPink, 803 "deepskyblue" => Colors.DeepSkyBlue, 804 "dimgray" => Colors.DimGray, 805 "dimgrey" => Colors.DimGrey, 806 "dodgerblue" => Colors.DodgerBlue, 807 "firebrick" => Colors.Firebrick, 808 "floralwhite" => Colors.FloralWhite, 809 "forestgreen" => Colors.ForestGreen, 810 "fuchsia" => Colors.Fuchsia, 811 "gainsboro" => Colors.Gainsboro, 812 "ghostwhite" => Colors.GhostWhite, 813 "gold" => Colors.Gold, 814 "goldenrod" => Colors.Goldenrod, 815 "gray" => Colors.Gray, 816 "green" => Colors.Green, 817 "grey" => Colors.Grey, 818 "greenyellow" => Colors.GreenYellow, 819 "honeydew" => Colors.Honeydew, 820 "hotpink" => Colors.HotPink, 821 "indianred" => Colors.IndianRed, 822 "indigo" => Colors.Indigo, 823 "ivory" => Colors.Ivory, 824 "khaki" => Colors.Khaki, 825 "lavender" => Colors.Lavender, 826 "lavenderblush" => Colors.LavenderBlush, 827 "lawngreen" => Colors.LawnGreen, 828 "lemonchiffon" => Colors.LemonChiffon, 829 "lightblue" => Colors.LightBlue, 830 "lightcoral" => Colors.LightCoral, 831 "lightcyan" => Colors.LightCyan, 832 "lightgoldenrodyellow" => Colors.LightGoldenrodYellow, 833 "lightgrey" => Colors.LightGrey, 834 "lightgray" => Colors.LightGray, 835 "lightgreen" => Colors.LightGreen, 836 "lightpink" => Colors.LightPink, 837 "lightsalmon" => Colors.LightSalmon, 838 "lightseagreen" => Colors.LightSeaGreen, 839 "lightskyblue" => Colors.LightSkyBlue, 840 "lightslategray" => Colors.LightSlateGray, 841 "lightslategrey" => Colors.LightSlateGrey, 842 "lightsteelblue" => Colors.LightSteelBlue, 843 "lightyellow" => Colors.LightYellow, 844 "lime" => Colors.Lime, 845 "limegreen" => Colors.LimeGreen, 846 "linen" => Colors.Linen, 847 "magenta" => Colors.Magenta, 848 "maroon" => Colors.Maroon, 849 "mediumaquamarine" => Colors.MediumAquamarine, 850 "mediumblue" => Colors.MediumBlue, 851 "mediumorchid" => Colors.MediumOrchid, 852 "mediumpurple" => Colors.MediumPurple, 853 "mediumseagreen" => Colors.MediumSeaGreen, 854 "mediumslateblue" => Colors.MediumSlateBlue, 855 "mediumspringgreen" => Colors.MediumSpringGreen, 856 "mediumturquoise" => Colors.MediumTurquoise, 857 "mediumvioletred" => Colors.MediumVioletRed, 858 "midnightblue" => Colors.MidnightBlue, 859 "mintcream" => Colors.MintCream, 860 "mistyrose" => Colors.MistyRose, 861 "moccasin" => Colors.Moccasin, 862 "navajowhite" => Colors.NavajoWhite, 863 "navy" => Colors.Navy, 864 "oldlace" => Colors.OldLace, 865 "olive" => Colors.Olive, 866 "olivedrab" => Colors.OliveDrab, 867 "orange" => Colors.Orange, 868 "orangered" => Colors.OrangeRed, 869 "orchid" => Colors.Orchid, 870 "palegoldenrod" => Colors.PaleGoldenrod, 871 "palegreen" => Colors.PaleGreen, 872 "paleturquoise" => Colors.PaleTurquoise, 873 "palevioletred" => Colors.PaleVioletRed, 874 "papayawhip" => Colors.PapayaWhip, 875 "peachpuff" => Colors.PeachPuff, 876 "peru" => Colors.Peru, 877 "pink" => Colors.Pink, 878 "plum" => Colors.Plum, 879 "powderblue" => Colors.PowderBlue, 880 "purple" => Colors.Purple, 881 "red" => Colors.Red, 882 "rosybrown" => Colors.RosyBrown, 883 "royalblue" => Colors.RoyalBlue, 884 "saddlebrown" => Colors.SaddleBrown, 885 "salmon" => Colors.Salmon, 886 "sandybrown" => Colors.SandyBrown, 887 "seagreen" => Colors.SeaGreen, 888 "seashell" => Colors.SeaShell, 889 "sienna" => Colors.Sienna, 890 "silver" => Colors.Silver, 891 "skyblue" => Colors.SkyBlue, 892 "slateblue" => Colors.SlateBlue, 893 "slategray" => Colors.SlateGray, 894 "slategrey" => Colors.SlateGrey, 895 "snow" => Colors.Snow, 896 "springgreen" => Colors.SpringGreen, 897 "steelblue" => Colors.SteelBlue, 898 "tan" => Colors.Tan, 899 "teal" => Colors.Teal, 900 "thistle" => Colors.Thistle, 901 "tomato" => Colors.Tomato, 902 "transparent" => Colors.Transparent, 903 "turquoise" => Colors.Turquoise, 904 "violet" => Colors.Violet, 905 "wheat" => Colors.Wheat, 906 "white" => Colors.White, 907 "whitesmoke" => Colors.WhiteSmoke, 908 "yellow" => Colors.Yellow, 909 "yellowgreen" => Colors.YellowGreen,
GradientPaint.cs (9)
9 new PaintGradientStop(0, Colors.White), 10 new PaintGradientStop(1, Colors.White) 36 _gradientStops = new[] { new PaintGradientStop(0, Colors.White), new PaintGradientStop(1, Colors.White) }; 46 _gradientStops[startColorIndex].Color = value ?? Colors.White; 56 _gradientStops[endColorIndex].Color = value ?? Colors.White; 239 return Colors.White; 247 startColor ??= Colors.White; 248 endColor ??= Colors.White;
ImageExtensions.cs (1)
73 canvas.FillColor = Colors.White;
PaintPattern.cs (2)
33 canvas.StrokeColor = Colors.Black; 34 canvas.FillColor = Colors.Black;
PatternExtensions.cs (1)
7 return AsPaint(target, Colors.Black);
Microsoft.Maui.Graphics.Skia (14)
SkiaCanvas.cs (11)
77 set => CurrentState.StrokeColor = value ?? Colors.Black; 82 set => CurrentState.FontColor = value ?? Colors.Black; 106 CurrentState.FillColor = value ?? Colors.White; 227 paint = Colors.White.AsPaint(); 261 CurrentState.FillColor = Colors.White; 298 CurrentState.FillColor = Colors.White; 321 CurrentState.FillColor = Colors.White; 354 CurrentState.FillColor = Colors.White; 372 FillColor = Colors.White; 377 FillColor = Colors.White; 733 var actualColor = Colors.Black.AsSKColorMultiplyAlpha(CurrentState.Alpha);
SkiaCanvasState.cs (3)
27 private Color _strokeColor = Colors.Black; 28 private Color _fillColor = Colors.White; 29 private Color _fontColor = Colors.Black;
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (16)
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvas.cs (5)
381 CurrentState.FillColor = Colors.White; 404 CurrentState.FillColor = Colors.White; 414 CurrentState.FillColor = Colors.White; 432 CurrentState.FillColor = Colors.White; 461 CurrentState.FillColor = Colors.White;
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvasState.cs (11)
148 _sourceStrokeColor = Colors.Black; 159 _sourceFillpaint = Colors.White.AsPaint(); 170 _sourceFontColor = Colors.Black; 206 var finalValue = value ?? Colors.Black; 347 Color = linearGradientPaint.GradientStops[i].Color.AsColor(Colors.White, _alpha) 365 Color = radialGradientPaint.GradientStops[i].Color.AsColor(Colors.White, _alpha) 390 var finalValue = value ?? Colors.Black; 557 _fontBrush = new CanvasSolidColorBrush(_owner.Session, _sourceFontColor.AsColor(Colors.Black, _alpha)); 559 _fontBrush.Color = _sourceFontColor.AsColor(Colors.Black, _alpha); 571 _strokeBrush = new CanvasSolidColorBrush(_owner.Session, _sourceStrokeColor.AsColor(Colors.Black, _alpha)); 576 _strokeBrush.Color = _sourceStrokeColor.AsColor(Colors.Black, _alpha);