-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c47a7f5
commit 2cd072b
Showing
11 changed files
with
61 additions
and
175 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
73 changes: 0 additions & 73 deletions
73
Demo/App/Controls/CustomSwitchExamples/DisableSupportedSwitch.xaml
This file was deleted.
Oops, something went wrong.
83 changes: 0 additions & 83 deletions
83
Demo/App/Controls/CustomSwitchExamples/DisableSupportedSwitch.xaml.cs
This file was deleted.
Oops, something went wrong.
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
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,27 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentPage x:Class="App.Pages.IsEnabledTestPage" | ||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:controls="clr-namespace:App.Controls;assembly=App" | ||
xmlns:examples="clr-namespace:App.Controls.CustomSwitchExamples;assembly=App" | ||
Title="IsEnabled Test Page"> | ||
<ScrollView Padding="{StaticResource PagePadding}"> | ||
<VerticalStackLayout BackgroundColor="Transparent" MinimumHeightRequest="1000"> | ||
<controls:BackButton /> | ||
|
||
<Label Style="{StaticResource sectionHeading}" Text="IsEnabled false on load" /> | ||
<examples:IosSwitch IsEnabled="False" IsToggled="False" /> | ||
<examples:IosSwitch IsEnabled="False" IsToggled="True" /> | ||
|
||
<Label Style="{StaticResource sectionHeading}" Text="Dynamit IsEnabled" /> | ||
<HorizontalStackLayout> | ||
<Label Style="{StaticResource sectionHeading}" Text="Toggle IsEnabled: " /> | ||
<examples:AndroidSwitch x:Name="DynamicToggle" /> | ||
</HorizontalStackLayout> | ||
|
||
<examples:IosSwitch IsEnabled="{Binding Source={x:Reference DynamicToggle}, Path=IsToggled}" IsToggled="False" /> | ||
<examples:IosSwitch IsEnabled="{Binding Source={x:Reference DynamicToggle}, Path=IsToggled}" IsToggled="True" /> | ||
|
||
</VerticalStackLayout> | ||
</ScrollView> | ||
</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 App.Pages; | ||
|
||
public partial class IsEnabledTestPage : ContentPage | ||
{ | ||
public IsEnabledTestPage() | ||
{ | ||
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