Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions wpf/Menu/Animation-Support.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
layout: post
title: Animation Support in WPF Menu | Syncfusion®
description: Animation Support in MenuAdv provides visual transition effects when opening and interacting with menu items.
description: Animation Support in WPF Menu provides visual transition effects when opening and interacting with menu items.
platform: wpf
control: MenuAdv
documentation: ug
---

# Animation Support in WPF Menu (MenuAdv)

MenuAdv supports animation types to open the submenu pop-up. The following animation types are supported by MenuAdv:
The WPF Menu supports animation types to open the submenu pop-up. The following animation types are supported by Menu:

* Fade
* Slide
Expand Down Expand Up @@ -62,7 +62,7 @@ Data Type </th></tr>
<tr>
<td>
PopUpAnimationType</td><td>
Gets or sets the PopUpAnimationType of MenuAdv.</td><td>
Gets or sets the PopUpAnimationType of Menu.</td><td>
DependencyProperty</td><td>
PopUpAnimationType(None)</td></tr>
</table>
Expand Down
8 changes: 4 additions & 4 deletions wpf/Menu/Binding-and-DataTemplate-Support.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: Data Binding and Template Support in MenuAdv | Syncfusion®
description: Binding and DataTemplate support in Menu (MenuAdv) enable flexible data-driven menu item presentation.
title: Data Binding and Template Support in WPF Menu | Syncfusion®
description: Binding and DataTemplate support in WPF Menu (MenuAdv) enable flexible data-driven menu item presentation.
platform: wpf
control: MenuAdv
documentation: ug
Expand Down Expand Up @@ -151,9 +151,9 @@ public class CustomItemSource : ObservableCollection<ObjectModel>
{% endhighlight %}
{% endtabs %}

![Adding menu items using data binding in WPF MenuAdv control](Binding-and-DataTemplate-Support_images/Binding-and-DataTemplate-Support_img1.png)
![Adding menu items using data binding in WPF Menu control](Binding-and-DataTemplate-Support_images/Binding-and-DataTemplate-Support_img1.png)

![Adding hierarchical menu items using data template in WPF MenuAdv control ](Binding-and-DataTemplate-Support_images/Binding-and-DataTemplate-Support_img2.png)
![Adding hierarchical menu items using data template in WPF Menu control ](Binding-and-DataTemplate-Support_images/Binding-and-DataTemplate-Support_img2.png)

### Sample Link

Expand Down
8 changes: 4 additions & 4 deletions wpf/Menu/Blendability-Support.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
layout: post
title: Blendability Support in WPF Menu | Syncfusion®
description: Blendability Support in Menu (MenuAdv) enables design-time customization of styles and templates using Expression Blend.
description: Blendability Support in WPF Menu (MenuAdv) enables design-time customization of styles and templates using Expression Blend.
platform: wpf
control: MenuAdv
documentation: ug
---

# Blendability Support in WPF Menu (MenuAdv)

You can customize MenuAdv and MenuItemAdv in Expression Blend. After adding MenuAdv and MenuItemAdv to the design view, you can see MenuAdv and MenuItemAdv in the Objects and Timeline window.
You can customize WPF Menu and MenuItemAdv in Expression Blend. After adding Menu and MenuItemAdv to the design view, you can see Menu and MenuItemAdv in the Objects and Timeline window.

![Blendability-Support_img1](Blendability-Support_images/Blendability-Support_img1.png)

Expand All @@ -19,7 +19,7 @@ You can customize MenuAdv and MenuItemAdv in Expression Blend. After adding Menu



Right-click MenuAdv and in EditTemplate option select Edit a Copy and assign the key name to the resource edited. The same process can be repeated to edit the MenuItemAdv style.
Right-click Menu and in EditTemplate option select Edit a Copy and assign the key name to the resource edited. The same process can be repeated to edit the MenuItemAdv style.

![Blendability-Support_img3](Blendability-Support_images/Blendability-Support_img3.png)

Expand All @@ -35,7 +35,7 @@ User can also customize the appearance of the TopScrollButtonStyle, BottomScroll



The following screen shot shows the MenuAdv and MenuItemAdv templates edited and customized by using Expression Blend.
The following screen shot shows the Menu and MenuItemAdv templates edited and customized by using Expression Blend.

![Blendability-Support_img6](Blendability-Support_images/Blendability-Support_img6.png)

