Vereinsmeisterschaften  22aa7800eae54b428d40e835886cefe1fdefdfdf
This is a software that can be used to manage the internal competition of the swimming club Illertissen called "Vereinsmeisterschaften".
Loading...
Searching...
No Matches
Vereinsmeisterschaften.Controls.FileFolderPathControl Class Reference

Interaktionslogik für FileFolderPathControl.xaml. More...

Inheritance diagram for Vereinsmeisterschaften.Controls.FileFolderPathControl:

Public Types

enum  FileFolderSelectionModes { Files , Folders }
 Available selection modes for the file/folder path control. More...
 

Public Member Functions

 FileFolderPathControl ()
 Constructor of the FileFolderPathControl
 

Static Public Attributes

static readonly DependencyProperty FileFolderSelectionModeProperty = DependencyProperty.Register(nameof(FileFolderSelectionMode), typeof(FileFolderSelectionModes), typeof(FileFolderPathControl), new PropertyMetadata(FileFolderSelectionModes.Files))
 Dependency property for the FileFolderSelectionMode.
 
static readonly DependencyProperty FileFolderPathProperty = DependencyProperty.Register(nameof(FileFolderPath), typeof(string), typeof(FileFolderPathControl), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnFileFolderPathChanged))
 Dependency property for the FileFolderPath.
 
static readonly DependencyProperty RootFolderForRelativePathsProperty = DependencyProperty.Register(nameof(RootFolderForRelativePaths), typeof(string), typeof(FileFolderPathControl), new PropertyMetadata("", OnRootFolderForRelativePathsChanged))
 Dependency property for the RootFolderForRelativePaths.
 
static readonly DependencyProperty ResolvedFileFolderPathProperty = DependencyProperty.Register(nameof(ResolvedFileFolderPath), typeof(string), typeof(FileFolderPathControl), new PropertyMetadata(""))
 Dependency property for the ResolvedFileFolderPath.
 
static readonly DependencyProperty OpenFileDialogFilterProperty = DependencyProperty.Register(nameof(OpenFileDialogFilter), typeof(string), typeof(FileFolderPathControl), new PropertyMetadata("All files (*.*)|*.*"))
 Dependency property for the OpenFileDialogFilter.
 
static readonly DependencyProperty ShouldShowFullPathProperty = DependencyProperty.Register(nameof(ShouldShowFullPath), typeof(bool), typeof(FileFolderPathControl), new PropertyMetadata(false))
 Dependency property for the ShouldShowFullPath.
 

Properties

FileFolderSelectionModes FileFolderSelectionMode [get, set]
 Current selection mode for the file/folder path control.
 
string FileFolderPath [get, set]
 Current file or folder path (can be relative or absolute).
 
string RootFolderForRelativePaths [get, set]
 Root folder used for relative paths.
 
string ResolvedFileFolderPath [get, set]
 Resolved file or folder path (absolute path).
 
string OpenFileDialogFilter [get, set]
 Filter for the OpenFileDialog.
 
bool ShouldShowFullPath [get, set]
 Indicating whether the ResolvedFileFolderPath should be shown.
 

Private Member Functions

void calculateResolvedFileFolderPath ()
 
void btn_browse_Click (object sender, RoutedEventArgs e)
 
void btn_showFullPath_Click (object sender, RoutedEventArgs e)
 

Static Private Member Functions

static void OnFileFolderPathChanged (DependencyObject d, DependencyPropertyChangedEventArgs e)
 
static void OnRootFolderForRelativePathsChanged (DependencyObject d, DependencyPropertyChangedEventArgs e)
 

Detailed Description

Interaktionslogik für FileFolderPathControl.xaml.

Definition at line 12 of file FileFolderPathControl.xaml.cs.

Member Enumeration Documentation

◆ FileFolderSelectionModes

Available selection modes for the file/folder path control.

Definition at line 17 of file FileFolderPathControl.xaml.cs.

Constructor & Destructor Documentation

◆ FileFolderPathControl()

Vereinsmeisterschaften.Controls.FileFolderPathControl.FileFolderPathControl ( )

Constructor of the FileFolderPathControl

Definition at line 28 of file FileFolderPathControl.xaml.cs.

Member Function Documentation

◆ btn_browse_Click()

void Vereinsmeisterschaften.Controls.FileFolderPathControl.btn_browse_Click ( object sender,
RoutedEventArgs e )
private

Definition at line 177 of file FileFolderPathControl.xaml.cs.

◆ btn_showFullPath_Click()

void Vereinsmeisterschaften.Controls.FileFolderPathControl.btn_showFullPath_Click ( object sender,
RoutedEventArgs e )
private

Definition at line 221 of file FileFolderPathControl.xaml.cs.

◆ calculateResolvedFileFolderPath()

void Vereinsmeisterschaften.Controls.FileFolderPathControl.calculateResolvedFileFolderPath ( )
private

Definition at line 118 of file FileFolderPathControl.xaml.cs.

◆ OnFileFolderPathChanged()

static void Vereinsmeisterschaften.Controls.FileFolderPathControl.OnFileFolderPathChanged ( DependencyObject d,
DependencyPropertyChangedEventArgs e )
staticprivate

