53 references to FlowDocumentReaderViewingMode
PresentationFramework (53)
System\Windows\Automation\Peers\FlowDocumentReaderAutomationPeer.cs (12)
100
internal void RaiseCurrentViewChangedEvent(
FlowDocumentReaderViewingMode
newMode,
FlowDocumentReaderViewingMode
oldMode)
163
if (single) { views[count++] = ConvertModeToViewId(
FlowDocumentReaderViewingMode
.Page); }
164
if (facing) { views[count++] = ConvertModeToViewId(
FlowDocumentReaderViewingMode
.TwoPage); }
165
if (scroll) { views[count++] = ConvertModeToViewId(
FlowDocumentReaderViewingMode
.Scroll); }
172
private int ConvertModeToViewId(
FlowDocumentReaderViewingMode
mode)
180
private
FlowDocumentReaderViewingMode
ConvertViewIdToMode(int viewId)
183
return (
FlowDocumentReaderViewingMode
)viewId;
214
FlowDocumentReaderViewingMode
mode = ConvertViewIdToMode(viewId);
215
if (mode ==
FlowDocumentReaderViewingMode
.Page)
219
else if (mode ==
FlowDocumentReaderViewingMode
.TwoPage)
223
else if (mode ==
FlowDocumentReaderViewingMode
.Scroll)
System\Windows\Controls\FlowDocumentReader.cs (41)
178
public void SwitchViewingMode(
FlowDocumentReaderViewingMode
viewingMode)
196
public
FlowDocumentReaderViewingMode
ViewingMode
198
get { return (
FlowDocumentReaderViewingMode
)GetValue(ViewingModeProperty); }
408
typeof(
FlowDocumentReaderViewingMode
),
411
FlowDocumentReaderViewingMode
.Page,
742
protected virtual void OnSwitchViewingModeCommand(
FlowDocumentReaderViewingMode
viewingMode)
908
protected virtual void SwitchViewingModeCore(
FlowDocumentReaderViewingMode
viewingMode)
1139
private bool CanSwitchToViewingMode(
FlowDocumentReaderViewingMode
mode)
1144
case
FlowDocumentReaderViewingMode
.Page:
1147
case
FlowDocumentReaderViewingMode
.TwoPage:
1150
case
FlowDocumentReaderViewingMode
.Scroll:
1160
private IFlowDocumentViewer GetViewerFromMode(
FlowDocumentReaderViewingMode
mode)
1165
case
FlowDocumentReaderViewingMode
.Page:
1175
case
FlowDocumentReaderViewingMode
.TwoPage:
1185
case
FlowDocumentReaderViewingMode
.Scroll:
1264
private bool ConvertToViewingMode(object value, out
FlowDocumentReaderViewingMode
mode)
1267
if (value is
FlowDocumentReaderViewingMode
)
1269
mode = (
FlowDocumentReaderViewingMode
)value;
1275
if (str ==
FlowDocumentReaderViewingMode
.Page.ToString())
1277
mode =
FlowDocumentReaderViewingMode
.Page;
1280
else if (str ==
FlowDocumentReaderViewingMode
.TwoPage.ToString())
1282
mode =
FlowDocumentReaderViewingMode
.TwoPage;
1285
else if (str ==
FlowDocumentReaderViewingMode
.Scroll.ToString())
1287
mode =
FlowDocumentReaderViewingMode
.Scroll;
1292
mode =
FlowDocumentReaderViewingMode
.Page;
1298
mode =
FlowDocumentReaderViewingMode
.Page;
1401
FlowDocumentReaderViewingMode
mode;
1496
FlowDocumentReaderViewingMode
mode;
1504
mode = (
FlowDocumentReaderViewingMode
)((((int)ViewingMode) + 1) % 3);
1514
mode = (
FlowDocumentReaderViewingMode
)((((int)mode) + 1) % 3);
1642
if (viewer.CanSwitchToViewingMode((
FlowDocumentReaderViewingMode
)e.NewValue))
1644
viewer.SwitchViewingModeCore((
FlowDocumentReaderViewingMode
)e.NewValue);
1655
peer.RaiseCurrentViewChangedEvent((
FlowDocumentReaderViewingMode
)e.NewValue, (
FlowDocumentReaderViewingMode
)e.OldValue);
1664
FlowDocumentReaderViewingMode
value = (
FlowDocumentReaderViewingMode
)o;
1665
return (value ==
FlowDocumentReaderViewingMode
.Page ||
1666
value ==
FlowDocumentReaderViewingMode
.TwoPage ||
1667
value ==
FlowDocumentReaderViewingMode
.Scroll);
1990
public JournalState(int contentPosition, LogicalDirection contentPositionDirection, double zoom,
FlowDocumentReaderViewingMode
viewingMode)
2000
public
FlowDocumentReaderViewingMode
ViewingMode;