[]
File picker that opens a dialog box control to allows you to select one or more files.
[StyleTypedProperty(Property = "BrowseIconStyle", StyleTargetType = typeof(ContentControl))]
[StyleTypedProperty(Property = "BrowseButtonStyle", StyleTargetType = typeof(C1Button))]
[StyleTypedProperty(Property = "ValidationDecoratorStyle", StyleTargetType = typeof(C1ValidationDecorator))]
[TemplatePart(Name = "Text", Type = typeof(C1TextBoxBase))]
[TemplatePart(Name = "Browse", Type = typeof(C1Button))]
[TemplatePart(Name = "ValidationDecorator", Type = typeof(C1ValidationDecorator))]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[TemplateVisualState(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Focused", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
public class C1FilePicker : C1View, INotifyPropertyChanged
Name | Description |
---|---|
C1FilePicker() | Initializes a new instance of the C1FilePicker class. |
Name | Description |
---|---|
BrowseButtonStyleProperty | Identifies the BrowseButtonStyle dependency property. |
BrowseIconStyleProperty | Identifies the BrowseIconStyle dependency property. |
BrowseIconTemplateProperty | Identifies the BrowseIconTemplate dependency property. |
FilterIndexProperty | Identifies the FilterIndex dependency property. |
FilterProperty | Identifies the Filter dependency property. |
FocusBrushProperty | Identifies the FocusBrush dependency property. |
InitialDirectoryProperty | Identifies the InitialDirectory dependency property. |
MouseOverBorderBrushProperty | Identifies the MouseOverBorderBrush dependency property. |
MouseOverBrushProperty | Identifies the MouseOverBrush dependency property. |
MultiselectProperty | Identifies the Multiselect dependency property. |
PlaceholderProperty | Identifies the Placeholder dependency property. |
PressedBrushProperty | Identifies the PressedBrush dependency property. |
SelectedFileProperty | Identifies the SelectedFile dependency property. |
SelectedFilesProperty | Identifies the SelectedFiles dependency property. |
TextAlignmentProperty | Identifies the TextAlignment dependency property. |
ValidationDecoratorStyleProperty | Identifies the ValidationDecoratorStyle dependency property. |
Name | Description |
---|---|
BrowseButtonStyle | Gets or sets the style of the button that opens the file picker.. |
BrowseIconStyle | Gets or sets the style of the icon shown in the browse button. |
BrowseIconTemplate | Gets or sets the template of the icon used in the browse button. |
Filter | Gets or sets the filter that will be applied to the OpenFileDialog. |
FilterIndex | Gets or sets the filter index that will be applied to the OpenFileDialog. |
FocusBrush | Gets or sets the Brush used to highlight the focused control. |
HasSelectedFiles | True, if files were selected. |
InitialDirectory | Gets or sets the initial directory that is displayed by a file dialog. |
IsFocused | Gets whether the control is focused. |
MouseOverBorderBrush | Gets or sets the Brush used to highlight the border of the control when it has the mouse over. |
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. |
Placeholder | Gets or sets the placeholder text. |
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. |
Name | Description |
---|---|
ChangeVisualStateCommon(bool) | Updates the current visual state of the Common visual state group to match the object's properties. |
ClearSelection() | Removes the selected files. |
Dispose(bool) | |
OnApplyTemplate() | |
OnGotFocus(RoutedEventArgs) | |
OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs) | |
OnKeyDown(KeyEventArgs) | |
OnSelectedFilesChanged(EventArgs) | Raises the SelectedFilesChanged event. |
OpenRead() | Opens the selected file for reading. |
RaisePropertyChanged(string) | Raises the property changed event. |
Name | Description |
---|---|
PropertyChanged | Occurs when a property value changes. |
SelectedFilesChanged | Fires when the SelectedFiles property changes. |