public PowerRenameProperties()
 {
     PersistState            = new BoolProperty();
     MRUEnabled              = new BoolProperty();
     MaxMRUSize              = new IntProperty();
     ShowIcon                = new BoolProperty();
     ExtendedContextMenuOnly = new BoolProperty();
     Enabled = new BoolProperty();
 }
コード例 #2
0
 public FZConfigProperties()
 {
     FancyzonesShiftDrag                    = new BoolProperty(ConfigDefaults.DefaultFancyzonesShiftDrag);
     FancyzonesOverrideSnapHotkeys          = new BoolProperty();
     FancyzonesMouseSwitch                  = new BoolProperty();
     FancyzonesMoveWindowsAcrossMonitors    = new BoolProperty();
     FancyzonesDisplayChangeMoveWindows     = new BoolProperty();
     FancyzonesZoneSetChangeMoveWindows     = new BoolProperty();
     FancyzonesAppLastZoneMoveWindows       = new BoolProperty();
     FancyzonesOpenWindowOnActiveMonitor    = new BoolProperty();
     FancyzonesRestoreSize                  = new BoolProperty();
     UseCursorposEditorStartupscreen        = new BoolProperty(ConfigDefaults.DefaultUseCursorposEditorStartupscreen);
     FancyzonesShowOnAllMonitors            = new BoolProperty();
     FancyzonesZoneHighlightColor           = new StringProperty(ConfigDefaults.DefaultFancyZonesZoneHighlightColor);
     FancyzonesHighlightOpacity             = new IntProperty(50);
     FancyzonesEditorHotkey                 = new KeyboardKeysProperty(DefaultHotkeyValue);
     FancyzonesMakeDraggedWindowTransparent = new BoolProperty();
     FancyzonesExcludedApps                 = new StringProperty();
     FancyzonesInActiveColor                = new StringProperty(ConfigDefaults.DefaultFancyZonesInActiveColor);
     FancyzonesBorderColor                  = new StringProperty(ConfigDefaults.DefaultFancyzonesBorderColor);
 }
コード例 #3
0
        public ImageResizerProperties()
        {
            ImageresizerSelectedSizeIndex  = new IntProperty(0);
            ImageresizerShrinkOnly         = new BoolProperty(false);
            ImageresizerReplace            = new BoolProperty(false);
            ImageresizerIgnoreOrientation  = new BoolProperty(true);
            ImageresizerJpegQualityLevel   = new IntProperty(90);
            ImageresizerPngInterlaceOption = new IntProperty();
            ImageresizerTiffCompressOption = new IntProperty();
            ImageresizerFileName           = new StringProperty("%1 (%2)");

            ImageresizerSizes = new ImageResizerSizes(new ObservableCollection <ImageSize>()
            {
                new ImageSize(0, "Small", ResizeFit.Fit, 854, 480, ResizeUnit.Pixel),
                new ImageSize(1, "Medium", ResizeFit.Fit, 1366, 768, ResizeUnit.Pixel),
                new ImageSize(2, "Large", ResizeFit.Fit, 1920, 1080, ResizeUnit.Pixel),
                new ImageSize(3, "Phone", ResizeFit.Fit, 320, 568, ResizeUnit.Pixel),
            });

            ImageresizerKeepDateModified = new BoolProperty();
            ImageresizerFallbackEncoder  = new StringProperty(new System.Guid("19e4a5aa-5662-4fc5-a0c0-1758028e1057").ToString());
            ImageresizerCustomSize       = new ImageResizerCustomSizeProperty(new ImageSize(4, "custom", ResizeFit.Fit, 1024, 640, ResizeUnit.Pixel));
        }
コード例 #4
0
 public PowerPreviewProperties()
 {
     EnableSvg = new BoolProperty();
     EnableMd  = new BoolProperty();
 }
コード例 #5
0
        public override void Write(Utf8JsonWriter writer, bool value, JsonSerializerOptions options)
        {
            var boolProperty = new BoolProperty(value);

            JsonSerializer.Serialize(writer, boolProperty, options);
        }