43 references to Content
PresentationFramework (43)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (4)
140
if ((token & XmlToken.Ink) != 0 && snc.
Content
.Type == StickyNoteType.Ink)
146
if ((token & XmlToken.Text) != 0 && snc.
Content
.Type == StickyNoteType.Text)
727
StickyNoteContentControl contentControl = snc.
Content
;
1329
if (
Content
!= null)
src\Framework\System\Windows\Controls\StickyNote.cs (39)
606
Invariant.Assert(
Content
!= null);
612
UIElement innerControl = this.
Content
.InnerControl as UIElement;
670
Invariant.Assert(
Content
!= null, "Content is null.");
685
Invariant.Assert(
Content
!= null);
688
InkCanvas innerInkCanvas =
Content
.InnerControl as InkCanvas;
820
if (stickyNoteControl.
Content
!= null && stickyNoteControl.
Content
.Type != StickyNoteType.Ink)
822
FrameworkElement innerControl = stickyNoteControl.
Content
.InnerControl;
837
if (e.Property == ForegroundProperty && stickyNoteControl.
Content
!= null && stickyNoteControl.
Content
.Type != StickyNoteType.Ink)
839
FrameworkElement innerControl = stickyNoteControl.
Content
.InnerControl;
1002
Invariant.Assert(
Content
!= null &&
Content
.InnerControl is InkCanvas);
1003
FrameworkElement parent = VisualTreeHelper.GetParent(
Content
.InnerControl) as FrameworkElement;
1253
Invariant.Assert(
Content
.InnerControl != null, "InnerControl is null.");
1254
eatEvent = source.IsDescendantOf(this.
Content
.InnerControl);
1305
if (
Content
!= null)
1474
Invariant.Assert(
Content
!= null);
1479
if (
Content
.Type != StickyNoteType.Ink)
1481
FrameworkElement innerControl =
Content
.InnerControl;
1513
Content
.InnerControl.SetBinding(InkCanvas.EditingModeProperty, inkCanvasEditingMode);
1523
Invariant.Assert(
Content
!= null);
1525
FrameworkElement innerControl = (FrameworkElement)
Content
.InnerControl;
1526
if (
Content
.Type != StickyNoteType.Ink)
1548
Invariant.Assert(
Content
!= null);
1550
if (
Content
.Type == StickyNoteType.Ink)
1552
InkCanvas inkCanvas =
Content
.InnerControl as InkCanvas;
1561
TextBoxBase textBoxBase =
Content
.InnerControl as TextBoxBase;
1573
Invariant.Assert(
Content
!= null);
1575
if (
Content
.Type == StickyNoteType.Ink)
1577
InkCanvas inkCanvas =
Content
.InnerControl as InkCanvas;
1586
TextBoxBase textBoxBase =
Content
.InnerControl as TextBoxBase;
1704
copyMenuItem.CommandTarget =
Content
.InnerControl;
1717
pasteMenuItem.CommandTarget =
Content
.InnerControl;
1760
StickyNoteContentControl content = snc.
Content
;
1796
StickyNoteContentControl content = snc.
Content
;
1813
if (
Content
== null ||
Content
.Type != StickyNoteType.Ink )
1835
( (InkCanvas)(
Content
.InnerControl ) ).DefaultDrawingAttributes = da;