You can’t make document modifications more convenient than editing your WPD files online. With DocHub, you can access instruments to edit documents in fillable PDF, WPD, or other formats: highlight, blackout, or erase document elements. Add text and images where you need them, rewrite your form entirely, and more. You can download your edited record to your device or submit it by email or direct link. You can also convert your documents into fillable forms and invite others to complete them. DocHub even provides an eSignature that allows you to sign and deliver documents for signing with just a couple of clicks.
Your records are securely kept in our DocHub cloud, so you can access them anytime from your PC, laptop, mobile, or tablet. If you prefer to use your mobile phone for file editing, you can easily do it with DocHub’s app for iOS or Android.
We will work on adding colors. Add a descriptive textblock first. Then create a combobox and give it a name. We need to set its itemtemplate. In DataTemplate, add a stackpanel with horizontalorientation. The first control will be a rectangle with 20 width and height and a color to show the drawing brush color. The second control will be a textblock containingthe name of a brush. Bind the text to the string property of a class instance which we will create later. If you launch the program now, you will not see anything because the comboboxhas no items now, only the template of items. In C#, define a new class called RectangleName with two public properties: Rectangle and string. The fill property of rectangle in XAML should bind to the fill property of Rect. In your constructor, we need to get thecollection of all built-in brushes using LINQ. You have received the valuesbut that is not enough. You need to select only brush names from those values. Then create a list of typ