/// <summary> /// Creates a new <see cref="OpenDirectoryDialog" />. /// </summary> public OpenDirectoryDialog() : base() { m_openDirectoryControl = null; Loaded += LoadedHandler; Unloaded += UnloadedHandler; }
public override void OnApplyTemplate() { base.OnApplyTemplate(); if (m_openDirectoryControl != null) { m_openDirectoryControl.Cancel -= CancelHandler; m_openDirectoryControl.DirectorySelected -= OpenDirectoryControlDirectorySelectedHandler; } m_openDirectoryControl = Template.FindName(OpenDirectoryControlName, this) as OpenDirectoryControl; }
public override void OnApplyTemplate() { base.OnApplyTemplate(); m_openDirectoryControl = Template.FindName(OpenDirectoryControlName, this) as OpenDirectoryControl; }