506 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 (304)
Brush\Brush.cs (289)
120 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.AliceBlue"/>.</summary> 121 public static SolidColorBrush AliceBlue => aliceBlue ??= new(Colors.AliceBlue); 123 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.AntiqueWhite"/>.</summary> 124 public static SolidColorBrush AntiqueWhite => antiqueWhite ??= new(Colors.AntiqueWhite); 126 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Aqua"/>.</summary> 127 public static SolidColorBrush Aqua => aqua ??= new(Colors.Aqua); 129 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Aquamarine"/>.</summary> 130 public static SolidColorBrush Aquamarine => aquamarine ??= new(Colors.Aquamarine); 132 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Azure"/>.</summary> 133 public static SolidColorBrush Azure => azure ??= new(Colors.Azure); 135 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Beige"/>.</summary> 136 public static SolidColorBrush Beige => beige ??= new(Colors.Beige); 138 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Bisque"/>.</summary> 139 public static SolidColorBrush Bisque => bisque ??= new(Colors.Bisque); 141 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Black"/>.</summary> 142 public static SolidColorBrush Black => black ??= new(Colors.Black); 144 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.BlanchedAlmond"/>.</summary> 145 public static SolidColorBrush BlanchedAlmond => blanchedAlmond ??= new(Colors.BlanchedAlmond); 147 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Blue"/>.</summary> 148 public static SolidColorBrush Blue => blue ??= new(Colors.Blue); 150 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.BlueViolet"/>.</summary> 151 public static SolidColorBrush BlueViolet => blueViolet ??= new(Colors.BlueViolet); 153 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Brown"/>.</summary> 154 public static SolidColorBrush Brown => brown ??= new(Colors.Brown); 156 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.BurlyWood"/>.</summary> 157 public static SolidColorBrush BurlyWood => burlyWood ??= new(Colors.BurlyWood); 159 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.CadetBlue"/>.</summary> 160 public static SolidColorBrush CadetBlue => cadetBlue ??= new(Colors.CadetBlue); 162 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Chartreuse"/>.</summary> 163 public static SolidColorBrush Chartreuse => chartreuse ??= new(Colors.Chartreuse); 165 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Chocolate"/>.</summary> 166 public static SolidColorBrush Chocolate => chocolate ??= new(Colors.Chocolate); 168 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Coral"/>.</summary> 169 public static SolidColorBrush Coral => coral ??= new(Colors.Coral); 171 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.CornflowerBlue"/>.</summary> 172 public static SolidColorBrush CornflowerBlue => cornflowerBlue ??= new(Colors.CornflowerBlue); 174 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Cornsilk"/>.</summary> 175 public static SolidColorBrush Cornsilk => cornsilk ??= new(Colors.Cornsilk); 177 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Crimson"/>.</summary> 178 public static SolidColorBrush Crimson => crimson ??= new(Colors.Crimson); 180 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Cyan"/>.</summary> 181 public static SolidColorBrush Cyan => cyan ??= new(Colors.Cyan); 183 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkBlue"/>.</summary> 184 public static SolidColorBrush DarkBlue => darkBlue ??= new(Colors.DarkBlue); 186 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkCyan"/>.</summary> 187 public static SolidColorBrush DarkCyan => darkCyan ??= new(Colors.DarkCyan); 189 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkGoldenrod"/>.</summary> 190 public static SolidColorBrush DarkGoldenrod => darkGoldenrod ??= new(Colors.DarkGoldenrod); 192 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkGray"/>.</summary> 193 public static SolidColorBrush DarkGray => darkGray ??= new(Colors.DarkGray); 194 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkGrey"/>.</summary> 197 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkGreen"/>.</summary> 198 public static SolidColorBrush DarkGreen => darkGreen ??= new(Colors.DarkGreen); 200 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkKhaki"/>.</summary> 201 public static SolidColorBrush DarkKhaki => darkKhaki ??= new(Colors.DarkKhaki); 203 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkMagenta"/>.</summary> 204 public static SolidColorBrush DarkMagenta => darkMagenta ??= new(Colors.DarkMagenta); 206 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkOliveGreen"/>.</summary> 207 public static SolidColorBrush DarkOliveGreen => darkOliveGreen ??= new(Colors.DarkOliveGreen); 209 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkOrange"/>.</summary> 210 public static SolidColorBrush DarkOrange => darkOrange ??= new(Colors.DarkOrange); 212 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkOrchid"/>.</summary> 213 public static SolidColorBrush DarkOrchid => darkOrchid ??= new(Colors.DarkOrchid); 215 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkRed"/>.</summary> 216 public static SolidColorBrush DarkRed => darkRed ??= new(Colors.DarkRed); 218 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkSalmon"/>.</summary> 219 public static SolidColorBrush DarkSalmon => darkSalmon ??= new(Colors.DarkSalmon); 221 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkSeaGreen"/>.</summary> 222 public static SolidColorBrush DarkSeaGreen => darkSeaGreen ??= new(Colors.DarkSeaGreen); 224 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkSlateBlue"/>.</summary> 225 public static SolidColorBrush DarkSlateBlue => darkSlateBlue ??= new(Colors.DarkSlateBlue); 227 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkSlateGray"/>.</summary> 228 public static SolidColorBrush DarkSlateGray => darkSlateGray ??= new(Colors.DarkSlateGray); 229 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkSlateGrey"/>.</summary> 232 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkTurquoise"/>.</summary> 233 public static SolidColorBrush DarkTurquoise => darkTurquoise ??= new(Colors.DarkTurquoise); 235 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DarkViolet"/>.</summary> 236 public static SolidColorBrush DarkViolet => darkViolet ??= new(Colors.DarkViolet); 238 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DeepPink"/>.</summary> 239 public static SolidColorBrush DeepPink => deepPink ??= new(Colors.DeepPink); 241 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DeepSkyBlue"/>.</summary> 242 public static SolidColorBrush DeepSkyBlue => deepSkyBlue ??= new(Colors.DeepSkyBlue); 244 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DimGray"/>.</summary> 245 public static SolidColorBrush DimGray => dimGray ??= new(Colors.DimGray); 246 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DimGrey"/>.</summary> 249 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.DodgerBlue"/>.</summary> 250 public static SolidColorBrush DodgerBlue => dodgerBlue ??= new(Colors.DodgerBlue); 252 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Firebrick"/>.</summary> 253 public static SolidColorBrush Firebrick => firebrick ??= new(Colors.Firebrick); 255 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.FloralWhite"/>.</summary> 256 public static SolidColorBrush FloralWhite => floralWhite ??= new(Colors.FloralWhite); 258 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.ForestGreen"/>.</summary> 259 public static SolidColorBrush ForestGreen => forestGreen ??= new(Colors.ForestGreen); 261 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Fuchsia"/>.</summary> 262 public static SolidColorBrush Fuchsia => fuchsia ??= new(Colors.Fuchsia); 264 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Gainsboro"/>.</summary> 265 public static SolidColorBrush Gainsboro => gainsboro ??= new(Colors.Gainsboro); 267 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.GhostWhite"/>.</summary> 268 public static SolidColorBrush GhostWhite => ghostWhite ??= new(Colors.GhostWhite); 270 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Gold"/>.</summary> 271 public static SolidColorBrush Gold => gold ??= new(Colors.Gold); 273 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Goldenrod"/>.</summary> 274 public static SolidColorBrush Goldenrod => goldenrod ??= new(Colors.Goldenrod); 276 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Gray"/>.</summary> 277 public static SolidColorBrush Gray => gray ??= new(Colors.Gray); 278 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Grey"/>.</summary> 281 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Green"/>.</summary> 282 public static SolidColorBrush Green => green ??= new(Colors.Green); 284 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.GreenYellow"/>.</summary> 285 public static SolidColorBrush GreenYellow => greenYellow ??= new(Colors.GreenYellow); 287 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Honeydew"/>.</summary> 288 public static SolidColorBrush Honeydew => honeydew ??= new(Colors.Honeydew); 290 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.HotPink"/>.</summary> 291 public static SolidColorBrush HotPink => hotPink ??= new(Colors.HotPink); 293 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.IndianRed"/>.</summary> 294 public static SolidColorBrush IndianRed => indianRed ??= new(Colors.IndianRed); 296 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Indigo"/>.</summary> 297 public static SolidColorBrush Indigo => indigo ??= new(Colors.Indigo); 299 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Ivory"/>.</summary> 300 public static SolidColorBrush Ivory => ivory ??= new(Colors.Ivory); 302 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Khaki"/>.</summary> 303 public static SolidColorBrush Khaki => khaki ??= new(Colors.Khaki); 305 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Lavender"/>.</summary> 306 public static SolidColorBrush Lavender => lavender ??= new(Colors.Lavender); 308 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LavenderBlush"/>.</summary> 309 public static SolidColorBrush LavenderBlush => lavenderBlush ??= new(Colors.LavenderBlush); 311 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LawnGreen"/>.</summary> 312 public static SolidColorBrush LawnGreen => lawnGreen ??= new(Colors.LawnGreen); 314 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LemonChiffon"/>.</summary> 315 public static SolidColorBrush LemonChiffon => lemonChiffon ??= new(Colors.LemonChiffon); 317 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightBlue"/>.</summary> 318 public static SolidColorBrush LightBlue => lightBlue ??= new(Colors.LightBlue); 320 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightCoral"/>.</summary> 321 public static SolidColorBrush LightCoral => lightCoral ??= new(Colors.LightCoral); 323 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightCyan"/>.</summary> 324 public static SolidColorBrush LightCyan => lightCyan ??= new(Colors.LightCyan); 326 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightGoldenrodYellow"/>.</summary> 327 public static SolidColorBrush LightGoldenrodYellow => lightGoldenrodYellow ??= new(Colors.LightGoldenrodYellow); 329 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightGray"/>.</summary> 330 public static SolidColorBrush LightGray => lightGray ??= new(Colors.LightGray); 331 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightGrey"/>.</summary> 334 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightGreen"/>.</summary> 335 public static SolidColorBrush LightGreen => lightGreen ??= new(Colors.LightGreen); 337 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightPink"/>.</summary> 338 public static SolidColorBrush LightPink => lightPink ??= new(Colors.LightPink); 340 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightSalmon"/>.</summary> 341 public static SolidColorBrush LightSalmon => lightSalmon ??= new(Colors.LightSalmon); 343 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightSeaGreen"/>.</summary> 344 public static SolidColorBrush LightSeaGreen => lightSeaGreen ??= new(Colors.LightSeaGreen); 346 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightSkyBlue"/>.</summary> 347 public static SolidColorBrush LightSkyBlue => lightSkyBlue ??= new(Colors.LightSkyBlue); 349 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightSlateGray"/>.</summary> 350 public static SolidColorBrush LightSlateGray => lightSlateGray ??= new(Colors.LightSlateGray); 351 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightSlateGrey"/>.</summary> 354 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightSteelBlue"/>.</summary> 355 public static SolidColorBrush LightSteelBlue => lightSteelBlue ??= new(Colors.LightSteelBlue); 357 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LightYellow"/>.</summary> 358 public static SolidColorBrush LightYellow => lightYellow ??= new(Colors.LightYellow); 360 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Lime"/>.</summary> 361 public static SolidColorBrush Lime => lime ??= new(Colors.Lime); 363 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.LimeGreen"/>.</summary> 364 public static SolidColorBrush LimeGreen => limeGreen ??= new(Colors.LimeGreen); 366 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Linen"/>.</summary> 367 public static SolidColorBrush Linen => linen ??= new(Colors.Linen); 369 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Magenta"/>.</summary> 370 public static SolidColorBrush Magenta => magenta ??= new(Colors.Magenta); 372 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Maroon"/>.</summary> 373 public static SolidColorBrush Maroon => maroon ??= new(Colors.Maroon); 375 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.MediumAquamarine"/>.</summary> 376 public static SolidColorBrush MediumAquamarine => mediumAquararine ??= new(Colors.MediumAquamarine); 378 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.MediumBlue"/>.</summary> 379 public static SolidColorBrush MediumBlue => mediumBlue ??= new(Colors.MediumBlue); 381 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.MediumOrchid"/>.</summary> 382 public static SolidColorBrush MediumOrchid => mediumOrchid ??= new(Colors.MediumOrchid); 384 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.MediumPurple"/>.</summary> 385 public static SolidColorBrush MediumPurple => mediumPurple ??= new(Colors.MediumPurple); 387 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.MediumSeaGreen"/>.</summary> 388 public static SolidColorBrush MediumSeaGreen => mediumSeaGreen ??= new(Colors.MediumSeaGreen); 390 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.MediumSlateBlue"/>.</summary> 391 public static SolidColorBrush MediumSlateBlue => mediumSlateBlue ??= new(Colors.MediumSlateBlue); 393 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.MediumSpringGreen"/>.</summary> 394 public static SolidColorBrush MediumSpringGreen => mediumSpringGreen ??= new(Colors.MediumSpringGreen); 396 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.MediumTurquoise"/>.</summary> 397 public static SolidColorBrush MediumTurquoise => mediumTurquoise ??= new(Colors.MediumTurquoise); 399 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.MediumVioletRed"/>.</summary> 400 public static SolidColorBrush MediumVioletRed => mediumVioletRed ??= new(Colors.MediumVioletRed); 402 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.MidnightBlue"/>.</summary> 403 public static SolidColorBrush MidnightBlue => midnightBlue ??= new(Colors.MidnightBlue); 405 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.MintCream"/>.</summary> 406 public static SolidColorBrush MintCream => mintCream ??= new(Colors.MintCream); 408 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.MistyRose"/>.</summary> 409 public static SolidColorBrush MistyRose => mistyRose ??= new(Colors.MistyRose); 411 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Moccasin"/>.</summary> 412 public static SolidColorBrush Moccasin => moccasin ??= new(Colors.Moccasin); 414 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.NavajoWhite"/>.</summary> 415 public static SolidColorBrush NavajoWhite => navajoWhite ??= new(Colors.NavajoWhite); 417 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Navy"/>.</summary> 418 public static SolidColorBrush Navy => navy ??= new(Colors.Navy); 420 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.OldLace"/>.</summary> 421 public static SolidColorBrush OldLace => oldLace ??= new(Colors.OldLace); 423 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Olive"/>.</summary> 424 public static SolidColorBrush Olive => olive ??= new(Colors.Olive); 426 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.OliveDrab"/>.</summary> 427 public static SolidColorBrush OliveDrab => oliveDrab ??= new(Colors.OliveDrab); 429 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Orange"/>.</summary> 430 public static SolidColorBrush Orange => orange ??= new(Colors.Orange); 432 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.OrangeRed"/>.</summary> 433 public static SolidColorBrush OrangeRed => orangeRed ??= new(Colors.OrangeRed); 435 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Orchid"/>.</summary> 436 public static SolidColorBrush Orchid => orchid ??= new(Colors.Orchid); 438 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.PaleGoldenrod"/>.</summary> 439 public static SolidColorBrush PaleGoldenrod => paleGoldenrod ??= new(Colors.PaleGoldenrod); 441 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.PaleGreen"/>.</summary> 442 public static SolidColorBrush PaleGreen => paleGreen ??= new(Colors.PaleGreen); 444 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.PaleTurquoise"/>.</summary> 445 public static SolidColorBrush PaleTurquoise => paleTurquoise ??= new(Colors.PaleTurquoise); 447 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.PaleVioletRed"/>.</summary> 448 public static SolidColorBrush PaleVioletRed => paleVioletRed ??= new(Colors.PaleVioletRed); 450 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.PapayaWhip"/>.</summary> 451 public static SolidColorBrush PapayaWhip => papayaWhip ??= new(Colors.PapayaWhip); 453 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.PeachPuff"/>.</summary> 454 public static SolidColorBrush PeachPuff => peachPuff ??= new(Colors.PeachPuff); 456 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Peru"/>.</summary> 457 public static SolidColorBrush Peru => peru ??= new(Colors.Peru); 459 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Pink"/>.</summary> 460 public static SolidColorBrush Pink => pink ??= new(Colors.Pink); 462 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Plum"/>.</summary> 463 public static SolidColorBrush Plum => plum ??= new(Colors.Plum); 465 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.PowderBlue"/>.</summary> 466 public static SolidColorBrush PowderBlue => powderBlue ??= new(Colors.PowderBlue); 468 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Purple"/>.</summary> 469 public static SolidColorBrush Purple => purple ??= new(Colors.Purple); 471 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Red"/>.</summary> 472 public static SolidColorBrush Red => red ??= new(Colors.Red); 474 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.RosyBrown"/>.</summary> 475 public static SolidColorBrush RosyBrown => rosyBrown ??= new(Colors.RosyBrown); 477 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.RoyalBlue"/>.</summary> 478 public static SolidColorBrush RoyalBlue => royalBlue ??= new(Colors.RoyalBlue); 480 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.SaddleBrown"/>.</summary> 481 public static SolidColorBrush SaddleBrown => saddleBrown ??= new(Colors.SaddleBrown); 483 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Salmon"/>.</summary> 484 public static SolidColorBrush Salmon => salmon ??= new(Colors.Salmon); 486 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.SandyBrown"/>.</summary> 487 public static SolidColorBrush SandyBrown => sandyBrown ??= new(Colors.SandyBrown); 489 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.SeaGreen"/>.</summary> 490 public static SolidColorBrush SeaGreen => seaGreen ??= new(Colors.SeaGreen); 492 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.SeaShell"/>.</summary> 493 public static SolidColorBrush SeaShell => seaShell ??= new(Colors.SeaShell); 495 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Sienna"/>.</summary> 496 public static SolidColorBrush Sienna => sienna ??= new(Colors.Sienna); 498 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Silver"/>.</summary> 499 public static SolidColorBrush Silver => silver ??= new(Colors.Silver); 501 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.SkyBlue"/>.</summary> 502 public static SolidColorBrush SkyBlue => skyBlue ??= new(Colors.SkyBlue); 504 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.SlateBlue"/>.</summary> 505 public static SolidColorBrush SlateBlue => slateBlue ??= new(Colors.SlateBlue); 507 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.SlateGray"/>.</summary> 508 public static SolidColorBrush SlateGray => slateGray ??= new(Colors.SlateGray); 509 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.SlateGrey"/>.</summary> 512 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Snow"/>.</summary> 513 public static SolidColorBrush Snow => snow ??= new(Colors.Snow); 515 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.SpringGreen"/>.</summary> 516 public static SolidColorBrush SpringGreen => springGreen ??= new(Colors.SpringGreen); 518 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.SteelBlue"/>.</summary> 519 public static SolidColorBrush SteelBlue => steelBlue ??= new(Colors.SteelBlue); 521 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Tan"/>.</summary> 522 public static SolidColorBrush Tan => tan ??= new(Colors.Tan); 524 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Teal"/>.</summary> 525 public static SolidColorBrush Teal => teal ??= new(Colors.Teal); 527 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Thistle"/>.</summary> 528 public static SolidColorBrush Thistle => thistle ??= new(Colors.Thistle); 530 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Tomato"/>.</summary> 531 public static SolidColorBrush Tomato => tomato ??= new(Colors.Tomato); 533 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Transparent"/>.</summary> 534 public static SolidColorBrush Transparent => transparent ??= new(Colors.Transparent); 536 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Turquoise"/>.</summary> 537 public static SolidColorBrush Turquoise => turquoise ??= new(Colors.Turquoise); 539 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Violet"/>.</summary> 540 public static SolidColorBrush Violet => violet ??= new(Colors.Violet); 542 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Wheat"/>.</summary> 543 public static SolidColorBrush Wheat => wheat ??= new(Colors.Wheat); 545 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.White"/>.</summary> 546 public static SolidColorBrush White => white ??= new(Colors.White); 548 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.WhiteSmoke"/>.</summary> 549 public static SolidColorBrush WhiteSmoke => whiteSmoke ??= new(Colors.WhiteSmoke); 551 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.Yellow"/>.</summary> 552 public static SolidColorBrush Yellow => yellow ??= new(Colors.Yellow); 554 /// <summary>Gets a <see cref="SolidColorBrush"/> of the system-defined color <see cref="Colors.YellowGreen"/>.</summary> 555 public static SolidColorBrush YellowGreen => yellowGreen ??= new(Colors.YellowGreen);
CheckBox\CheckBox.cs (2)
96 Color IBorderElement.BorderColor => Colors.Transparent; 100 Color IBorderElement.BorderColorDefaultValue => Colors.Transparent;
IndicatorView\IndicatorStackLayout.cs (3)
119 ? GetColorOrDefault(_indicatorView.SelectedIndicatorColor, Colors.Gray) 120 : GetColorOrDefault(_indicatorView.IndicatorColor, Colors.Silver); 149 Stroke = Colors.Transparent
IndicatorView\IndicatorView.cs (2)
42 public static readonly BindableProperty IndicatorColorProperty = BindableProperty.Create(nameof(IndicatorColor), typeof(Color), typeof(IndicatorView), Colors.LightGrey); 45 public static readonly BindableProperty SelectedIndicatorColorProperty = BindableProperty.Create(nameof(SelectedIndicatorColor), typeof(Color), typeof(IndicatorView), Colors.Black);
Shell\BaseShellItem.cs (6)
405 Value = new AppThemeBinding() { Light = Colors.Black.MultiplyAlpha(0.1f), Dark = Colors.White.MultiplyAlpha(0.1f) } 412 Value = Colors.Transparent 494 textColor = Colors.Black.MultiplyAlpha(0.87f); 498 textColor = new AppThemeBinding { Light = Colors.Black.MultiplyAlpha(0.87f), Dark = Colors.White };
Shell\Shell.cs (2)
1174 new AppThemeBinding { Light = Colors.White, Dark = Colors.Black, Mode = BindingMode.OneWay });
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)
766 "aliceblue" => Colors.AliceBlue, 767 "antiquewhite" => Colors.AntiqueWhite, 768 "aqua" => Colors.Aqua, 769 "aquamarine" => Colors.Aquamarine, 770 "azure" => Colors.Azure, 771 "beige" => Colors.Beige, 772 "bisque" => Colors.Bisque, 773 "black" => Colors.Black, 774 "blanchedalmond" => Colors.BlanchedAlmond, 775 "blue" => Colors.Blue, 776 "blueviolet" => Colors.BlueViolet, 777 "brown" => Colors.Brown, 778 "burlywood" => Colors.BurlyWood, 779 "cadetblue" => Colors.CadetBlue, 780 "chartreuse" => Colors.Chartreuse, 781 "chocolate" => Colors.Chocolate, 782 "coral" => Colors.Coral, 783 "cornflowerblue" => Colors.CornflowerBlue, 784 "cornsilk" => Colors.Cornsilk, 785 "crimson" => Colors.Crimson, 786 "cyan" => Colors.Cyan, 787 "darkblue" => Colors.DarkBlue, 788 "darkcyan" => Colors.DarkCyan, 789 "darkgoldenrod" => Colors.DarkGoldenrod, 790 "darkgray" => Colors.DarkGray, 791 "darkgreen" => Colors.DarkGreen, 792 "darkgrey" => Colors.DarkGrey, 793 "darkkhaki" => Colors.DarkKhaki, 794 "darkmagenta" => Colors.DarkMagenta, 795 "darkolivegreen" => Colors.DarkOliveGreen, 796 "darkorange" => Colors.DarkOrange, 797 "darkorchid" => Colors.DarkOrchid, 798 "darkred" => Colors.DarkRed, 799 "darksalmon" => Colors.DarkSalmon, 800 "darkseagreen" => Colors.DarkSeaGreen, 801 "darkslateblue" => Colors.DarkSlateBlue, 802 "darkslategray" => Colors.DarkSlateGray, 803 "darkslategrey" => Colors.DarkSlateGrey, 804 "darkturquoise" => Colors.DarkTurquoise, 805 "darkviolet" => Colors.DarkViolet, 806 "deeppink" => Colors.DeepPink, 807 "deepskyblue" => Colors.DeepSkyBlue, 808 "dimgray" => Colors.DimGray, 809 "dimgrey" => Colors.DimGrey, 810 "dodgerblue" => Colors.DodgerBlue, 811 "firebrick" => Colors.Firebrick, 812 "floralwhite" => Colors.FloralWhite, 813 "forestgreen" => Colors.ForestGreen, 814 "fuchsia" => Colors.Fuchsia, 815 "gainsboro" => Colors.Gainsboro, 816 "ghostwhite" => Colors.GhostWhite, 817 "gold" => Colors.Gold, 818 "goldenrod" => Colors.Goldenrod, 819 "gray" => Colors.Gray, 820 "green" => Colors.Green, 821 "grey" => Colors.Grey, 822 "greenyellow" => Colors.GreenYellow, 823 "honeydew" => Colors.Honeydew, 824 "hotpink" => Colors.HotPink, 825 "indianred" => Colors.IndianRed, 826 "indigo" => Colors.Indigo, 827 "ivory" => Colors.Ivory, 828 "khaki" => Colors.Khaki, 829 "lavender" => Colors.Lavender, 830 "lavenderblush" => Colors.LavenderBlush, 831 "lawngreen" => Colors.LawnGreen, 832 "lemonchiffon" => Colors.LemonChiffon, 833 "lightblue" => Colors.LightBlue, 834 "lightcoral" => Colors.LightCoral, 835 "lightcyan" => Colors.LightCyan, 836 "lightgoldenrodyellow" => Colors.LightGoldenrodYellow, 837 "lightgrey" => Colors.LightGrey, 838 "lightgray" => Colors.LightGray, 839 "lightgreen" => Colors.LightGreen, 840 "lightpink" => Colors.LightPink, 841 "lightsalmon" => Colors.LightSalmon, 842 "lightseagreen" => Colors.LightSeaGreen, 843 "lightskyblue" => Colors.LightSkyBlue, 844 "lightslategray" => Colors.LightSlateGray, 845 "lightslategrey" => Colors.LightSlateGrey, 846 "lightsteelblue" => Colors.LightSteelBlue, 847 "lightyellow" => Colors.LightYellow, 848 "lime" => Colors.Lime, 849 "limegreen" => Colors.LimeGreen, 850 "linen" => Colors.Linen, 851 "magenta" => Colors.Magenta, 852 "maroon" => Colors.Maroon, 853 "mediumaquamarine" => Colors.MediumAquamarine, 854 "mediumblue" => Colors.MediumBlue, 855 "mediumorchid" => Colors.MediumOrchid, 856 "mediumpurple" => Colors.MediumPurple, 857 "mediumseagreen" => Colors.MediumSeaGreen, 858 "mediumslateblue" => Colors.MediumSlateBlue, 859 "mediumspringgreen" => Colors.MediumSpringGreen, 860 "mediumturquoise" => Colors.MediumTurquoise, 861 "mediumvioletred" => Colors.MediumVioletRed, 862 "midnightblue" => Colors.MidnightBlue, 863 "mintcream" => Colors.MintCream, 864 "mistyrose" => Colors.MistyRose, 865 "moccasin" => Colors.Moccasin, 866 "navajowhite" => Colors.NavajoWhite, 867 "navy" => Colors.Navy, 868 "oldlace" => Colors.OldLace, 869 "olive" => Colors.Olive, 870 "olivedrab" => Colors.OliveDrab, 871 "orange" => Colors.Orange, 872 "orangered" => Colors.OrangeRed, 873 "orchid" => Colors.Orchid, 874 "palegoldenrod" => Colors.PaleGoldenrod, 875 "palegreen" => Colors.PaleGreen, 876 "paleturquoise" => Colors.PaleTurquoise, 877 "palevioletred" => Colors.PaleVioletRed, 878 "papayawhip" => Colors.PapayaWhip, 879 "peachpuff" => Colors.PeachPuff, 880 "peru" => Colors.Peru, 881 "pink" => Colors.Pink, 882 "plum" => Colors.Plum, 883 "powderblue" => Colors.PowderBlue, 884 "purple" => Colors.Purple, 885 "red" => Colors.Red, 886 "rosybrown" => Colors.RosyBrown, 887 "royalblue" => Colors.RoyalBlue, 888 "saddlebrown" => Colors.SaddleBrown, 889 "salmon" => Colors.Salmon, 890 "sandybrown" => Colors.SandyBrown, 891 "seagreen" => Colors.SeaGreen, 892 "seashell" => Colors.SeaShell, 893 "sienna" => Colors.Sienna, 894 "silver" => Colors.Silver, 895 "skyblue" => Colors.SkyBlue, 896 "slateblue" => Colors.SlateBlue, 897 "slategray" => Colors.SlateGray, 898 "slategrey" => Colors.SlateGrey, 899 "snow" => Colors.Snow, 900 "springgreen" => Colors.SpringGreen, 901 "steelblue" => Colors.SteelBlue, 902 "tan" => Colors.Tan, 903 "teal" => Colors.Teal, 904 "thistle" => Colors.Thistle, 905 "tomato" => Colors.Tomato, 906 "transparent" => Colors.Transparent, 907 "turquoise" => Colors.Turquoise, 908 "violet" => Colors.Violet, 909 "wheat" => Colors.Wheat, 910 "white" => Colors.White, 911 "whitesmoke" => Colors.WhiteSmoke, 912 "yellow" => Colors.Yellow, 913 "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)
28 private Color _strokeColor = Colors.Black; 29 private Color _fillColor = Colors.White; 30 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);