Skip to content

Commit

Permalink
Changed blog combobox to a listbox.
Browse files Browse the repository at this point in the history
  • Loading branch information
distantcam committed Jan 16, 2012
1 parent 574cf07 commit c513cc3
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions src/MarkPad/Settings/BlogSettingsView.xaml
Expand Up @@ -7,7 +7,10 @@
xmlns:cal="http://www.caliburnproject.org" xmlns:System="clr-namespace:System;assembly=mscorlib" x:Class="MarkPad.Settings.BlogSettingsView" MouseLeftButtonDown="DragMoveWindow"
Icon="../markpad.ico"
ShowInTaskbar="False"
WindowStartupLocation="CenterOwner" mc:Ignorable="d" Width="300" Height="420" ResizeMode="NoResize">
WindowStartupLocation="CenterOwner" mc:Ignorable="d" Width="300" Height="500" ResizeMode="NoResize">
<i:Interaction.Behaviors>
<Behaviours:BorderlessWindowBehavior ResizeWithGrip="False" />
</i:Interaction.Behaviors>

<Window.Resources>
<ResourceDictionary>
Expand All @@ -22,10 +25,6 @@
</ResourceDictionary>
</Window.Resources>

<i:Interaction.Behaviors>
<Behaviours:BorderlessWindowBehavior />
</i:Interaction.Behaviors>

<Window.Background>
<LinearGradientBrush MappingMode="Absolute" StartPoint="0,0" EndPoint="0,180">
<GradientStop Color="#EEEEEE" />
Expand Down Expand Up @@ -65,15 +64,14 @@
<ComboBox x:Name="BlogLanguages" HorizontalAlignment="Left" Width="150" />

<TextBlock HorizontalAlignment="Left" Margin="0 10 0 0" Text="BLOG NAME" FontWeight="Bold" FontSize="10.667"/>
<ComboBox HorizontalAlignment="Left" x:Name="APIBlogs" Width="150"
IsEnabled="{Binding CurrentBlog.IsWebAPICompleted}"
cal:Message.Attach="[Event DropDownOpened]=[Action FetchBlogs]">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Name}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<StackPanel Orientation="Horizontal">
<ListBox HorizontalAlignment="Left" x:Name="APIBlogs" DisplayMemberPath="Name"
Height="100" Width="150" />
<StackPanel Margin="5 0 0 0" VerticalAlignment="Top">
<Button x:Name="FetchBlogs" Content="Fetch" Height="25" Width="75" VerticalAlignment="Top"
IsEnabled="{Binding CurrentBlog.IsWebAPICompleted}"/>
</StackPanel>
</StackPanel>
</StackPanel>

<StackPanel Grid.Row="2" HorizontalAlignment="Right" Height="25" Margin="10,20,0,10" Orientation="Horizontal">
Expand Down

0 comments on commit c513cc3

Please sign in to comment.