53 references to FlowDocumentReaderViewingMode
PresentationFramework (53)
src\Framework\System\Windows\Automation\Peers\FlowDocumentReaderAutomationPeer.cs (12)
102internal void RaiseCurrentViewChangedEvent(FlowDocumentReaderViewingMode newMode, FlowDocumentReaderViewingMode oldMode) 165if (single) { views[count++] = ConvertModeToViewId(FlowDocumentReaderViewingMode.Page); } 166if (facing) { views[count++] = ConvertModeToViewId(FlowDocumentReaderViewingMode.TwoPage); } 167if (scroll) { views[count++] = ConvertModeToViewId(FlowDocumentReaderViewingMode.Scroll); } 174private int ConvertModeToViewId(FlowDocumentReaderViewingMode mode) 182private FlowDocumentReaderViewingMode ConvertViewIdToMode(int viewId) 185return (FlowDocumentReaderViewingMode)viewId; 216FlowDocumentReaderViewingMode mode = ConvertViewIdToMode(viewId); 217if (mode == FlowDocumentReaderViewingMode.Page) 221else if (mode == FlowDocumentReaderViewingMode.TwoPage) 225else if (mode == FlowDocumentReaderViewingMode.Scroll)
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (41)
179public void SwitchViewingMode(FlowDocumentReaderViewingMode viewingMode) 197public FlowDocumentReaderViewingMode ViewingMode 199get { return (FlowDocumentReaderViewingMode)GetValue(ViewingModeProperty); } 409typeof(FlowDocumentReaderViewingMode), 412FlowDocumentReaderViewingMode.Page, 743protected virtual void OnSwitchViewingModeCommand(FlowDocumentReaderViewingMode viewingMode) 914protected virtual void SwitchViewingModeCore(FlowDocumentReaderViewingMode viewingMode) 1145private bool CanSwitchToViewingMode(FlowDocumentReaderViewingMode mode) 1150case FlowDocumentReaderViewingMode.Page: 1153case FlowDocumentReaderViewingMode.TwoPage: 1156case FlowDocumentReaderViewingMode.Scroll: 1166private IFlowDocumentViewer GetViewerFromMode(FlowDocumentReaderViewingMode mode) 1171case FlowDocumentReaderViewingMode.Page: 1181case FlowDocumentReaderViewingMode.TwoPage: 1191case FlowDocumentReaderViewingMode.Scroll: 1270private bool ConvertToViewingMode(object value, out FlowDocumentReaderViewingMode mode) 1273if (value is FlowDocumentReaderViewingMode) 1275mode = (FlowDocumentReaderViewingMode)value; 1281if (str == FlowDocumentReaderViewingMode.Page.ToString()) 1283mode = FlowDocumentReaderViewingMode.Page; 1286else if (str == FlowDocumentReaderViewingMode.TwoPage.ToString()) 1288mode = FlowDocumentReaderViewingMode.TwoPage; 1291else if (str == FlowDocumentReaderViewingMode.Scroll.ToString()) 1293mode = FlowDocumentReaderViewingMode.Scroll; 1298mode = FlowDocumentReaderViewingMode.Page; 1304mode = FlowDocumentReaderViewingMode.Page; 1407FlowDocumentReaderViewingMode mode; 1502FlowDocumentReaderViewingMode mode; 1510mode = (FlowDocumentReaderViewingMode)((((int)ViewingMode) + 1) % 3); 1520mode = (FlowDocumentReaderViewingMode)((((int)mode) + 1) % 3); 1648if (viewer.CanSwitchToViewingMode((FlowDocumentReaderViewingMode)e.NewValue)) 1650viewer.SwitchViewingModeCore((FlowDocumentReaderViewingMode)e.NewValue); 1661peer.RaiseCurrentViewChangedEvent((FlowDocumentReaderViewingMode)e.NewValue, (FlowDocumentReaderViewingMode)e.OldValue); 1670FlowDocumentReaderViewingMode value = (FlowDocumentReaderViewingMode)o; 1671return (value == FlowDocumentReaderViewingMode.Page || 1672value == FlowDocumentReaderViewingMode.TwoPage || 1673value == FlowDocumentReaderViewingMode.Scroll); 1996public JournalState(int contentPosition, LogicalDirection contentPositionDirection, double zoom, FlowDocumentReaderViewingMode viewingMode) 2006public FlowDocumentReaderViewingMode ViewingMode;