<esri:SimpleRenderer x:Key="MySimpleRendererLines"> <esri:SimpleRenderer.Symbol> <esri:LineSymbol> <esri:LineSymbol.ControlTemplate> <ControlTemplate> </ControlTemplate> </esri:LineSymbol.ControlTemplate> </esri:LineSymbol> </esri:SimpleRenderer.Symbol> </esri:SimpleRenderer>
<Window.Resources> <esri:SimpleRenderer x:Key="MySimpleRenderer"> <esri:SimpleRenderer.Symbol> <esri:SimpleMarkerSymbol Color="Black" Size="10"/> </esri:SimpleRenderer.Symbol> </esri:SimpleRenderer> <esri:SimpleRenderer x:Key="SelectedRenderer"> <esri:SimpleMarkerSymbol> <esri:SimpleMarkerSymbol.ControlTemplate> <ControlTemplate> <Grid Margin="-19,-19,0,0"> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="CommonStates"> <VisualState x:Name="Selected"> <Storyboard RepeatBehavior="Forever"> <DoubleAnimation BeginTime="0" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="RenderTransform.(ScaleTransform.ScaleX)" From="1" To="10" Duration="00:00:01" /> <DoubleAnimation BeginTime="0" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="RenderTransform.(ScaleTransform.ScaleY)" From="1" To="10" Duration="00:00:01" /> <DoubleAnimation BeginTime="0" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(UIElement.Opacity)" From="1" To="0" Duration="00:00:01" /> </Storyboard> </VisualState> <VisualState x:Name="Unselected" /> </VisualStateGroup> </VisualStateManager.VisualStateGroups> <Ellipse x:Name="ellipse" Width="10" Height="10" Stroke="Red" StrokeThickness="1" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.5" > <Ellipse.RenderTransform> <ScaleTransform /> </Ellipse.RenderTransform> <Ellipse.Fill> <RadialGradientBrush> <GradientStop Color="#00FF0000" /> <GradientStop Color="#FFFF0000" Offset="0.25"/> <GradientStop Color="#00FF0000" Offset="0.5"/> <GradientStop Color="#FFFF0000" Offset="0.75"/> <GradientStop Color="#00FF0000" Offset="1"/> </RadialGradientBrush> </Ellipse.Fill> </Ellipse> <Ellipse Fill="Red" Width="38" Height="38" Stroke="White" StrokeThickness="1"/> </Grid> </ControlTemplate> </esri:SimpleMarkerSymbol.ControlTemplate> </esri:SimpleMarkerSymbol> </esri:SimpleRenderer> </Window.Resources> <Grid> <esri:Map> <esri:Map.Resources> <local:DataContextProxy x:Key="proxy" Data="{Binding}"/> </esri:Map.Resources> <esri:AcceleratedDisplayLayers> <esri:ArcGISTiledMapServiceLayer ID="PhysicalTiledLayer" Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/> <esri:GraphicsLayer ID="MyGraphicsLayer" GraphicsSource="{Binding Path=Data.SearchResults, Source={StaticResource proxy}}" Renderer="{StaticResource MySimpleRenderer}" /> </esri:AcceleratedDisplayLayers> <esri:GraphicsLayer ID="SelectedGraphics" GraphicsSource="{Binding Path=Data.SelectedGraphics, Source={StaticResource proxy}}" Renderer="{StaticResource SelectedRenderer}"> </esri:GraphicsLayer> </esri:Map> </Grid>
After one and a half year this problem has resurfaced for the work i'm doing. When Accelerated Display is not used the highlighting that occurs through IsSelected doesn't work.
This is an issue when people are using Remote Desktop as DirectX is not supported through RDP.
Can anybody verify if this is still the case or that any new workaround has been established? Otherwise i will look into the approach Antti proposed.
Hi Bjorn,
Welcome back!
In the WPF SDK the managed and native displays are two completely different rendering engines and there are unfortunately some unavoidable differences.
Is your project locked into the original WPF SDK or are you able to use the new .NET SDK?
Cheers
Mike
Hi Mike,
thank you for the quick reply and welcoming me back! I will need to discuss this with the product owner as we have a major release coming up, so i don't expect us to switch just yet. I will keep you informed. Could you perhaps drop me an e-mail (or pm) so I have your email address again. That way i can chime you in on what we are doing.
Thanks!
Hey Bjorn,
It's good see that you are back in the forums too. You can contact me on akajanus esri.com and Mike mbranscomb esri.com