32 строки
1.3 KiB
XML
32 строки
1.3 KiB
XML
<UserControl
|
|
x:Class="syncfusion.propertygriddemos.wpf.ImageBrowser"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
|
xmlns:local="clr-namespace:syncfusion.propertygriddemos.wpf"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
x:Name="Root"
|
|
mc:Ignorable="d">
|
|
<UserControl.DataContext>
|
|
<local:CustomEditorViewModel />
|
|
</UserControl.DataContext>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBox x:Name="uri" Text="{Binding ElementName=Root, Path=ImageSource}" />
|
|
<Button
|
|
Grid.Column="1"
|
|
Padding="3">
|
|
...
|
|
<i:Interaction.Triggers>
|
|
<i:EventTrigger EventName="Click">
|
|
<i:InvokeCommandAction Command="{Binding ButtonClickCommand}" CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=local:ImageBrowser}}" />
|
|
</i:EventTrigger>
|
|
</i:Interaction.Triggers>
|
|
</Button>
|
|
</Grid>
|
|
</UserControl>
|