示例#1
0
        private static void OnURLChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Uri url = (Uri)e.NewValue;
            WorkspaceMenuItem item = (WorkspaceMenuItem)d;

            item.URL = url;
        }
示例#2
0
        private static void OnTitleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            string            newTitle = (string)e.NewValue;
            WorkspaceMenuItem item     = (WorkspaceMenuItem)d;

            item.Title = newTitle;
        }