Expand Down
6 changes: 3 additions & 3 deletions wpf/Menu/Boundary-Detection.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
layout: post
title: Boundary Detection in WPF Menu | Syncfusion®
description: Boundary Detection in MenuAdv automatically adjusts popup and submenu placement to ensure they remain visible on screen.
description: Boundary Detection in WPF Menu automatically adjusts popup and submenu placement to ensure they remain visible on screen.
platform: wpf
control: MenuAdv
documentation: ug
---

# Boundary Detection in WPF Menu (MenuAdv)

MenuItemAdv detects the boundaries and opens its submenu in the opposite direction, when the submenu crosses the boundary in both horizontal and vertical directions. In the case of Vertical direction, if the MenuItemAdv which opens the submenu is not the item of MenuAdv the submenu will only adjust its position and it will not open in opposite direction.
MenuItemAdv detects the boundaries and opens its submenu in the opposite direction, when the submenu crosses the boundary in both horizontal and vertical directions. In the case of Vertical direction, if the MenuItemAdv which opens the submenu is not the item of WPF Menu the submenu will only adjust its position and it will not open in opposite direction.



Expand All @@ -27,7 +27,7 @@ MenuItemAdv detects the boundaries and opens its submenu in the opposite directi

## Use Case Scenarios

MenuAdv will be very useful when the number of submenu item levels are more and the opening of the submenu crosses the boundary, this feature allows the submenu be always visible by adjusting its position.
The WPF Menu will be very useful when the number of submenu item levels are more and the opening of the submenu crosses the boundary, this feature allows the submenu be always visible by adjusting its position.

### Sample Link

Expand Down
10 changes: 5 additions & 5 deletions wpf/Menu/Check-Box-and-Radio-Button-Support.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
layout: post
title: Check Box and Radio Button Support in MenuAdv | Syncfusion®
description: Check box and radio button support in MenuAdv enable selectable and mutually exclusive menu options.
title: Check Box and Radio Button Support in WPF Menu | Syncfusion®
description: Check box and radio button support in WPF Menu enable selectable and mutually exclusive menu options.
platform: wpf
control: MenuAdv
documentation: ug
---

# Check Box and Radio Button Support in WPF Menu (MenuAdv)

MenuAdv provides a support for selecting several items. MenuItemAdv can be checked by setting the IsCheckable property of the MenuItemAdv to “true”. You can change the icon type (Check Box or Radio Button) by using the CheckIcon property also it can be checked by using the IsChecked property.
The WPF Menu provides a support for selecting several items. MenuItemAdv can be checked by setting the IsCheckable property of the MenuItemAdv to “true”. You can change the icon type (Check Box or Radio Button) by using the CheckIcon property also it can be checked by using the IsChecked property.

### Use Case Scenarios

MenuAdv helps users to use MenuItemAdv with the CheckBox or RadioButton support.
The WPF Menu helps users to use MenuItemAdv with the CheckBox or RadioButton support.

## Using the Check Box and Radio Button Support in an Application

Expand Down Expand Up @@ -56,7 +56,7 @@ If you set the CheckIcon property to RadioButton, then MenuItemAdv’s will be g

{% endhighlight %}

![CheckBox and Radio Button Support in wpf MenuAdv](Check-Box-and-Radio-Button-Support_images/Check-Box-and-Radio-Button-Support_img1.png)
![CheckBox and Radio Button Support in WPF Menu](Check-Box-and-Radio-Button-Support_images/Check-Box-and-Radio-Button-Support_img1.png)



Expand Down
6 changes: 3 additions & 3 deletions wpf/Menu/Command-Binding-and-Command-Target-Support.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
---
layout: post
title: Command Binding Support in WPF Menu | Syncfusion®
description: Command Binding Support in MenuAdv enables executing routed commands through menu items by using command, parameter, and target bindings.
description: Command Binding Support in WPF Menu enables executing routed commands through menu items by using command, parameter, and target bindings.
platform: wpf
control: MenuAdv
documentation: ug
---

# Command Binding and Command Target Support in WPF Menu (MenuAdv)

Commands are a way to bind the UI to the logic that performs the action, which is to be executed. MenuAdv supports command binding. When users press the Enter key or click to select an item, the command will be triggered. This can be attained by using the Command and CommandParameter properties of MenuItemAdv.
Commands are a way to bind the UI to the logic that performs the action, which is to be executed. The WPF Menu supports command binding. When users press the Enter key or click to select an item, the command will be triggered. This can be attained by using the Command and CommandParameter properties of MenuItemAdv.

