ArcGISDynamicMapServiceLayer not using LayerDrawingOptions for rendering

Discussion created by jmccausland-esristaff Employee on Jun 4, 2014
Latest reply on Jun 6, 2014 by jmccausland-esristaff
Does anyone has any experience with using LayerDrawingOptions to change the renderer of a DynamicMapSerivce?  I followed all of the exmaples to do this but the layer is still rendered using the original renderer.

            var drawingOptions = new client.LayerDrawingOptions();

            // Set the ID of the map layer in the local map service
            drawingOptions.LayerID = 3;

            // Create a new simple renderer with a simple line symbol and set the renderer property on the layer drawing options object
            drawingOptions.Renderer = new ESRI.ArcGIS.Client.SimpleRenderer()
                Symbol = new SimpleLineSymbol()
                    Color = new SolidColorBrush(Colors.Blue),
                    Width = 2.5,
                    Style = SimpleLineSymbol.LineStyle.Solid

                Description = "This is a blue line."

            mapServiceLayer.LayerDrawingOptions = new ESRI.ArcGIS.Client.LayerDrawingOptionsCollection();