2016-12-02 6 views
0

XamarinVisual Studio 2015に使用してクロスプラットフォームアプリケーションを開発しています。私はXLabs.Forms v2.3.0- pre 05を使用しており、radio buttonscheckboxesで問題が発生しています。iOSとUWPでRadioButtonsとCheckBoxが正しく動作しない

現在、checkboxesUWPで正常に機能しますが、iOSには表示されません。 iOSテキストのみに以下

ご覧ください写真を表示しますながらUWP

ラジオボタンは、まったく動作しません。

これは、チェックボックスのために私のコードです:

<ListView x:Name="lv_ReportQuestions"> 
      <ListView.ItemTemplate> 
      <DataTemplate> 
       <ViewCell> 
       <StackLayout 
        Orientation="Vertical" 
       > 
        <StackLayout Orientation="Horizontal" HorizontalOptions="FillAndExpand"> 

        <StackLayout WidthRequest="{Binding DisplayWidth}"> 
         <Label HorizontalOptions="FillAndExpand" Text="{Binding ItemName}" VerticalOptions="Center" LineBreakMode="WordWrap"/> 
        </StackLayout> 

        <controls:CheckBox DefaultText="" WidthRequest="40" IsEnabled="false" IsVisible="true" Checked="true" HorizontalOptions="EndAndExpand"/> 

        </StackLayout> 
        <Label HorizontalOptions="FillAndExpand" Text="{Binding SubText}" VerticalOptions="Center"/> 
       </StackLayout> 
      </ViewCell> 
      </DataTemplate> 
     </ListView.ItemTemplate> 
</ListView> 

これは、ラジオボタンの私のコードです:

<Label Text="Radio Buttons"/> 

    <Frame 
     HorizontalOptions="FillAndExpand" 
     VerticalOptions="CenterAndExpand" 
     OutlineColor="#000000" 
     > 
     <controls:BindableRadioGroup x:Name="ansPicker" 
            IsVisible="true"/> 
    </Frame> 

ansPicker.ItemsSource = new[] 
     { 
      "Red", 
      "Blue", 
      "Green", 
      "Yellow", 
      "Orange" 
     }; 

私は他の可能な修正に従うことを試してみましたが、何も私のために働いていません。

UWPiOS

答えて

0

Xamarin.Forms任意のチェックボックスコントロールまたはラジオボタンを定義していません。あなたは、あなたが期待することを行うべきスイッチを使用することができます。または使用ライブラリthis

関連する問題