SelectPath_Start.xaml 1.2 KB

1234567891011121314151617181920
  1. <UserControl x:Class="SAGA.DotNetUtils.WPF.UserControl.SelectPath_Start"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. mc:Ignorable="d" x:Name="Uc"
  7. d:DesignHeight="25" d:DesignWidth="300">
  8. <Grid>
  9. <Grid.ColumnDefinitions>
  10. <ColumnDefinition Width="{Binding Path=Height, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=UserControl}}"/>
  11. <ColumnDefinition Width="*"/>
  12. </Grid.ColumnDefinitions>
  13. <Button Grid.Column="0" Click="Button_Click">
  14. <Image Source="{Binding Path=BtnImage, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=UserControl}}"></Image>
  15. </Button>
  16. <TextBox Grid.Column="1"
  17. VerticalContentAlignment="Center"
  18. Text="{Binding Path=Text,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=UserControl}}"></TextBox>
  19. </Grid>
  20. </UserControl>