-
I'm working on a controls UNO library. (Targets: Windows & Desktop) I'm using this templated control: <ControlTemplate TargetType="local:McKey">
<Border x:Name="PART_Border"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
Width="{TemplateBinding Width}"
Height="{TemplateBinding Height}"
CornerRadius="{TemplateBinding CornerRadius}"
Margin="{TemplateBinding Margin}">
<TextBlock x:Name="PART_Text"
Foreground="{TemplateBinding Foreground}"
FontFamily="{TemplateBinding FontFamily}"
FontSize="{TemplateBinding FontSize}"
HorizontalAlignment="Center"
VerticalAlignment="Center" />
</Border>
</ControlTemplate> Initially it appears cut out, but it changes when you resize the window In the Desktop project, but it remains the same in the Windows project. Even though it seems to have elevation compared to using directly the xaml code in the MainPage. Otherwise, if I use a User Control instead of a templated control it appears correctly. |
Beta Was this translation helpful? Give feedback.
Answered by
mcNets
Jul 15, 2024
Replies: 1 comment
-
Don't worrie, I found another way. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
morning4coffe-dev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Don't worrie, I found another way.