-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from muak/survey/HeaderView
iOS Header/FooterView fix
- Loading branch information
Showing
9 changed files
with
94 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System; | ||
using Reactive.Bindings; | ||
|
||
namespace Sample.ViewModels; | ||
|
||
public class HeaderSurveyViewModel: BindableBase | ||
{ | ||
public ReactivePropertySlim<bool> IsShow { get; } = new(); | ||
|
||
public HeaderSurveyViewModel() | ||
{ | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentPage | ||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:sv="clr-namespace:AiForms.Settings;assembly=SettingsView" | ||
xmlns:vm="clr-namespace:Sample.ViewModels" | ||
x:Class="Sample.Views.HeaderSurveyPage" | ||
Title="HeaderSurveyPage" | ||
x:DataType="vm:HeaderSurveyViewModel"> | ||
|
||
<sv:SettingsView> | ||
|
||
<sv:Section> | ||
<sv:Section.HeaderView> | ||
<CheckBox IsChecked="{Binding IsShow.Value}" /> | ||
</sv:Section.HeaderView> | ||
</sv:Section> | ||
|
||
<sv:Section IsVisible="{Binding IsShow.Value}"> | ||
<sv:Section.HeaderView> | ||
<HorizontalStackLayout> | ||
<BoxView WidthRequest="30" HeightRequest="30" Color="Bisque" /> | ||
<Label Text="Header" /> | ||
</HorizontalStackLayout> | ||
</sv:Section.HeaderView> | ||
<sv:Section.FooterView> | ||
<Label Text="Footer" /> | ||
</sv:Section.FooterView> | ||
<sv:LabelCell Title="Hoge" ValueText="Abc" /> | ||
<sv:EntryCell Title="Input" /> | ||
</sv:Section> | ||
|
||
<sv:Section IsVisible="{Binding IsShow.Value}"> | ||
<sv:Section.HeaderView> | ||
<HorizontalStackLayout> | ||
<BoxView WidthRequest="30" HeightRequest="30" Color="Red" /> | ||
<Label Text="Header" /> | ||
</HorizontalStackLayout> | ||
</sv:Section.HeaderView> | ||
<sv:Section.FooterView> | ||
<Label Text="Footer" /> | ||
</sv:Section.FooterView> | ||
<sv:LabelCell Title="Fuga" ValueText="Xyz" /> | ||
<sv:EntryCell Title="Input" /> | ||
</sv:Section> | ||
|
||
</sv:SettingsView> | ||
|
||
</ContentPage> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Sample.Views; | ||
|
||
public partial class HeaderSurveyPage : ContentPage | ||
{ | ||
public HeaderSurveyPage() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters