Multiple contents in ControlTemplate #12185
-
I am trying to develop a Custom Control meant to arrange a few views in a certain way (center, left, right, top and bottom). ` namespace MauiApp1
} It compiles fine and the app starts, but cannot load this XAML: `
My problem is that the exception raised has little information: Catastrophic failure (0x8000FFFF (E_UNEXPECTED)) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I feelso dumb: this solved the problem.
|
Beta Was this translation helpful? Give feedback.
I feelso dumb: this solved the problem.
<Border Grid.Column="1" Grid.Row="0" Content="{TemplateBinding Top}"/> <Border Grid.Column="1" Grid.Row="2" Content="{TemplateBinding Bottom}"/> <Border Grid.Column="0" Grid.Row="1" Content="{TemplateBinding Left}"/> <Border Grid.Column="2" Grid.Row="1" Content="{TemplateBinding Right}"/> <ContentPresenter Grid.Column="1" Grid.Row="1" Content="{TemplateBinding Content}"/>