public void SaveOptions() { if (!IsDirty) { return; } XamlStylerOptionsService.SaveGlobalOptions(Options); }
public void RefreshData() { Options = XamlStylerOptionsService.GetGlobalOptions(); var properties = TypeDescriptor.GetProperties(Options); GroupedOptions = properties.Cast <PropertyDescriptor>() .Select(property => new XamlStylerOptionViewModel(property)) .Where(option => option.IsConfigurable) .GroupBy(option => option.Category) .ToList(); }
public void ResetToDefaults() { XamlStylerOptionsService.ResetGlobalOptions(); IsDirty = false; }