public : sealed class InlineUIContainer : Inline, IInlineUIContainer
struct winrt::Windows::UI::Xaml::Documents::InlineUIContainer : Inline, IInlineUIContainer
public sealed class InlineUIContainer : Inline, IInlineUIContainer
Public NotInheritable Class InlineUIContainer Inherits Inline Implements IInlineUIContainer
<InlineUIContainer .../> -or- <InlineUIContainer ...> singleChild </InlineUIContainer>
Windows 10 (introduced v10.0.10240.0)
Windows.Foundation.UniversalApiContract (introduced v1)
<RichTextBlock> <Paragraph> <Italic>This is an inline image.</Italic> <InlineUIContainer> <Image Source="Assets/SmallLogo.png" Height="30" Width="30"/> </InlineUIContainer> Mauris auctor tincidunt auctor. </Paragraph> </RichTextBlock>
The most common scenario for using an InlineUIContainer object is to introduce an image into text content. Use a new Image object for the image, as the child content for an InlineUIContainer. Set Height and Width on the image if you don't want it to scale to the natural image size.
If you want more than one element inlined in the same position, consider using a panel as the single InlineUIContainer child and then placing the multiple elements within that panel.
If placed within an InlineUIContainer, a control that can be focused still appears in the top-level tab sequence.
InlineUIContainer inherits properties from the TextElement class. However, most of these properties don't have any visible effect. It's most common to declare a InlineUIContainer object element in XAML without there being any attributes set (except possibly x:Name attribute) with the single child element that you're inlining as content of the InlineUIContainer object element.
Setting properties on InlineUIContainer that otherwise affect the character line height of a text element (such as FontSize, FontFamily ) has no effect on the rendering and appearance. The content dictates its size and the InlineUIContainer sizes to fit it.
If there's further text within the child content (like TextBlock.Text or other text elements within a nested RichTextBlock ) the text element properties of the InlineUIContainer parent won't inherit into the content, they're ignored.
|InlineUIContainer() InlineUIContainer() InlineUIContainer() InlineUIContainer()||
Initializes a new instance of the InlineUIContainer class.
|AccessKeyDisplayDismissed AccessKeyDisplayDismissed AccessKeyDisplayDismissed AccessKeyDisplayDismissed||
Occurs when the access key sequence is complete to notify controls that they should hide access key visuals.(Inherited from TextElement)
|AccessKeyDisplayRequested AccessKeyDisplayRequested AccessKeyDisplayRequested AccessKeyDisplayRequested||
Occurs when the access key sequence is started to notify controls that they should show access key visuals.(Inherited from TextElement)
|AccessKeyInvoked AccessKeyInvoked AccessKeyInvoked AccessKeyInvoked||
Occurs when a user completes an access key sequence to notify the element that the access key action should be invoked.(Inherited from TextElement)