Exemplo n.º 1
0
        /*******************************************************************************
        *       $
        *******************************************************************************/

        public CheckedEditorPart()
        {
            ColumnCount = 2;
            Children.Add(E_checkBox, new GridAnchor(0, 0));
            Children.Add(E_editor, new GridAnchor(1, 0));

            E_checkBox.AddPropertyChangedListener(CheckBox.IsCheckedProperty, ValuedChanged_IsChecked);
        }
Exemplo n.º 2
0
        /*******************************************************************************
        *       $
        *******************************************************************************/

        public EffectEditor(GraphicsEffectEditor parentEditor, string label, GraphicsEffect effect, DependencyProperty dproperty)
        {
            this.ParentEditor = parentEditor;
            this.Effect       = effect;
            this.Dproperty    = dproperty;

            parentEditor.Members.Add(this, new Placecard(label));

            //E_editor.SetBinding(Slider.UserValue1Property, new Binding(dproperty, effect) { Mode = BindingMode.TwoWay });
            E_editor.BindToSourceProperty(effect, dproperty);

            E_checkBox.AddPropertyChangedListener(CheckBox.IsCheckedProperty, ValueChanged_IsChecked);
        }