1 //------------------------------------------------------------------------------
2 // <copyright file="DesignerListAdapter.cs" company="Microsoft">
3 //     Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>
5 //------------------------------------------------------------------------------
6 
7 using System.Diagnostics;
8 using System.Drawing;
9 using System.Web.Mobile;
10 using System.Web.UI.MobileControls;
11 using System.Web.UI.MobileControls.Adapters;
12 
13 namespace System.Web.UI.Design.MobileControls.Adapters
14 {
15     [
16         System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand,
17         Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode)
18     ]
19     [Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
20     internal class DesignerListAdapter : HtmlListAdapter
21     {
22         public override MobileCapabilities Device
23         {
24             get
25             {
26                 return DesignerCapabilities.Instance;
27             }
28         }
29 
Render(HtmlMobileTextWriter writer)30         public override void Render(HtmlMobileTextWriter writer)
31         {
32             writer.WriteBeginTag("div");
33             ((DesignerTextWriter)writer).WriteDesignerStyleAttributes(Control, Style);
34             writer.Write("\">");
35 
36             base.Render(writer);
37 
38             writer.WriteEndTag("div");
39         }
40     }
41 }
42