Exemplo n.º 1
0
        private void MenuItem_Czcionka_Click(object sender, RoutedEventArgs e)
        {
            Font font = Font.ExtractFrom(textBox);

            if (WindowsFormsHelper.ChooseFont(ref font))
            {
                font.ApplyTo(textBox);
            }
        }
Exemplo n.º 2
0
        private void MenuItem_KolorTła_Click(object sender, RoutedEventArgs e)
        {
            Color theme = Colors.White;

            if (textBox.Background is SolidColorBrush)
            {
                theme = (textBox.Background as SolidColorBrush).Color;
            }
            if (WindowsFormsHelper.ChooseColor(ref theme))
            {
                textBox.Background = new SolidColorBrush(theme);
            }
        }