Replies: 4 comments
-
|
希望drawer的Zindex高于dialog的? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
<UserControl
x:Class="Ursa.Demo.Pages.DrawerDemo"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:u="https://irihi.tech/ursa"
xmlns:vm="clr-namespace:Ursa.Demo.ViewModels;assembly=Ursa.Demo"
xmlns:common="clr-namespace:Ursa.Common;assembly=Ursa"
d:DesignHeight="450"
d:DesignWidth="800"
x:CompileBindings="True"
x:DataType="vm:DrawerDemoViewModel"
mc:Ignorable="d">
<Grid ColumnDefinitions="Auto, *">
<u:Form Width="300" Grid.Column="0" LabelPosition="Top">
<TextBox u:FormItem.Label="Title" Text="{Binding Title}"/>
<u:EnumSelector
u:FormItem.Label="Position"
EnumType="common:Position"
Value="{Binding Position}"/>
<u:EnumSelector
u:FormItem.Label="Buttons"
EnumType="u:DialogButton"
Value="{Binding Buttons}"/>
<CheckBox u:FormItem.Label="Can LightDismiss" IsChecked="{Binding CanLightDismiss}"/>
<CheckBox u:FormItem.Label="Is Modal" IsChecked="{Binding IsModal}"/>
<CheckBox u:FormItem.Label="Is Close Button Visible" IsChecked="{Binding IsCloseButtonVisible}" IsThreeState="True"/>
<CheckBox u:FormItem.Label="Custom Dialog" IsChecked="{Binding Custom}"/>
<CheckBox u:FormItem.Label="CanResize" IsChecked="{Binding CanResize}" />
<ToggleSwitch
u:FormItem.Label="Global/Local OverlayHost"
IsChecked="{Binding IsLocal}"
OffContent="Global"
OnContent="Local" />
<Button
HorizontalAlignment="Left"
u:FormItem.NoLabel="True"
Command="{Binding ShowDialogCommand}"
Content="Show" />
</u:Form>
<Grid Grid.Column="1" ClipToBounds="True">
<Border
BorderBrush="{DynamicResource SemiGrey1}"
Background="{DynamicResource SemiColorBackground1}"
BorderThickness="1"
ClipToBounds="True"
CornerRadius="20">
<u:OverlayDialogHost HostId="LocalHost"/>
</Border>
</Grid>
<Grid Grid.Column="1" ClipToBounds="True">
<WrapPanel VerticalAlignment="Center">
<TextBlock Text="背景测试内容"/>
<TextBlock Text="背景测试内容"/>
<TextBlock Text="背景测试内容"/>
<TextBlock Text="背景测试内容"/>
<TextBlock Text="背景测试内容"/>
</WrapPanel>
</Grid>
</Grid>
</UserControl>
希望弹出的Drawer,可以盖住背景测试内容,不重叠显示
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2025年4月6日(星期天) 下午4:12
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [irihitech/Ursa.Avalonia] Drawer在使用Local OverlayHost 时,Drawer内容和HostId的内容会重叠显示 (Issue #639)
希望drawer的Zindex高于dialog的?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
WCKYWCKF left a comment (irihitech/Ursa.Avalonia#639)
希望drawer的Zindex高于dialog的?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
host内部请不要放置任何其他的内容,他应该覆盖在其他内容上 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
好的,已经解决,感谢感谢
…------------------ 原始邮件 ------------------
发件人: "Dong ***@***.***>;
发送时间: 2025年4月6日(星期天) 下午4:35
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [irihitech/Ursa.Avalonia] Drawer在使用Local OverlayHost 时,Drawer内容和HostId的内容会重叠显示 (Issue #639)
host内部请不要放置任何其他的内容,他应该覆盖在其他内容上
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
rabbitism left a comment (irihitech/Ursa.Avalonia#639)
host内部请不要放置任何其他的内容,他应该覆盖在其他内容上
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Drawer在使用Local OverlayHost 时(<u:OverlayDialogHost HostId="LocalHost"/>),如果HostId区域原本就有显示内容,就会和Drawer的内容重叠在一起,是否可以完全遮盖住OverlayDialogHost区域的内容显示?
Beta Was this translation helpful? Give feedback.
All reactions