<syncfusion:SfButton x:Name="transparentButton" HorizontalOptions="Start" VerticalOptions="Start" FontSize="18" BorderWidth="1" BorderColor="Gray" CornerRadius="0" IsCheckable="true" WidthRequest="70" HeightRequest="40" Text="OFF" BackgroundColor="Transparent" TextColor="Black" Clicked="FontButton_Clicked"> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="CommonStates"> <VisualState x:Name="Checked" > <VisualState.Setters> <Setter Property="Text" Value="ON"/> <Setter Property="BackgroundColor" Value="White" /> </VisualState.Setters> </VisualState> <VisualState x:Name="Unchecked"> <VisualState.Setters> <Setter Property="Text" Value="OFF" /> <Setter Property="BackgroundColor" Value="Red" /> </VisualState.Setters> </VisualState> </VisualStateGroup> </VisualStateManager.VisualStateGroups> </syncfusion:SfButton> |
<Color x:Key="GridBorderColor">#ffffff</Color>
<Style TargetType="Grid">
<Setter Property="Padding" Value="1" />
<Setter Property="BackgroundColor" Value="{StaticResource GridBorderColor}" />
<Setter Property="ColumnSpacing" Value="1" />
<Setter Property="RowSpacing" Value="1" />
</Style> |
<Style TargetType="local:CustomGrid">
<Setter Property="Padding" Value="1" />
<Setter Property="BackgroundColor" Value="{StaticResource GridBorderColor}" />
<Setter Property="ColumnSpacing" Value="1" />
<Setter Property="RowSpacing" Value="1" />
</Style> |
<fact:BasePage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:fact="clr-namespace:FactPDA.Views;assembly=FactPDA"
xmlns:factv="clr-namespace:FactPDA.Views"
xmlns:local="clr-namespace:FactPDA"
xmlns:syncfusion="clr-namespace:Syncfusion.XForms.Buttons;assembly=Syncfusion.Buttons.XForms"
x:Class="FactPDA.Views.MB020110Page"
Title="Sta선택">
<ScrollView>
<local:CustomGrid>
<local:CustomGrid.RowDefinitions>
<RowDefinition Height="150"/>
<RowDefinition Height="*"/>
</local:CustomGrid.RowDefinitions>
<local:CustomGrid.ColumnDefinitions>
</local:CustomGrid.ColumnDefinitions>
</local:CustomGrid>
</ScrollView>
</fact:BasePage> |
class CustomGrid : Grid { } |