Пример #1
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            try
            {
                ResourceDictionary colors  = (ResourceDictionary)XamlReader.Parse(coloreditor.Text);
                ResourceDictionary brushes = (ResourceDictionary)XamlReader.Parse(brusheseditor.Text);

                MonotoneUtils.Update(Application.Current.Resources, colors, brushes);
            }
            catch { }
        }
Пример #2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     MonotoneUtils.Update();
 }
Пример #3
0
 private void ColorPicker_SelectedColorChanged(object sender, RoutedPropertyChangedEventArgs <Color> e)
 {
     MonotoneUtils.Update(e.NewValue);
 }