Skip to content

Instantly share code, notes, and snippets.

@sujinlee
Last active December 25, 2015 15:59
Show Gist options
  • Save sujinlee/7002962 to your computer and use it in GitHub Desktop.
Save sujinlee/7002962 to your computer and use it in GitHub Desktop.
<HTabControl Grid.Row="1" ItemsSource="{Binding Path=OutNursingPartStatementFolderList}" SelectedItem="{Binding Path=SelectedNursingPartFolder}"
SelectedValuePath="NRST_FLDR_CTG_CD" DisplayMemberPath="FLDR_NM" ItemContainerStyle="{StaticResource treeItemStyle}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="SelectionChanged">
<i:InvokeCommandAction Command="{Binding Path=SelectionFolderChangedCommand}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</HTabControl>
-----------------------------------------------cs
public ICommand SelectionFolderChangedCommand
{
get
{
if (selectionFolderChangedCommand == null)
selectionFolderChangedCommand = new RelayCommand(p => this.selectionFolder());
return selectionFolderChangedCommand;
}
}
private void selectionFolder()
{
}
<HTextBox x:Name="txtSearch" Margin="5,0,0,0" Text="{Binding Path=InputWord, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center" PreviewKeyDown="txtSearch_PreviewKeyDown">
<HTextBox.InputBindings>
<KeyBinding Key="Enter" Command="{Binding Path=SearchNursingStatementCommand}" CommandParameter="{Binding ElementName=dgrdSearch}" />
</HTextBox.InputBindings>
</HTextBox>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment