C
C#2y ago
[Mija]

❔ Why styles isn't work when reading from file ?

Hi! why that construction isn't work ?
2 Replies
[Mija]
[Mija]OP2y ago
<Styles xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style Selector="Label.h1">
<Setter Property="FontSize" Value="24"></Setter>
<Setter Property="FontWeight" Value="Bold"></Setter>
<Setter Property="Foreground" Value="#444444"></Setter>
</Style>
</Styles>
<Styles xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style Selector="Label.h1">
<Setter Property="FontSize" Value="24"></Setter>
<Setter Property="FontWeight" Value="Bold"></Setter>
<Setter Property="Foreground" Value="#444444"></Setter>
</Style>
</Styles>
this belongs to file myUIStyles.axaml
<Window.Styles>
<StyleInclude Source="myStyles/myUIStyles.axaml"></StyleInclude>
</Window.Styles>
<Window.Styles>
<StyleInclude Source="myStyles/myUIStyles.axaml"></StyleInclude>
</Window.Styles>
that is Include
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server