Search Results

Search found 3 results on 1 pages for 'geosteve'.

Page 1/1 | 1 

  • WPF ComboBox text inside ListBox

    - by geosteve
    I've got a list of ComboBoxes inside a listbox, like so: <ListBox ItemsSource="{Binding Values}"> <ListBox.ItemTemplate> <DataTemplate> <ComboBox ItemsSource="{...}" IsTextSearchEnabled="True" IsEditable="True"/> </DataTemplate> </ListBox.ItemTemplate> </ListBox> The Values for my listbox ItemsSouce is defined in my ViewModel as public ObservableCollection<string> Values { get; set; } How can I get the Text for each one of the ComboBoxes to show the Value for that particular ListBox item? (i.e. if values is {"a", "b", "c"} I want a list of 3 comboboxes showing "a", "b" and "c")

    Read the article

  • rspec "it" string

    - by geosteve
    Is it possible for an rspec method to get the value of the parameter passed to it() in the local method? For example, if I want: describe Me do it "should figure this out" puts "I " + SPEC_NAME end end to print this: I should figure this out ... what would I put for SPEC_NAME in the code sample? Even better, how would a relatively new rubologist like me figure this out on his own?

    Read the article

  • Create ActiveRecord migration then edit in one step?

    - by geosteve
    I find myself doing this a lot: script/generate migration my_new_migration .. then select & copy the generated filename, then paste it into vi to actually write the migration. Is there any way to do this in one step? i.e. when the script/generate migration runs, it creates the file the automatically opens that file in an editor? (I'm working in an SSH terminal window on linux..)

    Read the article

1