Definition at line 65 of file FileFolderPathControl.xaml.cs.

◆ OnRootFolderForRelativePathsChanged()

static void Vereinsmeisterschaften.Controls.FileFolderPathControl.OnRootFolderForRelativePathsChanged ( DependencyObject d,
DependencyPropertyChangedEventArgs e )
staticprivate

Definition at line 87 of file FileFolderPathControl.xaml.cs.

Member Data Documentation

◆ FileFolderPathProperty

readonly DependencyProperty Vereinsmeisterschaften.Controls.FileFolderPathControl.FileFolderPathProperty = DependencyProperty.Register(nameof(FileFolderPath), typeof(string), typeof(FileFolderPathControl), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnFileFolderPathChanged))
static

Dependency property for the FileFolderPath.

Definition at line 63 of file FileFolderPathControl.xaml.cs.

◆ FileFolderSelectionModeProperty

readonly DependencyProperty Vereinsmeisterschaften.Controls.FileFolderPathControl.FileFolderSelectionModeProperty = DependencyProperty.Register(nameof(FileFolderSelectionMode), typeof(FileFolderSelectionModes), typeof(FileFolderPathControl), new PropertyMetadata(FileFolderSelectionModes.Files))
static

Dependency property for the FileFolderSelectionMode.

Definition at line 47 of file FileFolderPathControl.xaml.cs.

◆ OpenFileDialogFilterProperty

readonly DependencyProperty Vereinsmeisterschaften.Controls.FileFolderPathControl.OpenFileDialogFilterProperty = DependencyProperty.Register(nameof(OpenFileDialogFilter), typeof(string), typeof(FileFolderPathControl), new PropertyMetadata("All files (*.*)|*.*"))
static

Dependency property for the OpenFileDialogFilter.

Definition at line 156 of file FileFolderPathControl.xaml.cs.

◆ ResolvedFileFolderPathProperty

readonly DependencyProperty Vereinsmeisterschaften.Controls.FileFolderPathControl.ResolvedFileFolderPathProperty = DependencyProperty.Register(nameof(ResolvedFileFolderPath), typeof(string), typeof(FileFolderPathControl), new PropertyMetadata(""))
static

Dependency property for the ResolvedFileFolderPath.

Definition at line 116 of file FileFolderPathControl.xaml.cs.

◆ RootFolderForRelativePathsProperty

readonly DependencyProperty Vereinsmeisterschaften.Controls.FileFolderPathControl.RootFolderForRelativePathsProperty = DependencyProperty.Register(nameof(RootFolderForRelativePaths), typeof(string), typeof(FileFolderPathControl), new PropertyMetadata("", OnRootFolderForRelativePathsChanged))
static

Dependency property for the RootFolderForRelativePaths.

Definition at line 85 of file FileFolderPathControl.xaml.cs.

◆ ShouldShowFullPathProperty

readonly DependencyProperty Vereinsmeisterschaften.Controls.FileFolderPathControl.ShouldShowFullPathProperty = DependencyProperty.Register(nameof(ShouldShowFullPath), typeof(bool), typeof(FileFolderPathControl), new PropertyMetadata(false))
static

Dependency property for the ShouldShowFullPath.

Definition at line 173 of file FileFolderPathControl.xaml.cs.

Property Documentation

◆ FileFolderPath

string Vereinsmeisterschaften.Controls.FileFolderPathControl.FileFolderPath
getset

Current file or folder path (can be relative or absolute).

Definition at line 54 of file FileFolderPathControl.xaml.cs.

◆ FileFolderSelectionMode

FileFolderSelectionModes Vereinsmeisterschaften.Controls.FileFolderPathControl.FileFolderSelectionMode
getset

Current selection mode for the file/folder path control.

Definition at line 38 of file FileFolderPathControl.xaml.cs.

◆ OpenFileDialogFilter

string Vereinsmeisterschaften.Controls.FileFolderPathControl.OpenFileDialogFilter
getset

Filter for the OpenFileDialog.

Definition at line 147 of file FileFolderPathControl.xaml.cs.

◆ ResolvedFileFolderPath

string Vereinsmeisterschaften.Controls.FileFolderPathControl.ResolvedFileFolderPath
getset

Resolved file or folder path (absolute path).

This property is automatically calculated based on the FileFolderPath and RootFolderForRelativePaths.

Definition at line 107 of file FileFolderPathControl.xaml.cs.

◆ RootFolderForRelativePaths

string Vereinsmeisterschaften.Controls.FileFolderPathControl.RootFolderForRelativePaths
getset

Root folder used for relative paths.

Definition at line 76 of file FileFolderPathControl.xaml.cs.

◆ ShouldShowFullPath

bool Vereinsmeisterschaften.Controls.FileFolderPathControl.ShouldShowFullPath
getset

Indicating whether the ResolvedFileFolderPath should be shown.

Only available when the RootFolderForRelativePaths is set.

Definition at line 164 of file FileFolderPathControl.xaml.cs.


The documentation for this class was generated from the following file: