1234567891011121314151617181920 |
- <UserControl x:Class="SAGA.DotNetUtils.WPF.UserControl.SelectPath_Start"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- mc:Ignorable="d" x:Name="Uc"
- d:DesignHeight="25" d:DesignWidth="300">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="{Binding Path=Height, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=UserControl}}"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Button Grid.Column="0" Click="Button_Click">
- <Image Source="{Binding Path=BtnImage, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=UserControl}}"></Image>
- </Button>
- <TextBox Grid.Column="1"
- VerticalContentAlignment="Center"
- Text="{Binding Path=Text,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=UserControl}}"></TextBox>
- </Grid>
- </UserControl>
|