LabVIEW Case Structure
랩뷰에서 지원하는 Case 구조에 대해 알아보자.
이번 시간에는 랩뷰 프로그래밍에서 절대 빠지지 않는 것 중 하나인,
Case 구조에 대해 공부했습니다.
랩뷰를 이용한 프로그래밍의 기초 체력이 될 수 있는 만큼,
랩뷰를 이용한 프로그래밍의 기초 체력이 될 수 있는 만큼,
계속해서 유익한 정보 많이 알려드릴 수 있도록 노력하겠습니당~~!!
감사합니당~

1
2
3
4
|
Sub mySubRoutine()
Sheet1.Range("A1").Value = "Hello, World!"
End Sub
| cs |

MyWPFApp.xaml
|
<Window x:Class="WpfApp1.MyWPFApp"
xmlns:local="clr-namespace:WpfApp1"
mc:Ignorable="d"
Title="MainWindow" Height="180" Width="220"
ResizeMode="CanResizeWithGrip">
<Window.Resources>
</Window.Resources>
<Grid Margin="10">
<TextBlock Margin="10" FontSize="14"> 우리 나라 좋은 나라 대한민국 만세!!</TextBlock>
</Grid>
</Window>
|
MyWPFApp.xaml
|
<Window x:Class="WpfApp1.MyWPFApp"
xmlns:local="clr-namespace:WpfApp1"
mc:Ignorable="d"
Title="MainWindow" Height="180" Width="220"
ResizeMode="CanResizeWithGrip">
<Window.Resources>
</Window.Resources>
<StackPanel>
<TextBlock Margin="10" FontSize="14" Foreground="Red"> 우리 나라 좋은 나라 대한민국 만세!!</TextBlock>
<TextBlock Margin="10" FontSize="14" Foreground="Blue" TextTrimming="CharacterEllipsis"> 우리 나라 좋은 나라 대한민국 만세!!</TextBlock>
<TextBlock Margin="10" FontSize="14" Foreground="Green" TextWrapping="Wrap"> 우리 나라 좋은 나라 대한민국 만세!!</TextBlock>
</StackPanel>
</Window>
|
MyWPFApp.xaml
|
<Window x:Class="WpfApp1.MyWPFApp"
xmlns:local="clr-namespace:WpfApp1"
mc:Ignorable="d"
Title="MainWindow" Height="180" Width="220"
ResizeMode="CanResizeWithGrip">
<Window.Resources>
</Window.Resources>
<StackPanel>
<TextBlock Margin="10" FontSize="14" TextWrapping="Wrap">
우리 나라
<Span FontWeight="Bold" Foreground="Blue">좋은 나라</Span>
<Span Background="Black" Foreground="Yellow"> 대한민국 만세!!</Span>
</TextBlock>
</StackPanel>
</Window>
|
MyWPFApp.xaml
|
<Window x:Class="WpfApp1.MyWPFApp"
xmlns:local="clr-namespace:WpfApp1"
mc:Ignorable="d"
Title="MainWindow" Height="180" Width="220"
ResizeMode="CanResizeWithGrip">
<Window.Resources>
</Window.Resources>
<StackPanel Margin="10">
<Label Content="_ID:" Target="{Binding ElementName=txtID}" />
<TextBox Name="txtID" />
<Label Content="_PW:" Target="{Binding ElementName=txtPW}" />
<TextBox Name="txtPW" />
</StackPanel>
</Window>
|