BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Public Class SpanAdv2
Inherits SpanAdv
Public Property RunText() As String
Get
Return DirectCast(GetValue(RunTextProperty), String)
End Get
Set
SetValue(RunTextProperty, Value)
End Set
End Property
Public Sub New()
MyBase.New()
End Sub
' Using a DependencyProperty as the backing store for RunText. This enables animation, styling, binding, etc...
Public Shared ReadOnly RunTextProperty As DependencyProperty = DependencyProperty.Register("RunText", GetType(String), GetType(SpanAdv2), New PropertyMetadata(String.Empty, New PropertyChangedCallback(AddressOf OnRunTextChanged)))
Private Shared Sub OnRunTextChanged(d As DependencyObject, e As DependencyPropertyChangedEventArgs)
If d IsNot Nothing Then
Dim spanAdv2 As SpanAdv2 = TryCast(d, SpanAdv2)
spanAdv2.OnRunTextChanged(e)
End If
End Sub
Private Sub OnRunTextChanged(e As DependencyPropertyChangedEventArgs)
MyBase.Text = DirectCast(e.NewValue, String)
End Sub
End Class
<FlowDocument ColumnWidth="400"> <Section Background="GhostWhite"> <Paragraph> A UIElement element may be embedded directly in flow content by enclosing it in a BlockUIContainer element. </Paragraph> <BlockUIContainer> <Button>Click me!</Button> </BlockUIContainer> <Paragraph> The BlockUIContainer element may host no more than one top-level UIElement. However, other UIElements may be nested within the UIElement contained by an BlockUIContainer element. For example, a StackPanel can be used to host multiple UIElement elements within a BlockUIContainer element. </Paragraph> <BlockUIContainer> <StackPanel> <Label Foreground="Blue">Choose a value:</Label> <ComboBox> <ComboBoxItem IsSelected="True">a</ComboBoxItem> <ComboBoxItem>b</ComboBoxItem> <ComboBoxItem>c</ComboBoxItem> </ComboBox> <Label Foreground ="Red">Choose a value:</Label> <StackPanel> <RadioButton>x</RadioButton> <RadioButton>y</RadioButton> <RadioButton>z</RadioButton> </StackPanel> <Label>Enter a value:</Label> <TextBox> A text editor embedded in flow content. </TextBox> </StackPanel> </BlockUIContainer> </Section> </FlowDocument>