The command target is the element on which the command is to be executed with regards to a RoutedCommand and routing of the Executed and CanExecute starts. This can be attained by using the CommandTarget property of MenuItemAdv.

## Use Case Scenarios

MenuAdv helps users handle any command that can be routed outside the boundaries of the logical tree and do not require handling logic in code behind.
The WPF Menu helps users handle any command that can be routed outside the boundaries of the logical tree and do not require handling logic in code behind.

## Using the Command Binding Support in an Application

Expand Down
8 changes: 4 additions & 4 deletions wpf/Menu/Customizing-Data-Templates.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
layout: post
title: Customizing Data Templates in WPF Menu | Syncfusion®
description: Data template customization in MenuAdv enables personalized layouts and visual presentation of menu items.
description: Data template customization in WPF Menu enables personalized layouts and visual presentation of menu items.
platform: wpf
control: MenuAdv
documentation: ug
---

# Customizing Data Templates in WPF Menu (MenuAdv)

Data templates can be customized for items of the MenuAdv control. The next section explains how to customize the MenuItemAdv using data templates.
Data templates can be customized for items of the WPF Menu control. The next section explains how to customize the MenuItemAdv using data templates.

## Item Template

You can customize how a business object is displayed as MenuItemAdv using ItemTemplate of MenuAdv. The MenuAdv displays hierarchical data. HierarchicalDataTemplate is used to define the ItemTemplate. The following code example shows the usage of ItemTemplate.
You can customize how a business object is displayed as MenuItemAdv using ItemTemplate of WPF Menu. The WPF Menu displays hierarchical data. HierarchicalDataTemplate is used to define the ItemTemplate. The following code example shows the usage of ItemTemplate.

{% highlight xaml %}

Expand All @@ -35,7 +35,7 @@ You can customize how a business object is displayed as MenuItemAdv using ItemTe

N> [View sample in GitHub](https://github.com/SyncfusionExamples/customizing-data-templates-in-menuadv)

Implementing the above code will generate the following MenuAdv control.
Implementing the above code will generate the following WPF Menu control.

![Image showing the menu with ItemTemplate](Customizing-Data-Templates_images/Customizing-Data-Templates_img1.png)

Expand Down
18 changes: 9 additions & 9 deletions wpf/Menu/Data-Binding.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
---
layout: post
title: Data Binding in WPF Menu | Syncfusion®
description: Data Binding in MenuAdv enables generating hierarchical menu items from object collections and XML data sources.
description: Data Binding in WPF Menu enables generating hierarchical menu items from object collections and XML data sources.
platform: wpf
control: MenuAdv
documentation: ug
---

# Data Binding in WPF MenuAdv
# Data Binding in WPF Menu

The topics under this section explain the data binding support for the MenuAdv control.
The topics under this section explain the data binding support for the WPF Menu control.

## Data Binding to Objects

The MenuAdv control also supports binding to objects. The following example shows this.
The WPF Menu control also supports binding to objects. The following example shows this.

1. Create a class that act as a model for MenuAdv.
1. Create a class that act as a model for WPF Menu.

{% tabs %}
{% highlight C# %}
Expand Down Expand Up @@ -105,7 +105,7 @@ public class ViewModel
{% endhighlight %}
{% endtabs %}

4. Now configure the ItemsSource and ItemTemplate of MenuAdv.
4. Now configure the ItemsSource and ItemTemplate of WPF Menu.

{% tabs %}
{% highlight xaml %}
Expand All @@ -129,7 +129,7 @@ public class ViewModel

## Data Binding with XML

An XML file can also be used as _ItemsSource_ for the MenuAdv control. The following example illustrates this.
An XML file can also be used as _ItemsSource_ for the WPF Menu control. The following example illustrates this.

1. Create an XML file with the following details as follows and name it as Data.xml.

Expand Down Expand Up @@ -183,7 +183,7 @@ An XML file can also be used as _ItemsSource_ for the MenuAdv control. The follo
{% endtabs %}


3. Set ItemsSource property for the MenuAdv.
3. Set ItemsSource property for the WPF Menu.

{% tabs %}
{% highlight xaml %}
Expand All @@ -199,7 +199,7 @@ An XML file can also be used as _ItemsSource_ for the MenuAdv control. The follo
{% endhighlight %}
{% endtabs %}

This will create the following MenuAdv control.
This will create the following WPF Menu control.

![Data-Binding_images2](Data-Binding_images/Data-Binding_img2.png)

Expand Down
Loading