[]
File picker that opens a dialog box control to allows you to select one or more files.
[TemplatePart(Name = "Text", Type = typeof(C1TextBoxBase))]
[TemplatePart(Name = "Browse", Type = typeof(Button))]
[TemplateVisualState(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Focused", GroupName = "FocusStates")]
[TemplateVisualState(Name = "Unfocused", GroupName = "FocusStates")]
[TemplateVisualState(Name = "Valid", GroupName = "ValidationStatesStates")]
[TemplateVisualState(Name = "InvalidUnfocused", GroupName = "ValidationStatesStates")]
[TemplateVisualState(Name = "InvalidFocused", GroupName = "ValidationStatesStates")]
[StyleTypedProperty(Property = "ValidationDecoratorStyle", StyleTargetType = typeof(C1ValidationDecorator))]
public class C1FilePicker : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, INotifyPropertyChanged
Name | Description |
---|---|
C1FilePicker() | Initializes a new instance of a C1FilePicker. |
Name | Description |
---|---|
BrowseContentProperty | Identifies the BrowseContent dependency property. |
ButtonBackgroundProperty | Identifies the ButtonBackground dependency property. |
ButtonForegroundProperty | Identifies the ButtonForeground dependency property. |
CornerRadiusProperty | Identifies the CornerRadius dependency property. |
DisabledCuesVisibilityProperty | Identifies the DisabledCuesVisibility dependency property. |
FilterIndexProperty | Identifies the FilterIndex dependency property. |
FilterProperty | Identifies the Filter dependency property. |
FocusBrushProperty | Identifies the FocusBrush dependency property. |
FocusCuesVisibilityProperty | Identifies the FocusCuesVisibility dependency property. |
InitialDirectoryProperty | Identifies the InitialDirectory dependency property. |
IsFocusedProperty | Identifies the IsFocused dependency property. |
MouseOverBrushProperty | Identifies the MouseOverBrush dependency property. |
MultiselectProperty | Identifies the Multiselect dependency property. |
PressedBrushProperty | Identifies the PressedBrush dependency property. |
SelectedFileProperty | Identifies the SelectedFile dependency property. |
SelectedFilesProperty | Identifies the SelectedFiles dependency property. |
SelectionBackgroundProperty | Identifies the C1.WPF.C1FilePicker.SelectionBackground dependency property. |
SelectionForegroundProperty | Identifies the C1.WPF.C1FilePicker.SelectionForeground dependency property. |
TextAlignmentProperty | Identifies the TextAlignment dependency property. |
ValidationDecoratorStyleProperty | Identifies the ValidationDecoratorStyle dependency property. |
WatermarkProperty | Identifies the Watermark dependency property. |
Name | Description |
---|---|
BrowseContent | Gets or sets the content of the Browse button. |
ButtonBackground | Gets or sets the Brush that will be assigned to the Background of the buttons inside the control. |
ButtonForeground | Gets or sets the Brush that will be assigned to the Foreground of the buttons inside the control. |
CornerRadius | Gets or sets a value that represents the degree to which the corners of the element are rounded. |
DisabledCuesVisibility | Gets or sets a value indicating whether the disabled visuals of the control are visible. |
Filter | Gets or sets the filter that will be applied to the System.Windows.Controls.OpenFileDialog. |
FilterIndex | Gets or sets the filter index that will be applied to the System.Windows.Controls.OpenFileDialog. |
FocusBrush | Gets or sets the Brush used to highlight the focused control. |
FocusCuesVisibility | Gets or sets a value indicating whether the focus visuals of the control are visible. |
HasSelectedFiles | True, if files were selected. |
InitialDirectory | Gets or sets the initial directory that is displayed by a file dialog. |
IsFocused | Gets true if the control is focused, otherwise false. |
MouseOverBrush | Gets or sets the Brush used to highlight the control when it has the mouse over. |
Multiselect | Gets or sets whether it is possible to select more than one file. |
PressedBrush | Gets or sets the Brush used to paint a button when it is pressed. |
SelectedFile | Gets or sets the file displayed in this editor. |
SelectedFileName | Gets the name of the selected file. |
SelectedFiles | Gets or sets the files displayed in this editor. |
TextAlignment | Gets or sets how the text should be aligned in the C1FilePicker. |
ValidationDecoratorStyle | Gets or sets the style that is applied to the inner C1ValidationDecorator. |
Watermark | Gets or sets the watermark content. |
Name | Description |
---|---|
ChangeVisualStateCommon(bool) | Updates the current visual state of the Common visual state group to match the object's properties. |
ChangeVisualStateFocus(bool) | Updates the current visual state of the Focus visual state group to match the object's properties. |
ClearSelection() | Removes the selected files. |
OnApplyTemplate() | Builds the visual tree for the C1FilePicker control when a new template is applied. |
OnPropertyChanged(DependencyPropertyChangedEventArgs) | Invoked whenever the effective value of any dependency property has been updated. |
OnSelectedFilesChanged(EventArgs) | Raises the SelectedFilesChanged event. |
OpenRead() | Opens the selected file for reading. |
RaisePropertyChanged(string) | Raises the property changed event. |
Name | Description |
---|---|
IsMouseOverChanged | Event raised when the IsMouseOver property has changed. |
PropertyChanged | Occurs when a property value changes. |
SelectedFilesChanged | Fires when the SelectedFiles property changes. |