feat: add scrollviewer to dialog demo.

This commit is contained in:
Dong Bin
2025-02-27 16:43:59 +08:00
parent 50ac16ff23
commit c09fc6860d

View File

@@ -12,6 +12,7 @@
x:DataType="vm:DialogDemoViewModel"
mc:Ignorable="d">
<Grid ColumnDefinitions="Auto, *">
<ScrollViewer>
<TabControl Grid.Column="0" TabStripPlacement="Left">
<TabItem Header="Default Window Dialog">
<u:Form
@@ -56,10 +57,10 @@
<StackPanel Orientation="Horizontal">
<TextBlock Text="Style Class" />
<PathIcon
Theme="{StaticResource InnerPathIcon}"
VerticalAlignment="Center"
TextElement.FontWeight="Normal"
Data="{DynamicResource SemiIconHelpCircle}"
TextElement.FontWeight="Normal"
Theme="{StaticResource InnerPathIcon}"
ToolTip.Tip="Pass a Style Class to the created Dialog. In this example, if you set StyleClass as 'Custom', You will get Special Style for OK Button. These styles usually are defined in the root of your App/Window" />
</StackPanel>
</u:FormItem.Label>
@@ -147,10 +148,10 @@
<StackPanel Orientation="Horizontal">
<TextBlock Text="Style Class" />
<PathIcon
Theme="{StaticResource InnerPathIcon}"
VerticalAlignment="Center"
TextElement.FontWeight="Normal"
Data="{DynamicResource SemiIconHelpCircle}"
TextElement.FontWeight="Normal"
Theme="{StaticResource InnerPathIcon}"
ToolTip.Tip="Pass a Style Class to the created Dialog. In this example, if you set StyleClass as 'Custom', You will get Special Style for OK Button. These styles usually are defined in the root of your App/Window" />
</StackPanel>
</u:FormItem.Label>
@@ -195,10 +196,11 @@
</u:Form>
</TabItem>
</TabControl>
</ScrollViewer>
<Grid Grid.Column="1">
<Border
BorderBrush="{DynamicResource SemiGrey1}"
Background="{DynamicResource SemiColorBackground1}"
BorderBrush="{DynamicResource SemiGrey1}"
BorderThickness="1"
ClipToBounds="True"
CornerRadius="12">