-
Notifications
You must be signed in to change notification settings - Fork 20
946336: Publish UG documentation for 2025 Volume 1 release for SfPdfViewer #3127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
Conversation
Build Status: INPROGRESS 🔃 |
CI Status: SUCCESS ✅ |
Build Status: INQUEUE 🕒 |
The running CI Job is terminated due to changes committed on the source branch for this Merge Request and CI triggered for latest commit. |
CI Status: ABORTED ❌ |
Build Status: INQUEUE 🕒 |
Build Status: INPROGRESS 🔃 |
CI Status: SUCCESS ✅ |
MAUI/PDF-Viewer/Form-Filling.md
Outdated
@@ -251,6 +251,218 @@ private void PdfViewer_FormFieldValueChanged(object sender, FormFieldValueChange | |||
{% endhighlight %} | |||
{% endtabs %} | |||
|
|||
### To access the associated form field using the Field property of the Widget class, which is used to get the form field name. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MAUI/PDF-Viewer/Form-Filling.md
Outdated
{% endhighlight %} | ||
{% endtabs %} | ||
|
||
### PropertyChanged Event for Form field |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be a separate topic instead of bringing inside customizing form fields, as it is common for all functions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
completed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still it is used with H3 ###. How it was moved outside? Why it was provided as completed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
completed
MAUI/PDF-Viewer/Form-Filling.md
Outdated
@@ -251,6 +251,133 @@ private void PdfViewer_FormFieldValueChanged(object sender, FormFieldValueChange | |||
{% endhighlight %} | |||
{% endtabs %} | |||
|
|||
## Customize the form fields programmatically | |||
|
|||
Customizing form fields is crucial for controlling their appearance and behavior. By modifying properties like BackgroundColor, BorderColor, BorderWidth, and ForegroundColor, you can tailor how each form field (such as TextFormField, CheckboxFormField, RadioButtonFormField, etc.) looks within the PDF viewer. Like other form fields properties, you can undo and redo the hiding or showing actions. Additionally, when an form field is locked, it cannot be hidden. Form fields that are hidden will remain hidden during import, export, printing and saving. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MAUI/PDF-Viewer/Form-Filling.md
Outdated
@@ -251,6 +251,133 @@ private void PdfViewer_FormFieldValueChanged(object sender, FormFieldValueChange | |||
{% endhighlight %} | |||
{% endtabs %} | |||
|
|||
## Customize the form fields programmatically | |||
|
|||
Customizing form fields is crucial for controlling their appearance and behavior. By modifying properties like BackgroundColor, BorderColor, BorderWidth, and ForegroundColor, you can tailor how each form field (such as TextFormField, CheckboxFormField, RadioButtonFormField, etc.) looks within the PDF viewer. Like other form fields properties, you can undo and redo the hiding or showing actions. Additionally, when an form field is locked, it cannot be hidden. Form fields that are hidden will remain hidden during import, export, printing and saving. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
completed
MAUI/PDF-Viewer/Form-Filling.md
Outdated
@@ -251,6 +251,133 @@ private void PdfViewer_FormFieldValueChanged(object sender, FormFieldValueChange | |||
{% endhighlight %} | |||
{% endtabs %} | |||
|
|||
## Customize the form fields programmatically | |||
|
|||
Customizing form fields is crucial for controlling their appearance and behavior. By modifying properties like BackgroundColor, BorderColor, BorderWidth, and ForegroundColor, you can tailor how each form field (such as TextFormField, CheckboxFormField, RadioButtonFormField, etc.) looks within the PDF viewer. Like other form fields properties, you can undo and redo the hiding or showing actions. Additionally, when an form field is locked, it cannot be hidden. Form fields that are hidden will remain hidden during import, export, printing and saving. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MAUI/PDF-Viewer/Form-Filling.md
Outdated
|
||
### Customize the backgroundcolor of the form fields | ||
|
||
The BackgroundColor property sets the color of the background within a form field. This allows you to customize the background color, which can be useful for creating forms with specific branding or visual styles in a PDF document. The following code explains how to enable the BackgroundColor for text form fields. Similarly, you can do the same for other form fields like checkboxes, radio buttons, and other form fields by modifying their respective properties. The following example illustrates how to add a background color for a TextFormField by accessing the text form field’s `BackgroundColor` property. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MAUI/PDF-Viewer/Form-Filling.md
Outdated
{% highlight C# %} | ||
foreach (FormField formField in PdfViewer.FormFields) | ||
{ | ||
// Check if the current form field is a TextFormField (text input box) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MAUI/PDF-Viewer/Form-Filling.md
Outdated
// Wire the propertychanged event of the form field | ||
pdfViewer.PropertyChanged += PdfViewer_PropertyChanged; | ||
} | ||
private void PdfViewer_PropertyChanged(object? sender, System.ComponentModel.PropertyChangedEventArgs e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this property changed handling is correct? What is the use case you have handled here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes completed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build Status: INPROGRESS 🔃 |
CI Status: SUCCESS ✅ |
Build Status: INPROGRESS 🔃 |
CI Status: SUCCESS ✅ |
Build Status: INPROGRESS 🔃 |
CI Status: SUCCESS ✅ |
MAUI/PDF-Viewer/Form-Filling.md
Outdated
@@ -251,6 +251,140 @@ private void PdfViewer_FormFieldValueChanged(object sender, FormFieldValueChange | |||
{% endhighlight %} | |||
{% endtabs %} | |||
|
|||
## Customize the form fields programmatically | |||
|
|||
Customizing form fields is crucial for controlling their appearance and behavior. By modifying properties like background color, border color, border width, and foreground color, you can tailor how each form field (such as text form field, checkbox form field, radio button form field, etc.) looks within the PDF Viewer. Like other form field properties, you can undo and redo the customization of the color of the form fields. Additionally, when a form field is locked, its color cannot be modified. The customized color of form fields will be preserved during import, export, printing, and saving, ensuring the color customization remains intact across different document operations. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
MAUI/PDF-Viewer/Form-Filling.md
Outdated
@@ -251,6 +251,140 @@ private void PdfViewer_FormFieldValueChanged(object sender, FormFieldValueChange | |||
{% endhighlight %} | |||
{% endtabs %} | |||
|
|||
## Customize the form fields programmatically | |||
|
|||
Customizing form fields is crucial for controlling their appearance and behavior. By modifying properties like background color, border color, border width, and foreground color, you can tailor how each form field (such as text form field, checkbox form field, radio button form field, etc.) looks within the PDF Viewer. Like other form field properties, you can undo and redo the customization of the color of the form fields. Additionally, when a form field is locked, its color cannot be modified. The customized color of form fields will be preserved during import, export, printing, and saving, ensuring the color customization remains intact across different document operations. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only color is explained. Can you provide a common term or mention everything?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mentioned everthing
MAUI/PDF-Viewer/Form-Filling.md
Outdated
|
||
Customizing form fields is crucial for controlling their appearance and behavior. By modifying properties like background color, border color, border width, and foreground color, you can tailor how each form field (such as text form field, checkbox form field, radio button form field, etc.) looks within the PDF Viewer. Like other form field properties, you can undo and redo the customization of the color of the form fields. Additionally, when a form field is locked, its color cannot be modified. The customized color of form fields will be preserved during import, export, printing, and saving, ensuring the color customization remains intact across different document operations. | ||
|
||
### Customize the color to the background of the form fields |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed
MAUI/PDF-Viewer/Form-Filling.md
Outdated
foreach (var widget in textBoxField.Widgets) | ||
{ | ||
// Set the foreground color of each widget to Aquamarine | ||
widget. ForegroundColor = Colors.Aquamarine; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the content you have used Red as an example. Can you do the same in example?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed to red
MAUI/PDF-Viewer/Form-Filling.md
Outdated
{% endhighlight %} | ||
{% endtabs %} | ||
|
||
### PropertyChanged Event for Form field |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still it is used with H3 ###. How it was moved outside? Why it was provided as completed?
MAUI/PDF-Viewer/Form-Filling.md
Outdated
{% endhighlight %} | ||
{% endtabs %} | ||
|
||
### PropertyChanged Event for Form field |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MAUI/PDF-Viewer/Form-Filling.md
Outdated
|
||
### PropertyChanged Event for Form field | ||
|
||
The PropertyChanged event occurs when a property is changed in the PDF document. It is common for properties such as border color, background color, border width, and foreground color to trigger this event as well. The following example explains how to wire and handle the event. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
completed
MAUI/PDF-Viewer/Form-Filling.md
Outdated
// Wire the propertychanged event of the form field | ||
pdfViewer.PropertyChanged += PdfViewer_PropertyChanged; | ||
} | ||
private void PdfViewer_PropertyChanged(object? sender, System.ComponentModel.PropertyChangedEventArgs e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build Status: INPROGRESS 🔃 |
CI Status: SUCCESS ✅ |
@@ -251,6 +251,141 @@ private void PdfViewer_FormFieldValueChanged(object sender, FormFieldValueChange | |||
{% endhighlight %} | |||
{% endtabs %} | |||
|
|||
## Customize the form fields programmatically | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{% tabs %} | ||
{% highlight C# %} | ||
foreach (FormField formField in PdfViewer.FormFields) | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MAUI/PDF-Viewer/Form-Filling.md
Outdated
// Wire the propertychanged event of the form field | ||
pdfViewer.PropertyChanged += PdfViewer_PropertyChanged; | ||
} | ||
private void PdfViewer_PropertyChanged(object? sender, System.ComponentModel.PropertyChangedEventArgs e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -251,6 +251,141 @@ private void PdfViewer_FormFieldValueChanged(object sender, FormFieldValueChange | |||
{% endhighlight %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build Status: INQUEUE 🕒 |
|
||
### Customize the background color of the form fields | ||
|
||
The `BackgroundColor` property sets the color of the background within a form field. This allows you to customize the background color, which can be useful for changing the forms with specific branding or visual styles in a PDF document. The following code explains how to enable the background color for text form fields. Similarly, you can do the same for other form fields like checkboxes, radio buttons, and other form fields by modifying their respective properties. The following example illustrates how to add a background color for a text form field by accessing the text form field’s `BackgroundColor` property. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use the AI for simplify all the other contents also?
Build Status: INPROGRESS 🔃 |
CI Status: SUCCESS ✅ |
Description :
UG documentation has been added for the Customize the color for the form field in the .NET MAUI PDF Viewer.