Xaml Xamarin表单使用Rg.Plugins.popup设置弹出边界半径
我正在使用Xaml Xamarin表单使用Rg.Plugins.popup设置弹出边界半径,xaml,xamarin,popup,nuget,xamarin.forms,Xaml,Xamarin,Popup,Nuget,Xamarin.forms,我正在使用Xamarin.Forms开发一个IOS应用程序,在该应用程序中,我使用显示一个弹出窗口。我已尝试更改弹出窗口的边框半径(增加),但无法实现。请任何人帮助我在我的应用程序中完成此更改 预期屏幕 实际屏幕 Popup.xaml <?xml version="1.0" encoding="utf-8" ?> <pages:PopupPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http:
Xamarin.Forms
开发一个IOS
应用程序,在该应用程序中,我使用显示一个弹出窗口。我已尝试更改弹出窗口的边框半径(增加)
,但无法实现。请任何人帮助我在我的应用程序中完成此更改
预期屏幕
实际屏幕
Popup.xaml
<?xml version="1.0" encoding="utf-8" ?>
<pages:PopupPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:pages="clr-namespace:Rg.Plugins.Popup.Pages;assembly=Rg.Plugins.Popup"
x:Class="TestApp.Popup"
xmlns:i18n="clr-namespace:TestApp;assembly=TestApp"
xmlns:local="clr-namespace:TestApp">
<StackLayout VerticalOptions="Center"
HorizontalOptions="FillAndExpand"
Padding="20, 10, 20, 20"
Opacity="0.9">
<Frame BackgroundColor="White"
>
<StackLayout Padding="0, 10, 0, 40" >
<RelativeLayout>
<Label x:Name="congratsText"
Text=""
TextColor="#396BA2"
FontAttributes="Bold"
FontSize="20"
FontFamily="MYRIADPRO-BOLD"
HorizontalTextAlignment="Center"
RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent,Property=Width, Factor=1}"
RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Y, Factor=1,Constant=0}"
local:CustomFontEffect.FontFileName="MYRIADPRO-BOLD"/>
<Label x:Name="callText"
TextColor="#396BA2"
FontFamily="MYRIADPRO-REGULAR"
FontSize="18"
Margin="10"
HorizontalTextAlignment="Center"
RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent,Property=Width, Factor=1}"
RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToView, ElementName=foundText, Property=Y, Factor=1,Constant=60}"
local:CustomFontEffect.FontFileName="MYRIADPRO-REGULAR" >
<Label.FormattedText>
<FormattedString>
<FormattedString.Spans>
<Span Text="Please call " />
<Span Text="0987654321" FontAttributes="Bold" />
<Span Text="for any help." />
</FormattedString.Spans>
</FormattedString>
</Label.FormattedText>
</Label>
<Button x:Name="OkButton"
BackgroundColor="#9DC96F"
FontFamily="MYRIADPRO-BOLD"
FontAttributes="Bold"
FontSize="20"
RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
RelativeLayout.HeightConstraint="40"
Text="Ok"
TextColor="White"
Clicked="ok"
RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ResendButton, Property=Y, Factor=1,Constant=75}"
local:CustomFontEffect.FontFileName="MYRIADPRO-BOLD"/>
<Button x:Name="LoginButton"
BorderColor="#9DC96F"
BackgroundColor="White"
BorderWidth="2"
FontFamily="MYRIADPRO-BOLD"
FontAttributes="Bold"
FontSize="20"
RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
RelativeLayout.HeightConstraint="40"
Text="Cancel"
TextColor="#9DC96F"
Clicked="Cancel"
RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToView, ElementName=OkButton, Property=Y, Factor=1,Constant=55}"
local:CustomFontEffect.FontFileName="MYRIADPRO-BOLD"/>
</RelativeLayout>
</StackLayout>
</Frame>
</StackLayout>
</pages:PopupPage>
我是这个插件的创建者。插件不支持边界半径。这不是插件的职责。插件必须显示弹出页面和唯一的。您必须自己创建视图和样式。谢谢。我是这个插件的创建者。插件不支持边界半径。这不是插件的职责。插件必须显示弹出页面和唯一的。您必须自己创建视图和样式。谢谢。我通过将外部堆栈布局的背景色设置为透明,成功地实现了这一点。然后在内部框架上设置CornerRadius
属性
通过将外部StackLayout
的背景色设置为透明,我成功地实现了这一点。然后在内部框架上设置CornerRadius
属性将替换
用
替换
根据自述文件使用
,弹出页面没有可调整的边框半径属性。请联系库的作者并建议添加,或下载源代码并自行修改以添加边界半径设置。感谢@jgoldberger的建议。是否有任何其他插件
可用于显示弹出窗口以及调整边框半径
?您可以从github下载源代码并自行添加。根据自述文件,弹出页面没有可调整的边框半径属性。请联系库的作者并建议添加,或下载源代码并自行修改以添加边界半径设置。感谢@jgoldberger的建议。是否有其他插件
可用于显示弹出窗口以及调整边界半径
?您可以从github下载源代码并自己添加。您是否有任何关于如何使用此插件的文档。@Gagan\u iOS是的。您可以在github页面上找到文档。您是否有关于如何使用此插件的文档。@Gagan_iOS是的。您可以在github页面上找到文档