Microsoft
Software
Hardware
Network
Question : How to close the controlsmenu after selecting the items from the combo box with out including any code behind.
When I am selecting the items from the combox and when click on OK button even then its showing the menu.Could any one Please help me how to close the menu when click on the Ok button with out including any code behind.Its getting close when I click again on the button which I use to open up the menu.But in my case I need to able to close the menu when the user selects the items from the combo box and then click on the ok button.Here is the button "<Button Content="OK" Style="{StaticResource ImageButton}" Commands:Click.Command="{B
inding ApplyFilterCommand}" Grid.Row="3" Grid.ColumnSpan="2" />".Can we add code here in XAML to close the menu control.
<Controls:MenuService.Menu
>
<Controls:Menu>
<Border Style="{StaticResource MenuBorder}">
<Grid Width="300">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="25" />
<RowDefinition Height="25" />
<RowDefinition Height="25" />
<RowDefinition Height="25" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="150" />
<ColumnDefinition Width="135" />
</Grid.ColumnDefinitions>
<TextBlock Text="Pacing" Grid.Row="0" Grid.Column="0"></TextBloc
k>
<ComboBox ItemsSource="{Binding PacingValues, Mode=OneWay}" Grid.Row="0" Grid.Column="1" SelectedItem="{Binding FilterPacing, Mode=TwoWay}" x:Name="cmbPacing" />
<TextBlock Text="Booking Hierarchy" Grid.Row="1" Grid.Column="0" ></TextBlock>
<ComboBox ItemsSource="{Binding BookingHierarchies, Mode=OneWay}" SelectedItem="{Binding FilterBookingHierarchy, Mode=TwoWay}" Grid.Row="1" Grid.Column="1"/>
<TextBlock Text="Line Active State" Grid.Row="2" Grid.Column="0" ></TextBlock>
<ComboBox ItemsSource="{Binding LineActiveStates, Mode=OneWay}" SelectedItem="{Binding FilterLineActiveState, Mode=TwoWay }" Grid.Row="2" Grid.Column="1" />
<Button Content="OK" Style="{StaticResource ImageButton}" Commands:Click.Command="{B
inding ApplyFilterCommand}" Grid.Row="3" Grid.ColumnSpan="2" />
</Grid>
</Grid>
</Border>
</Controls:Menu>
</Controls:MenuService.Men
u>
Answer : How to close the controlsmenu after selecting the items from the combo box with out including any code behind.
can you please put a snapshot of menu u r getting? that will ease to understand your question.
Random Solutions
URGENT: HP StorageWorks 1000 Modular Smart Array
Summing values based concatenated date and variable
preg_replace code to remove dynamic sub-directory
how to fix data overflow error when DTS transfers table from Access 2000 to SQL 2000
From my VB6 app, how do I replace specific text in a Word 2003 document with a hyperlink?
Accidentally deleted the BUILTIN\Administrators is a LOGIN; how do I get it back??
DatetimePicker Problem C#
Proxy-PAC Configuration - referencing source AND destination
Formula Help
What do ASP.NET web forms and REST have in common?