Browse Source

Change from ListView to ListBox in AddServiceReferenceDialog.xaml and AdvancedServiceDialog.xaml

pull/23/head
PeterForstmeier 14 years ago
parent
commit
cee7c8d18c
  1. 17
      src/Main/Base/Project/Src/Gui/Dialogs/ReferenceDialog/ServiceReference/AddServiceReferenceDialog.xaml
  2. 21
      src/Main/Base/Project/Src/Gui/Dialogs/ReferenceDialog/ServiceReference/AdvancedServiceDialog.xaml

17
src/Main/Base/Project/Src/Gui/Dialogs/ReferenceDialog/ServiceReference/AddServiceReferenceDialog.xaml

@ -112,7 +112,20 @@ @@ -112,7 +112,20 @@
Grid.Row="1"
Grid.Column="0"
Width="2"/>
<ListBox Grid.Column="1" Grid.Row="1" Margin="4"
ItemsSource="{Binding Path=TwoValues}">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Image Width="16" Height="16" Source="{Binding Image}"/>
<TextBlock Text="{Binding Description}"/>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<!--
<ListView
Grid.Column="1" Grid.Row="1" Margin="4"
ItemsSource="{Binding Path=TwoValues}">
@ -130,7 +143,7 @@ @@ -130,7 +143,7 @@
</GridViewColumn>
</GridView>
</ListView.View>
</ListView>
</ListView>-->
</Grid>
<Border Grid.Row="5" Grid.ColumnSpan="3" Margin="4,0,4,0" BorderThickness="2" BorderBrush="LightGray">

21
src/Main/Base/Project/Src/Gui/Dialogs/ReferenceDialog/ServiceReference/AdvancedServiceDialog.xaml

@ -127,6 +127,25 @@ @@ -127,6 +127,25 @@
Content="Reuse types in specified referenced assemblies">
</RadioButton>
<ListBox Grid.Row="6" Grid.ColumnSpan="2" Width="400"
Margin="80,0,0,0"
SelectionMode="Multiple"
ItemsSource="{Binding AssembliesToReference}"
IsEnabled="{Binding ListViewEnable}">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<CheckBox IsChecked="{Binding ItemChecked, Mode=TwoWay}"/>
<StackPanel Orientation="Horizontal">
<Image Source="{Binding Image}" Margin="5,0,0,0"/>
<TextBlock Margin="20,0,0,0" Text ="{Binding Description}"></TextBlock>
</StackPanel>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<!--
<ListView Grid.Row="6" Grid.ColumnSpan="2" Width="400"
Margin="80,0,0,0"
SelectionMode="Multiple"
@ -153,7 +172,7 @@ @@ -153,7 +172,7 @@
</ListView.View>
</ListView>
-->
</Grid>
</GroupBox>

Loading…
Cancel
Save