public NewFeatureModalView()
 {
     this.InitializeComponent();
     if (!DesignerProperties.GetIsInDesignMode(this))
     {
         ServiceLocatorExtensions.ResolveType <IUIHelper>(ServiceLocator.get_Default(), null).LocalizeUI(this, Thread.CurrentThread, false);
     }
     MessageBase <NewFeatureModalCloseWindowMessage, object> .Register(this, new Action <NewFeatureModalCloseWindowMessage>(this.DispatchClose), base.Tag);
 }
        private static void OnTagChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            if (d is NewFeatureModalView)
            {
                NewFeatureModalView newFeatureModalView = (NewFeatureModalView)d;
                MessageBase <NewFeatureModalCloseWindowMessage, object> .Unregister(newFeatureModalView, new Action <NewFeatureModalCloseWindowMessage>(newFeatureModalView.DispatchClose), e.OldValue);

                MessageBase <NewFeatureModalCloseWindowMessage, object> .Register(newFeatureModalView, new Action <NewFeatureModalCloseWindowMessage>(newFeatureModalView.DispatchClose), e.NewValue);
            }
        }