コード例 #1
0
        private static void PropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            wndSettings Base = (wndSettings)sender;

            switch (e.Property.ToString())
            {
            case "MaxOpacity":
                AppInfoOperations.SetMaxOpacity((double)e.NewValue);
                break;

            case "MinOpacity":
                AppInfoOperations.SetMinOpacity((double)e.NewValue);
                break;

            case "Fadein":
                AppInfoOperations.SetShowTimeSpan((double)e.NewValue);
                break;

            case "Fadeout":
                AppInfoOperations.SetHideTimeSpan((double)e.NewValue);
                break;

            case "ItemSize":
                AppInfoOperations.SetItemSize((double)e.NewValue);

                foreach (Item i in Manage.WindowMain.Recent.Children)
                {
                    i.Length = (double)e.NewValue;
                }

                break;

            default:
                break;
            }
        }