mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-04-22 12:56:29 +02:00
Version 3.0.338
This commit is contained in:
parent
573fe77e12
commit
0468955d49
751 changed files with 62747 additions and 60672 deletions
|
@ -3,12 +3,12 @@ using Xamarin.Forms.Xaml;
|
|||
|
||||
namespace TINK.View.MiniSurvey.Question
|
||||
{
|
||||
[XamlCompilation(XamlCompilationOptions.Compile)]
|
||||
public partial class CheckOneViewCell : ViewCell
|
||||
{
|
||||
public CheckOneViewCell()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
[XamlCompilation(XamlCompilationOptions.Compile)]
|
||||
public partial class CheckOneViewCell : ViewCell
|
||||
{
|
||||
public CheckOneViewCell()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -4,12 +4,12 @@ using Xamarin.Forms.Xaml;
|
|||
|
||||
namespace TINK.View.MiniSurvey.Question
|
||||
{
|
||||
[XamlCompilation(XamlCompilationOptions.Compile)]
|
||||
public partial class FreeTextViewCell : ViewCell
|
||||
{
|
||||
public FreeTextViewCell()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
[XamlCompilation(XamlCompilationOptions.Compile)]
|
||||
public partial class FreeTextViewCell : ViewCell
|
||||
{
|
||||
public FreeTextViewCell()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -2,25 +2,25 @@
|
|||
|
||||
namespace TINK.View.MiniSurvey.Question
|
||||
{
|
||||
/// <summary>
|
||||
/// Selects different templates for different question types.
|
||||
/// </summary>
|
||||
public class QuestionViewCellTemplateSelector : DataTemplateSelector
|
||||
{
|
||||
DataTemplate checkOneViewCell;
|
||||
DataTemplate freeTextViewCell;
|
||||
/// <summary>
|
||||
/// Selects different templates for different question types.
|
||||
/// </summary>
|
||||
public class QuestionViewCellTemplateSelector : DataTemplateSelector
|
||||
{
|
||||
DataTemplate checkOneViewCell;
|
||||
DataTemplate freeTextViewCell;
|
||||
|
||||
public QuestionViewCellTemplateSelector()
|
||||
{
|
||||
checkOneViewCell = new DataTemplate(typeof(CheckOneViewCell));
|
||||
freeTextViewCell = new DataTemplate(typeof(FreeTextViewCell));
|
||||
}
|
||||
public QuestionViewCellTemplateSelector()
|
||||
{
|
||||
checkOneViewCell = new DataTemplate(typeof(CheckOneViewCell));
|
||||
freeTextViewCell = new DataTemplate(typeof(FreeTextViewCell));
|
||||
}
|
||||
|
||||
protected override DataTemplate OnSelectTemplate(object item, BindableObject container)
|
||||
{
|
||||
return item is ViewModel.MiniSurvey.Question.FreeTextViewModel
|
||||
? freeTextViewCell
|
||||
: checkOneViewCell;
|
||||
}
|
||||
}
|
||||
protected override DataTemplate OnSelectTemplate(object item, BindableObject container)
|
||||
{
|
||||
return item is ViewModel.MiniSurvey.Question.FreeTextViewModel
|
||||
? freeTextViewCell
|
||||
: checkOneViewCell;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue