Basic Properties

ComponentOne FilePicker for WPF includes several properties that allow you to set the functionality of the C1FilePicker control. Some of the more important properties are listed below.

The following properties let you customize the C1FilePicker control:

 

Property

Description

BrowseContent

Gets or sets the content of the Browse button.

DisabledCuesVisibility

Gets a value indicating whether the disabled visuals of the control are visible.

Filter

Gets or sets the filter that will be applied to the OpenFileDialog dialog box. See Adding a File Filter for more information.

FilterIndex

Gets or sets the filter index that will be applied to the OpenFileDialog dialog box.

FocusCuesVisibility

Gets a value indicating whether the focus visuals of the control are visible.

HasSelectedFiles

True, if files were selected.

Multiselect

Gets or sets whether it's possible to select more than one file. See Selecting Multiple Files for more information.

SelectedFile

Gets the file that the user has selected.

SelectedFiles

Gets the files that the user has selected.

SelectionBackground

Gets or sets the brush that fills the background of the selected text.

SelectionForeground

Gets or sets the brush used for the selected text in the C1FilePicker.

TextAlignment

Gets or sets how the text should be aligned in the C1FilePicker. See Changing the Text Alignment for an example.

Watermark

Gets or sets the watermark content. See Watermark Text for more information and Removing the Watermark for an example.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.