Exemplo n.º 1
0
        public BindableRunTextMedia(TextMedia tmedia)
        {
            TextMedia = tmedia;

            var binding = new TextMediaBinding
            {
                BoundTextMedia = TextMedia,
                Mode           = BindingMode.TwoWay
            };

            SetBinding(TextProperty, binding);
        }
        public TextMediaTextBox(TextMedia originalText)
        {
            OriginalText = originalText;

            BorderThickness = new Thickness(2);
            Focusable       = true;

            Loaded += OnLoaded;
            KeyUp  += OnKeyUp;

            //Text = originalText.getText();

            var binding = new TextMediaBinding
            {
                BoundTextMedia      = OriginalText,
                Mode                = BindingMode.TwoWay,
                UpdateSourceTrigger = UpdateSourceTrigger.Explicit
            };

            SetBinding(TextProperty, binding);
        }