53 references to FlowDocumentReaderViewingMode
PresentationFramework (53)
System\Windows\Automation\Peers\FlowDocumentReaderAutomationPeer.cs (12)
99internal void RaiseCurrentViewChangedEvent(FlowDocumentReaderViewingMode newMode, FlowDocumentReaderViewingMode oldMode) 162if (single) { views[count++] = ConvertModeToViewId(FlowDocumentReaderViewingMode.Page); } 163if (facing) { views[count++] = ConvertModeToViewId(FlowDocumentReaderViewingMode.TwoPage); } 164if (scroll) { views[count++] = ConvertModeToViewId(FlowDocumentReaderViewingMode.Scroll); } 171private int ConvertModeToViewId(FlowDocumentReaderViewingMode mode) 179private FlowDocumentReaderViewingMode ConvertViewIdToMode(int viewId) 182return (FlowDocumentReaderViewingMode)viewId; 213FlowDocumentReaderViewingMode mode = ConvertViewIdToMode(viewId); 214if (mode == FlowDocumentReaderViewingMode.Page) 218else if (mode == FlowDocumentReaderViewingMode.TwoPage) 222else if (mode == FlowDocumentReaderViewingMode.Scroll)
System\Windows\Controls\FlowDocumentReader.cs (41)
173public void SwitchViewingMode(FlowDocumentReaderViewingMode viewingMode) 191public FlowDocumentReaderViewingMode ViewingMode 193get { return (FlowDocumentReaderViewingMode)GetValue(ViewingModeProperty); } 403typeof(FlowDocumentReaderViewingMode), 406FlowDocumentReaderViewingMode.Page, 737protected virtual void OnSwitchViewingModeCommand(FlowDocumentReaderViewingMode viewingMode) 903protected virtual void SwitchViewingModeCore(FlowDocumentReaderViewingMode viewingMode) 1134private bool CanSwitchToViewingMode(FlowDocumentReaderViewingMode mode) 1139case FlowDocumentReaderViewingMode.Page: 1142case FlowDocumentReaderViewingMode.TwoPage: 1145case FlowDocumentReaderViewingMode.Scroll: 1155private IFlowDocumentViewer GetViewerFromMode(FlowDocumentReaderViewingMode mode) 1160case FlowDocumentReaderViewingMode.Page: 1170case FlowDocumentReaderViewingMode.TwoPage: 1180case FlowDocumentReaderViewingMode.Scroll: 1259private bool ConvertToViewingMode(object value, out FlowDocumentReaderViewingMode mode) 1262if (value is FlowDocumentReaderViewingMode) 1264mode = (FlowDocumentReaderViewingMode)value; 1270if (str == FlowDocumentReaderViewingMode.Page.ToString()) 1272mode = FlowDocumentReaderViewingMode.Page; 1275else if (str == FlowDocumentReaderViewingMode.TwoPage.ToString()) 1277mode = FlowDocumentReaderViewingMode.TwoPage; 1280else if (str == FlowDocumentReaderViewingMode.Scroll.ToString()) 1282mode = FlowDocumentReaderViewingMode.Scroll; 1287mode = FlowDocumentReaderViewingMode.Page; 1293mode = FlowDocumentReaderViewingMode.Page; 1396FlowDocumentReaderViewingMode mode; 1491FlowDocumentReaderViewingMode mode; 1499mode = (FlowDocumentReaderViewingMode)((((int)ViewingMode) + 1) % 3); 1509mode = (FlowDocumentReaderViewingMode)((((int)mode) + 1) % 3); 1637if (viewer.CanSwitchToViewingMode((FlowDocumentReaderViewingMode)e.NewValue)) 1639viewer.SwitchViewingModeCore((FlowDocumentReaderViewingMode)e.NewValue); 1650peer.RaiseCurrentViewChangedEvent((FlowDocumentReaderViewingMode)e.NewValue, (FlowDocumentReaderViewingMode)e.OldValue); 1659FlowDocumentReaderViewingMode value = (FlowDocumentReaderViewingMode)o; 1660return (value == FlowDocumentReaderViewingMode.Page || 1661value == FlowDocumentReaderViewingMode.TwoPage || 1662value == FlowDocumentReaderViewingMode.Scroll); 1985public JournalState(int contentPosition, LogicalDirection contentPositionDirection, double zoom, FlowDocumentReaderViewingMode viewingMode) 1995public FlowDocumentReaderViewingMode ViewingMode;