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