按照步骤 1a 或 1b 操作,然后执行步骤 2 以在 XAML 文件中使用此自定义控件。 步骤 1a) 在当前项目中存在的 XAML 文件中使用该自定义控件。 将此 XmlNamespace 特性添加到要使用该特性的标记文件的根 元素中: xmlns:MyNamespace="clr-namespace:$rootnamespace$" 步骤 1b) 在其他项目中存在的 XAML 文件中使用该自定义控件。 将此 XmlNamespace 特性添加到要使用该特性的标记文件的根 元素中: xmlns:MyNamespace="clr-namespace:$rootnamespace$;assembly=$rootnamespace$" 您还需要添加一个从 XAML 文件所在的项目到此项目的项目引用, 并重新生成以避免编译错误: 在解决方案资源管理器中右击目标项目,然后依次单击 “添加引用”->“项目”->[浏览查找并选择此项目] 步骤 2) 继续操作并在 XAML 文件中使用控件。
Inheritance: System.Windows.Controls.Control
        public $safeitemrootname$Response GlbPostMethod1($safeitemrootname$Request request)
        {
            var response = new $safeitemrootname$Response();

            //TODO your business logic

            return(response);
        }
示例#2
0
 public static void $safeitemrootname$($safeitemrootname$Arguments args)
 {
     // This is the entry point for your scriptlet.
     // Scriptlets are generally used in conjunction with ASP.NET MVC (Ajax.AddScriptlet)
     // where the server can emit script to invoke the scriptlet, and pass in some
     // data as an arguments object.
     // However you can directly/manually use a scriptlet as well, by using the
     // following script:
     // $safeitemrootname$({...})
 }
/// <summary>
/// Close and dispose the usercontrol.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
        private static void OnClose(object sender, BW.ContentCloseEventArgs e)
        {
            e.CloseAction = BW.ContentCloseAction.Dispose;
            if (null != $safeitemrootname$DockableWindow)
            {
                $safeitemrootname$DockableWindow.Detach();
                $safeitemrootname$DockableWindow.Dispose();
                $safeitemrootname$DockableWindow = null;
            }
        }
 public static void $safeitemrootname$($safeitemrootname$Arguments args)
 {
     // This is the entry point for your scriptlet.
     // Scriptlets are generally used in conjunction with ASP.NET MVC (Ajax.AddScriptlet)
     // where the server can emit script to invoke the scriptlet, and pass in some
     // data as an arguments object.
     // However you can directly/manually use a scriptlet as well, by using the
     // following script:
     // $safeitemrootname$({...})
 }
示例#5
0
 partial void Initialize($safeitemrootname$ model);
示例#6
0
 protected internal CommandAggregator($safeitemrootname$ model)
 {
     Initialize(model);
 }