2016-10-12 5 views
-1

IOSアプリケーションをXamarin.Formsを使用して開発中です。そのアプリケーションではRg.Plugins.Popupを使用してポップアップを表示しています。私はpopup windowborder radius(Increase)を変更しようとしましたが、私はそれを達成できませんでした。私のアプリでこの変更を達成するのを手伝ってください。XamarinはRg.Plugins.Popupを使用してポップアップボーダー半径を設定します

予想される画面

enter image description here

実際の画面

enter image description here

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> 
+2

https://github.com/rotorgames/Rg.Plugins.PopupのREADMEによると、ポップアップページに合わせて調整できるボーダー半径プロパティはありません。ライブラリの作者に連絡して、追加することを提案するか、ソースをダウンロードして自分で変更して境界線の設定を追加してください。 – jgoldberger

+0

@ggoldbergerに感謝の意を表します。 'border radius'の調整とともにポップアップを表示するための他の'プラグイン 'がありますか? – Jamal

+0

githubからソースコードをダウンロードして、自分で追加することができます。 –

答えて

1

私はこのプラグインの作成者です。プラグインはボーダー半径をサポートしていません。プラグインの義務ではありません。プラグインはポップアップページを表示する必要があります。ビューとスタイルを自分で作成する必要があります。ありがとうございました。

+0

このプラグインの使い方に関するドキュメントはありますか? –

+0

@Gagan_iOSはい。あなたはgithubページでドキュメントを見つけることができます – user1658602

関連する問題