|
<UserControl x:Class="Catel.Windows.Controls.BrowseForFile"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Input="clr-namespace:Catel.Windows.Input;assembly=Catel.Windows">
<!-- Content -->
<Grid DataContext="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}">
<!-- Column definitions -->
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<!-- Actual content -->
<TextBox Grid.Column="0" Text="{Binding FileName}"
Validation.ValidationAdornerSiteFor="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"/>
<Button Grid.Column="1" Content="..." ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Command.Text}"
Command="Input:BrowseForFileCommands.Browse" />
</Grid>
</UserControl>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.