|
<UserControl x:Class="MediaAssistant.Controls.MusicSearchControl.MusicSearchControlView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:Controls="clr-namespace:MefBasic.Controls;assembly=MefBasic" mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300" Width="220">
<Grid>
<Border Name="SearchBorder" CornerRadius="20" BorderThickness="1" Padding="2" BorderBrush="#B2B2B2" Background="WhiteSmoke" Height="32">
<Controls:SearchBox Prompt="Search Music"
HorizontalAlignment="Center" VerticalAlignment="Center" Width="200" Height="22" Mode="Regular"
ToolTip="Type to search music" Command="{Binding SearchCommand}"
CommandParameter="{Binding Text, RelativeSource={RelativeSource Self}}">
<Controls:SearchBox.ContextMenu>
<ContextMenu>
<MenuItem Header="Search Music" IsChecked="{Binding CanSearchMusic}" IsCheckable="True"/>
<MenuItem Header="Search Album" IsChecked="{Binding CanSearchAlbum}" IsCheckable="True"/>
<MenuItem Header="Search Artist" IsChecked="{Binding CanSearchArtist}" IsCheckable="True"/>
<MenuItem Header="Search Composer" IsChecked="{Binding CanSearchComposer}" IsCheckable="True"/>
<MenuItem Header="Search Genre" IsChecked="{Binding CanSearchGenre}" IsCheckable="True"/>
</ContextMenu>
</Controls:SearchBox.ContextMenu>
</Controls:SearchBox>
</Border>
</Grid>
</UserControl>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.