コード例 #1
0
        private void Window_Activated(object sender, EventArgs e)
        {
            Binding binding = new Binding
            {
                Source = Window,
                Path   = new PropertyPath(BorderBrushProperty)
            };

            WindowTitle.SetBinding(ForegroundProperty, binding);
        }
コード例 #2
0
        private void Window_Activated(object sender, EventArgs e)
        {
            Binding binding = new Binding
            {
                Source = Window,
                Path   = new PropertyPath(BackgroundProperty)
            };

            WindowTitle.SetBinding(ForegroundProperty, binding);
            //HeaderTitle.Foreground = new SolidColorBrush(Colors.White);
        }