33 xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
44 xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
55 xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
6- xmlns : local =" clr-namespace:SmartImage.UI" xmlns : results =" clr-namespace:SmartImage.Lib.Results;assembly=SmartImage.Lib" d : DataContext =" {d:DesignInstance Type=results:SearchResult}"
6+ xmlns : local =" clr-namespace:SmartImage.UI"
7+ xmlns : results =" clr-namespace:SmartImage.Lib.Results;assembly=SmartImage.Lib"
8+ xmlns : ds =" clr-namespace:SmartImage.Lib;assembly=SmartImage.Lib"
79 mc : Ignorable =" d"
810 Title =" MainWindow" Height =" 450" Width =" 800" >
11+ <Window .Resources>
12+ <ObjectDataProvider x : Key =" Lv_SrcResults" ObjectType =" {x:Type results:SearchResult}" />
13+ </Window .Resources>
14+
915 <Grid >
10- <TextBox x : Name =" Tb_Input" HorizontalAlignment =" Left" Margin =" 10,34,0,0"
16+ <TextBox x : Name =" Tb_Input" HorizontalAlignment =" Left" Margin =" 10,34,0,0"
1117 TextWrapping =" Wrap" VerticalAlignment =" Top" Width =" 300" Height =" 20" TextChanged =" Tb_Input_TextChanged"
12- AllowDrop =" True" Drop =" Tb_Input_OnDrop" PreviewDrop =" Tb_Input_Drop" PreviewDragOver =" Tb_Input_DragOver" />
13- <Button x : Name =" Btn_Run" Content =" Run" HorizontalAlignment =" Left" Margin =" 315,34,0,0" VerticalAlignment =" Top" Width =" 40" Click =" Btn_Run_Click" />
14- <Button x : Name =" Btn_Browse" Content =" Browse" HorizontalAlignment =" Left" Margin =" 360,34,0,0" VerticalAlignment =" Top" Width =" 50" />
15- <ListBox x : Name =" Lb_Res" Height =" NaN" Margin =" 0,256,0,0" ItemsSource =" {Binding Results}" >
16- <ListBox .ItemTemplate>
17- <DataTemplate >
18- <StackPanel >
19- <TextBlock Text =" {Binding Path=Url}" />
20- <TextBlock Text =" {Binding Path=Description}" />
21- <TextBlock Text =" {Binding Path=Source}" />
22- </StackPanel >
23- </DataTemplate >
24- </ListBox .ItemTemplate>
25- </ListBox >
26- <Image x : Name =" Img_Query" HorizontalAlignment =" Right" Height =" 120" Margin =" 0,10,10,0" VerticalAlignment =" Top" Width =" 200" />
27- <Button x : Name =" Btn_Clear" Content =" Clear" HorizontalAlignment =" Left" Margin =" 315,59,0,0" VerticalAlignment =" Top" Width =" 40" Click =" Btn_Clear_Click" />
28- <Label x : Name =" Lbl_Input" Content =" Input" HorizontalAlignment =" Left" Margin =" 10,3,0,0" VerticalAlignment =" Top" FontWeight =" Bold" />
29- <ProgressBar x : Name =" Pbr_Input" HorizontalAlignment =" Left" Height =" 10" Margin =" 10,59,0,0" VerticalAlignment =" Top" Width =" 100" />
18+ AllowDrop =" True" Drop =" Tb_Input_OnDrop" PreviewDrop =" Tb_Input_Drop"
19+ PreviewDragOver =" Tb_Input_DragOver" />
20+ <Button x : Name =" Btn_Run" Content =" Run" HorizontalAlignment =" Left" Margin =" 315,34,0,0" VerticalAlignment =" Top"
21+ Width =" 40" Click =" Btn_Run_Click" />
22+ <Button x : Name =" Btn_Browse" Content =" Browse" HorizontalAlignment =" Left" Margin =" 360,34,0,0"
23+ VerticalAlignment =" Top" Width =" 50" />
24+ <Image x : Name =" Img_Query" HorizontalAlignment =" Right" Height =" 120" Margin =" 0,10,10,0" VerticalAlignment =" Top"
25+ Width =" 200" />
26+ <Button x : Name =" Btn_Clear" Content =" Clear" HorizontalAlignment =" Left" Margin =" 315,59,0,0"
27+ VerticalAlignment =" Top" Width =" 40" Click =" Btn_Clear_Click" />
28+ <Label x : Name =" Lbl_Input" Content =" Input" HorizontalAlignment =" Left" Margin =" 10,3,0,0" VerticalAlignment =" Top"
29+ FontWeight =" Bold" />
30+ <ProgressBar x : Name =" Pbr_Input" HorizontalAlignment =" Left" Height =" 10" Margin =" 10,59,0,0"
31+ VerticalAlignment =" Top" Width =" 100" />
32+ <ListView x : Name =" Lv_Results" ItemsSource =" {Binding Source={StaticResource Lv_SrcResults}}" Margin =" 0,298,0,0" >
33+ <ListView .ItemContainerStyle>
34+ <Style TargetType =" ListViewItem" >
35+ <EventSetter Event =" Selected" Handler =" EventSetter_OnHandler" />
36+ </Style >
37+ </ListView .ItemContainerStyle>
38+ <ListView .View>
39+
40+ <GridView AllowsColumnReorder =" true" ColumnHeaderToolTip =" " >
41+
42+ <GridViewColumn DisplayMemberBinding =" {Binding Path=Engine.Name}" Header =" Name" Width =" 100" />
43+
44+ <GridViewColumn DisplayMemberBinding =" {Binding Path=Status}" Header =" Status" Width =" 100" >
45+ <!-- <GridViewColumnHeader>
46+ Last Name
47+ <GridViewColumnHeader.ContextMenu>
48+ <ContextMenu MenuItem.Click="LastNameCM_OnClick" Name="LastNameCM">
49+ <MenuItem Header="Ascending" />
50+ <MenuItem Header="Descending" />
51+ </ContextMenu>
52+ </GridViewColumnHeader.ContextMenu>
53+ </GridViewColumnHeader>-->
54+ </GridViewColumn >
55+
56+ <!--
57+ <GridViewColumn DisplayMemberBinding="{Binding Path=}"
58+ Width="100" />-->
59+ </GridView >
60+
61+ </ListView .View>
62+ </ListView >
63+ <TreeView x : Name =" Tv_Results" Margin =" 0,103,0,141" ItemsSource =" {Binding Source={StaticResource Lv_SrcResults}}" />
3064
3165 </Grid >
3266
33- </Window >
67+ </Window >
0 commit comments