fix conflict between routed and attached, routed dialog close event.
fix conflict between routed and attached, routed dialog close event.

tipunch74/MaterialDesignInXamlToolkit,tipunch74/MaterialDesignInXamlToolkit,ButchersBoy/MaterialDesignInXamlToolkit,tipunch74/MaterialDesignInXamlToolkit,DingpingZhang/MaterialDesignInXamlToolkit,ButchersBoy/MaterialDesignInXamlToolkit,ButchersBoy/MaterialDesignInXamlToolkit