Beispiel #1
0
        public static void UnregisterCommandsRecursive(FrameworkElement obj)
        {
            var pnl = obj as Panel;

            if (pnl != null)
            {
                foreach (var item in pnl.Children)
                {
                    UnregisterCommandsRecursive(item as FrameworkElement);
                }
            }
            CommandSubscription.UnregisterAllSubscriptions(obj);
        }
Beispiel #2
0
 public static void UnregisterCommands(FrameworkElement obj)
 {
     CommandSubscription.UnregisterAllSubscriptions(obj);
 }