티스토리 뷰
728x90
반응형
// Model -----------------------------------
public class SCH_Body
{
public string Dates { get; set; }
public string gosi { get; set; }
public string Schdule { get; set; }
public string ChangeSch { get; set; }
}
// CarouselView Xaml --------------------------------------
<CarouselView.ItemTemplate>
<Grid.RowDefinitions>
<RowDefinition Height="20"/>
<RowDefinition Height="1"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="1"/>
<RowDefinition Height="25"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="70"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Label Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"
Text="{Binding Dates}"
FontAttributes="Bold"
BackgroundColor="Transparent"
FontSize="15" TextColor="DimGray"
HorizontalOptions="Center" HorizontalTextAlignment="Center"
VerticalOptions="Center" />
<Label Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" HeightRequest="1" BackgroundColor="DimGray" />
<Label Grid.Row="2" Grid.Column="0" FontSize="12" FontAttributes="Bold" HorizontalOptions="StartAndExpand"
HorizontalTextAlignment="Center" VerticalOptions="Center" VerticalTextAlignment="Center"
BackgroundColor="LightGray" TextColor="DimGray" Text="교시" HeightRequest="25" WidthRequest="70"/>
<Label x:Name="gosi_Label" Grid.Row="2" Grid.Column="1"
Text="{Binding gosi}"
FontSize="12" TextColor="IndianRed" FontAttributes="Bold"
HorizontalOptions="Start" HorizontalTextAlignment="Start"
VerticalOptions="Center" VerticalTextAlignment="Center"/>
<Label Grid.Row="3" Grid.Column="0" FontSize="12" HorizontalOptions="StartAndExpand" HorizontalTextAlignment="Center"
VerticalOptions="Center" VerticalTextAlignment="Center"
BackgroundColor="LightGray" TextColor="DimGray" Text="스케쥴" HeightRequest="25" WidthRequest="70" />
<Label Grid.Row="3" Grid.Column="1"
Text="{Binding Schdule}"
FontAttributes="Bold"
FontSize="12" TextColor="DimGray"
HorizontalOptions="Start" HorizontalTextAlignment="Start"
VerticalOptions="Center" VerticalTextAlignment="Center" />
<Label Grid.Row="4" Grid.Column="0" FontSize="12" VerticalOptions="Center" VerticalTextAlignment="Center"
HorizontalOptions="StartAndExpand" HorizontalTextAlignment="Center" TextColor="DimGray"
BackgroundColor="LightGray" Text="변경스케쥴" HeightRequest="25" WidthRequest="70"/>
<Entry x:Name="InputSCH" Text="{Binding ChangeSch}" Grid.Row="4" Grid.Column="1" FontSize="12"
Placeholder="변경요청 스케쥴 입력" TextColor="DimGray"
BackgroundColor="Transparent"
WidthRequest="150" HeightRequest="40"
HorizontalOptions="Start" VerticalOptions="Center" />
<Label Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2" HeightRequest="1" BackgroundColor="DimGray" />
<Button Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="2" Text="저장" VerticalOptions="Start" HorizontalOptions="Center" Margin="0,10,0,0" Clicked="Button_Clicked"/>
</Grid>
</StackLayout>
</Frame>
</StackLayout>
</DataTemplate>
</CarouselView.ItemTemplate>
// CS --------------------------------------------
async public void Button_Clicked(System.Object sender, System.EventArgs e)
{
SCH_Body SB = (SCH_Body)CaView.CurrentItem;
Console.WriteLine(SB.ChangeSch); // Entry 입력값.
}
반응형
'Xamarin' 카테고리의 다른 글
2021.03.03 8.9.1651 update Apple SDK 를 찾지 못하는 현상 (0) | 2021.03.04 |
---|---|
Xamarin.Forms Essentials Camera Stream To Byte then Using SkiaSharp Image Size Down (0) | 2021.02.14 |
미친짓을 3주간 했구나. (0) | 2021.01.05 |
DatePicker Format String = 2020-12-29(화) (0) | 2020.12.29 |
Xamarin.Android http 통신 허용 (0) | 2020.12.11 |
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- C# LINQ Left join
- Label Text LineBreak in Xaml
- ClickOnce 인증서 인증기간 변경
- Xamarin Firebase Phone User Add
- ssl_client_socket_impl.cc
- Xamarin.Forms
- WPF Datagrid Cell Value Change
- WPF Excel Export Microsoft.Office.Interop 성능향상(열 기준으로 복사)
- Microcharts
- Embeded 한글Font적용
- Xamarin Firebase Phone Auth
- Xamarin.Ios Firebase Phone SMS OTP Send
- c# Encrypt / Decrypt
- FileStream Add Byte
- Windows IIS FTP 디렉토리 목록 오류
- Xamarin.Ios Firebase Phone User Add
- WPF Textbox
- 연산자 뒤에 피연산자가 없습니다.
- Entry '' has empty native path
- SkiaSharp
- Xamarin.Ios Firebase Phone Auth
- 서버 수준의 URN 필터
- Linux SSH Multi Computer Join
- WPF Scrollviewer in ScrollViwer
- 암호 마스터키
- GetCellContent CheckBox Value
- Xamarin SMS OTP Send
- Xamarin reCAPTCHA
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
글 보관함