|
// Copyright © Decebal Mihailescu 2010
// Some code was obtained by reverse engineering the PresentationFramework.dll using Reflector
// All rights reserved.
// This code is released under The Code Project Open License (CPOL) 1.02
// The full licensing terms are available at http://www.codeproject.com/info/cpol10.aspx
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE. IT CAN BE DISTRIBUTED FREE OF CHARGE AS LONG AS THIS HEADER
// REMAINS UNCHANGED.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Interop;
using System.ComponentModel;
namespace WpfCustomFileDialog
{
public interface IFileDlgExt : IWin32Window
{
event PathChangedEventHandler EventFileNameChanged;
event PathChangedEventHandler EventFolderNameChanged;
event FilterChangedEventHandler EventFilterChanged;
AddonWindowLocation FileDlgStartLocation
{
set;
get;
}
string FileDlgOkCaption
{
set;
get;
}
bool FileDlgEnableOkBtn
{
set;
get;
}
bool FixedSize
{
set;
}
NativeMethods.FolderViewMode FileDlgDefaultViewMode
{
set;
get;
}
}
//consider http://geekswithblogs.net/lbugnion/archive/2007/03/02/107747.aspx instead
public interface IWindowExt //: IWin32Window
{
HwndSource Source
{
set;
}
IFileDlgExt ParentDlg
{
set;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Decebal Mihailescu is a software engineer with interest in .Net, C# and C++.