Skip to content

Commit d14730b

Browse files
committed
OpenFolderDialog
1 parent bba0c14 commit d14730b

23 files changed

+1059
-1619
lines changed

src/Microsoft.DotNet.Wpf/ApiCompat/Baselines/PresentationFramework-ref.baseline.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
Compat issues with assembly PresentationFramework:
2-
MembersMustExist : Member 'internal MS.Internal.AppModel.IFileDialog Microsoft.Win32.FileDialog.CreateVistaDialog()' does not exist in the implementation but it does exist in the contract.
3-
MembersMustExist : Member 'internal System.String[] Microsoft.Win32.FileDialog.ProcessVistaFiles(MS.Internal.AppModel.IFileDialog)' does not exist in the implementation but it does exist in the contract.
4-
MembersMustExist : Member 'internal System.Boolean Microsoft.Win32.FileDialog.RunFileDialog(MS.Win32.NativeMethods.OPENFILENAME_I)' does not exist in the implementation but it does exist in the contract.
2+
MembersMustExist : Member 'private protected MS.Internal.AppModel.IFileDialog Microsoft.Win32.CommonItemDialog.CreateDialog()' does not exist in the implementation but it does exist in the contract.
3+
MembersMustExist : Member 'private protected System.String[] Microsoft.Win32.FileDialog.ProcessFiles(MS.Internal.AppModel.IFileDialog)' does not exist in the implementation but it does exist in the contract.
54
CannotChangeAttribute : Attribute 'System.ComponentModel.DesignerSerializationVisibilityAttribute' on 'System.ComponentModel.DesignerProperties.GetIsInDesignMode(System.Windows.DependencyObject)' changed from '[DesignerSerializationVisibilityAttribute(0)]' in the contract to '[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)]' in the implementation.
65
CannotChangeAttribute : Attribute 'System.AttributeUsageAttribute' on 'System.Windows.AttachedPropertyBrowsableForChildrenAttribute' changed from '[AttributeUsageAttribute(64, AllowMultiple=false)]' in the contract to '[AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple=false)]' in the implementation.
76
CannotChangeAttribute : Attribute 'System.ComponentModel.DesignerSerializationVisibilityAttribute' on 'System.Windows.DataTemplate.Triggers' changed from '[DesignerSerializationVisibilityAttribute(2)]' in the contract to '[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content)]' in the implementation.

src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/CommonDialog.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public object Tag
221221
//---------------------------------------------------
222222
#region Protected Methods
223223

224-
224+
// This method is not used by IFileDialog API. Keeping for API compatibility with .NET Framework.
225225
/// <summary>
226226
/// Defines the common dialog box hook procedure that is overridden to
227227
/// add specific functionality to a common dialog box.
@@ -247,6 +247,7 @@ protected virtual IntPtr HookProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lP
247247
return IntPtr.Zero;
248248
}
249249

250+
/// <summary>
250251
/// <summary>
251252
/// When overridden in a derived class, displays a particular type of common dialog box.
252253
/// </summary>
@@ -275,13 +276,14 @@ protected virtual void CheckPermissionsToShowDialog()
275276
//---------------------------------------------------
276277
#region Internal Methods
277278

279+
// This method is not used by IFileDialog API. Keeping for API compatibility with .NET Framework.
278280
/// <summary>
279281
/// Centers the given window on the screen. This method is used by HookProc
280282
/// to center the dialog on the screen before it is shown. We can't mark it
281283
/// private because we need to call it from our derived classes like
282284
/// FileDialog.
283285
/// </summary>
284-
internal void MoveToScreenCenter(HandleRef hWnd)
286+
private void MoveToScreenCenter(HandleRef hWnd)
285287
{
286288
// Create an IntPtr to store a handle to the monitor.
287289
IntPtr hMonitor = IntPtr.Zero;
@@ -343,9 +345,8 @@ internal void MoveToScreenCenter(HandleRef hWnd)
343345
// Internal Properties
344346
//
345347
//---------------------------------------------------
346-
#region Internal Properties
347-
348-
#endregion Internal Properties
348+
//#region Internal Properties
349+
//#endregion Internal Properties
349350

350351
//---------------------------------------------------
351352
//

0 commit comments

Comments
 (0)