Esempio n. 1
0
 public void WashResources(ColorWashSettings washSettings, ResourceDictionary resources)
 {
     this.WashColor = washSettings.WashColor;
     this.WashGroups[0].WashColor = washSettings.WashColor;
     this.WashMode         = washSettings.WashMode;
     this.SourceDictionary = resources;
     this.WashResources();
 }
Esempio n. 2
0
        public void InitializeWashSettings(ColorWashSettings washSettings)
        {
            DebugManager.Log("ColorWashEditorPanel.InitializingWashSetting: " + washSettings.WashColor + " " + washSettings.WashMode);

            IsInitializingWashSetting = true;
            if (_washModeSelector != null)
            {
                _washModeSelector.SelectedIndex = washSettings.WashMode == WashMode.SoftLightBlend ? 0 : 1;
            }
            if (_washColorSelector != null)
            {
                _washColorSelector.InitializeSelection(washSettings.WashColor);
            }

            this.WashMode             = washSettings.WashMode;
            this.WashColor            = washSettings.WashColor;
            IsInitializingWashSetting = false;
        }
Esempio n. 3
0
 public void WashResources(ColorWashSettings washSettings)
 {
     WashResources(washSettings, Application.Current.Resources);
 }
Esempio n. 4
0
 public void InitializeWashSettings(ColorWashSettings washSettings)
 {
     this.ColorWashEditorPanel.InitializeWashSettings(washSettings);
 }
Esempio n. 5
0
 public ColorWashSettingsChangedEventArgs(ColorWashSettings settings)
 {
     this.ColorWashSettings = settings;
 }