示例#1
0
文件: Effect.cs 项目: hughbe/wpf
        static Effect()
        {
            // Let the ImplicitInput be a very obscure brush, and treat it as
            // the implicit input if the exact color matches.  Note that this
            // color will be matched in native code that recognized
            // ImplicitInput, so don't change.

            // This specific brush is used as a placeholder for the implicit input
            // texture. This is a little hacky, but *way* easier than adding a new
            // Brush subclass for the implicit input and having it work properly
            // as a real brush.

            ImplicitInput = new ImplicitInputBrush();
            ImplicitInput.Freeze();
        }
示例#2
0
文件: Effect.cs 项目: JianwenSun/cc
        static Effect()
        {


            // Let the ImplicitInput be a very obscure brush, and treat it as
            // the implicit input if the exact color matches.  Note that this
            // color will be matched in native code that recognized
            // ImplicitInput, so don't change.
            
            // This specific brush is used as a placeholder for the implicit input 
            // texture. This is a little hacky, but *way* easier than adding a new 
            // Brush subclass for the implicit input and having it work properly 
            // as a real brush.
            
            ImplicitInput = new ImplicitInputBrush();
            ImplicitInput.Freeze();
        }