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