Creating a Custom Color Gallery

Sep 19, 2013 at 3:35 PM
Edited Sep 19, 2013 at 4:57 PM
I've created a Color chooser gallery and now I want to bind the icon of the DropDownButton to the selected color. I also need to set the selected color on startup. Hoping someone can show me the way. Here's the current XAML:
                    <Fluent:DropDownButton Name="btnCommentColor" Header="Comments">
                        <Fluent:Gallery ItemsSource="{Binding Source={StaticResource colorPropertiesOdp}}" SelectedValuePath="Name" MaxItemsInRow="12">
                            <Fluent:Gallery.ItemTemplate>
                                <DataTemplate>
                                        <Border BorderThickness="1" CornerRadius="2" BorderBrush="Black" Width="25" Height="25" VerticalAlignment="Stretch" Background="{Binding Name}" />
                                </DataTemplate>
                            </Fluent:Gallery.ItemTemplate>
                        </Fluent:Gallery>
                    </Fluent:DropDownButton>