A newer version of this page is available.
CapabilitiesResponsedEventArgs Class
Provides data for the WmsDataProvider.ResponseCapabilities event.
Namespace: DevExpress.Xpf.Map
Assembly: DevExpress.Xpf.Map.v18.2.dll
Declaration
public class CapabilitiesResponsedEventArgs :
EventArgs
Public Class CapabilitiesResponsedEventArgs
Inherits EventArgs
Remarks
An instance of the CapabilitiesResponsedEventArgs class with appropriate settings is automatically created and passed to the corresponding event's handler.
Examples
This example demonstrates how to obtain a collection of layers supported by the Web Map Service.
To do this, use the WmsDataProvider.ResponseCapabilities event arguments to obtain the CapabilitiesResponsedEventArgs.Layers collection.
NOTE
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-obtain-an-available-wms-layer-collection-t365161.
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dxm="http://schemas.devexpress.com/winfx/2008/xaml/map"
xmlns:Properties="clr-namespace:WpfWmsExample.Properties"
x:Class="WpfWmsExample.MainWindow"
Title="MainWindow" Height="360" Width="640">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<dxm:MapControl Grid.Column="0"
IsManipulationEnabled="False">
<dxm:ImageLayer>
<dxm:WmsDataProvider x:Name="Provider"
ServerUri="http://Your_Server_URI"
ActiveLayerName="{Binding ElementName=listBox, Path=SelectedItem.Name}"
ResponseCapabilities="OnResponseCapabilities"/>
</dxm:ImageLayer>
</dxm:MapControl>
<StackPanel Grid.Column="1">
<TextBlock Text="Available layers:"/>
<ListBox x:Name="listBox"
SelectedIndex="0"
Background="AliceBlue"
DisplayMemberPath="Name"
Height="311"/>
</StackPanel>
</Grid>
</Window>
See Also
Feedback