Hi Ivan,
Thanks for your sample code. Just wonder now CreatePatternFille() accepts System.Windows.Media.Color as for the foreground/background colors, where you provided Color.FromRgb(152,251,152), how to use System.Drawing.Color, such as, System.Drawing.Color.LightGray, etc? Do they have any function/method to convert from System.Drawing.Color to System.Windows.Media.Color? It is not convenient to use FromRgb() with 3 individual color elements. Please advise. Thanks!