user7521838
user7521838

Reputation: 370

Equivalent to Xamarin Frame in WPF

I created a Xamarin solution and want to replace the UWP content by WPF. In Xamarin I am using the Frame class. Is there any equivalent to a Xamarin Frame in WPF? I can not find a documentation where this is described.

I am happy about any hint.

Upvotes: 3

Views: 270

Answers (1)

mm8
mm8

Reputation: 169150

A Xamarin.Forms Frame is an element that contains a single child, with some framing options. You could basically achieve the same thing with a Border element in WPF:

<Border Padding="20" BorderBrush="Silver" BorderThickness="1" Background="Black"
                HorizontalAlignment="Center" VerticalAlignment="Center">
    <TextBlock Text="I've been framed!" />
</Border>

Upvotes: 3

Related Questions