43 references to Content
PresentationFramework (43)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (4)
134
if ((token & XmlToken.Ink) != 0 && snc.
Content
.Type == StickyNoteType.Ink)
140
if ((token & XmlToken.Text) != 0 && snc.
Content
.Type == StickyNoteType.Text)
720
StickyNoteContentControl contentControl = snc.
Content
;
1314
if (
Content
!= null)
System\Windows\Controls\StickyNote.cs (39)
596
Invariant.Assert(
Content
!= null);
602
UIElement innerControl = this.
Content
.InnerControl as UIElement;
660
Invariant.Assert(
Content
!= null, "Content is null.");
675
Invariant.Assert(
Content
!= null);
678
InkCanvas innerInkCanvas =
Content
.InnerControl as InkCanvas;
810
if (stickyNoteControl.
Content
!= null && stickyNoteControl.
Content
.Type != StickyNoteType.Ink)
812
FrameworkElement innerControl = stickyNoteControl.
Content
.InnerControl;
827
if (e.Property == ForegroundProperty && stickyNoteControl.
Content
!= null && stickyNoteControl.
Content
.Type != StickyNoteType.Ink)
829
FrameworkElement innerControl = stickyNoteControl.
Content
.InnerControl;
992
Invariant.Assert(
Content
!= null &&
Content
.InnerControl is InkCanvas);
993
FrameworkElement parent = VisualTreeHelper.GetParent(
Content
.InnerControl) as FrameworkElement;
1243
Invariant.Assert(
Content
.InnerControl != null, "InnerControl is null.");
1244
eatEvent = source.IsDescendantOf(this.
Content
.InnerControl);
1295
if (
Content
!= null)
1464
Invariant.Assert(
Content
!= null);
1469
if (
Content
.Type != StickyNoteType.Ink)
1471
FrameworkElement innerControl =
Content
.InnerControl;
1503
Content
.InnerControl.SetBinding(InkCanvas.EditingModeProperty, inkCanvasEditingMode);
1513
Invariant.Assert(
Content
!= null);
1515
FrameworkElement innerControl = (FrameworkElement)
Content
.InnerControl;
1516
if (
Content
.Type != StickyNoteType.Ink)
1538
Invariant.Assert(
Content
!= null);
1540
if (
Content
.Type == StickyNoteType.Ink)
1542
InkCanvas inkCanvas =
Content
.InnerControl as InkCanvas;
1551
TextBoxBase textBoxBase =
Content
.InnerControl as TextBoxBase;
1563
Invariant.Assert(
Content
!= null);
1565
if (
Content
.Type == StickyNoteType.Ink)
1567
InkCanvas inkCanvas =
Content
.InnerControl as InkCanvas;
1576
TextBoxBase textBoxBase =
Content
.InnerControl as TextBoxBase;
1688
copyMenuItem.CommandTarget =
Content
.InnerControl;
1694
pasteMenuItem.CommandTarget =
Content
.InnerControl;
1723
StickyNoteContentControl content = snc.
Content
;
1759
StickyNoteContentControl content = snc.
Content
;
1776
if (
Content
== null ||
Content
.Type != StickyNoteType.Ink )
1798
( (InkCanvas)(
Content
.InnerControl ) ).DefaultDrawingAttributes = da;