SORU
22 NİSAN 2010, PERŞEMBE


() Hayır Ana WPF?

Programlama konusunda çok acemi değilim ama evrensel kurallarından biri de bir programı Ana ile başlayan emindim(). WPF bir proje oluşturduğumda bir şey görmüyorum. Main() sadece farklı bir şeyler WPF adında?

CEVAP
22 NİSAN 2010, PERŞEMBE


İnşa sırasında oluşturulur, ancak kendi (gerektiğinde proje özelliklerinde disambiguating) sağlayabilir. Uygulama bir dosya için n/hata ayıklama bak; var (nezaket "C# 2010 Express") App.g.i.cs:

namespace WpfApplication1 {


    /// <summary>
    /// App
    /// </summary>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
    public partial class App : System.Windows.Application {

        /// <summary>
        /// InitializeComponent
        /// </summary>
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public void InitializeComponent() {

            #line 4 "..\..\..\App.xaml"
            this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);

            #line default
            #line hidden
        }

        /// <summary>
        /// Application Entry Point.
        /// </summary>
        [System.STAThreadAttribute()]
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public static void Main() {
            WpfApplication1.App app = new WpfApplication1.App();
            app.InitializeComponent();
            app.Run();
        }
    }
}

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Myron and Nejusha dance

    Myron and Ne

    2 AĞUSTOS 2012
  • Photoshop Training Channel

    Photoshop Tr

    13 Temmuz 2012
  • Slave Boy Films - Fandom from a Galaxy Far Far Away

    Slave Boy Fi

    12 HAZİRAN 2009