public string GetFlippingStyleName(FlippingStyle flippingStyle) { switch (flippingStyle) { case FlippingStyle.None: return(UISettings.SettingsPage_FlippingStyle_None); case FlippingStyle.Shift: return(UISettings.SettingsPage_FlippingStyle_Shift); case FlippingStyle.Overlap: return(UISettings.SettingsPage_FlippingStyle_Overlap); } throw new NotSupportedException(); }
public PageManipulatorBase CreateManipulator(FlippingStyle type, FlippingMode mode) { switch (type) { case FlippingStyle.None: return new StaticDragPageManipulation(_panel, mode); case FlippingStyle.Overlap: return new OverlappingDragPageManipulation(_panel, mode); case FlippingStyle.Shift: return new ContinuousDragPageManipulation(_panel, mode); default: throw new NotSupportedException(); } }
public PageManipulatorBase CreateManipulator(FlippingStyle type, FlippingMode mode) { switch (type) { case FlippingStyle.None: return(new StaticDragPageManipulation(_panel, mode)); case FlippingStyle.Overlap: return(new OverlappingDragPageManipulation(_panel, mode)); case FlippingStyle.Shift: return(new ContinuousDragPageManipulation(_panel, mode)); default: throw new NotSupportedException(); } }
public string GetFlippingStyleName(FlippingStyle flippingStyle) { switch (flippingStyle) { case FlippingStyle.None: return UISettings.SettingsPage_FlippingStyle_None; case FlippingStyle.Shift: return UISettings.SettingsPage_FlippingStyle_Shift; case FlippingStyle.Overlap: return UISettings.SettingsPage_FlippingStyle_Overlap; } throw new NotSupportedException(); }