Files
Speckle.Material.Avalonia/Material.Dialog/Views/AlertDialog.axaml
T

23 lines
1.2 KiB
XML

<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:viewModels="clr-namespace:Material.Dialog.ViewModels"
xmlns:controls="clr-namespace:Material.Dialog.Controls"
x:Class="Material.Dialog.Views.AlertDialog"
x:DataType="viewModels:AlertDialogViewModel">
<Window.Styles>
<StyleInclude Source="avares://Material.Dialog/Styles/DialogWindow.axaml"/>
<StyleInclude Source="avares://Material.Dialog/Styles/StyleInclude.axaml"/>
<StyleInclude Source="avares://Material.Dialog/Icons/DialogIconStyle.axaml" />
</Window.Styles>
<controls:EmbeddedDialogControl>
<ScrollViewer Name="PART_ScrollView">
<StackPanel Name="PART_ContentPanel">
<TextBlock Name="PART_SupportingText"
Classes="Body1"
IsVisible="{CompiledBinding !!ContentMessage.Length}"
Text="{CompiledBinding ContentMessage, FallbackValue='DIALOG_SUPPORTING_TEXT'}"/>
</StackPanel>
</ScrollViewer>
</controls:EmbeddedDialogControl>
</Window>