Changeset - a8c7548cacbb
[Not reviewed]
default
0 2 0
Jason Maltzen - 11 months ago 2021-09-09 23:58:43
jason@hiddenachievement.com
Add a secondary message to the EmbeddedWarningBox
2 files changed with 13 insertions and 4 deletions:
0 comments (0 inline, 0 general)
Views/EmbeddedWarningBox.axaml
Show inline comments
...
 
@@ -14,7 +14,8 @@
 
                        <StackPanel>
 
                            <TextBlock Name="PART_Title" Text="{TemplateBinding Title}"/>
 
                            <TextBlock Name="PART_Message" Text="{TemplateBinding Message}"/>
 
                            <ContentPresenter Content="{TemplateBinding Content}"/>
 
                            <TextBlock Name="PART_Message2" Text="{TemplateBinding Message2}"/>
 
                          <ContentPresenter Content="{TemplateBinding Content}"/>
 
                        </StackPanel>
 
                    </Border>                   
 
                </ControlTemplate>
...
 
@@ -45,7 +46,12 @@
 
        <Style Selector="view|EmbeddedWarningBox /template/  TextBlock#PART_Message">
 
            <Setter Property="TextWrapping" Value="Wrap"/>
 
        </Style>
 
        
 

	
 
        <Style Selector="view|EmbeddedWarningBox /template/  TextBlock#PART_Message2">
 
          <Setter Property="FontSize" Value="12"/>
 
          <Setter Property="TextWrapping" Value="Wrap"/>
 
        </Style>
 

	
 
        <Style Selector="view|EmbeddedWarningBox Button">
 
            <Setter Property="Padding" Value="5"/>
 
            <Setter Property="Background" Value="#5E443F"/>
Views/EmbeddedWarningBox.axaml.cs
Show inline comments
...
 
@@ -13,8 +13,11 @@ namespace DesertPaintCodex.Views
 
        public static readonly StyledProperty<string> MessageProperty =
 
            AvaloniaProperty.Register<EmbeddedWarningBox, string>(nameof(Message));
 
        public string Message { get => GetValue(MessageProperty); set => SetValue(MessageProperty, value); }
 
        
 
        
 
        public static readonly StyledProperty<string> Message2Property =
 
            AvaloniaProperty.Register<EmbeddedWarningBox, string>(nameof(Message2));
 
        public string Message2 { get => GetValue(Message2Property); set => SetValue(Message2Property, value); }
 

	
 

	
 
        public EmbeddedWarningBox()
 
        {
 
            InitializeComponent();
0 comments (0 inline, 0 general)