{"id":14,"date":"2024-12-07T10:41:31","date_gmt":"2024-12-07T10:41:31","guid":{"rendered":"https:\/\/xaml.ch\/?page_id=14"},"modified":"2024-12-07T10:41:31","modified_gmt":"2024-12-07T10:41:31","slug":"ein-einfaches-beispiel","status":"publish","type":"page","link":"https:\/\/xaml.ch\/index.php\/ein-einfaches-beispiel\/","title":{"rendered":"Ein einfaches Beispiel"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hier ist ein einfaches XAML-Beispiel, das ein Fenster mit einem Button erstellt:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;Window x:Class=&#8220;MyApp.MainWindow&#8220;        xmlns=&#8220;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\/presentation&#8220;        xmlns:x=&#8220;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml&#8220;        Title=&#8220;Hallo XAML&#8220; Height=&#8220;200&#8243; Width=&#8220;300&#8243;>    &lt;Grid>        &lt;Button Content=&#8220;Klick mich!&#8220; Width=&#8220;100&#8243; Height=&#8220;30&#8243; HorizontalAlignment=&#8220;Center&#8220; VerticalAlignment=&#8220;Center&#8220;\/>    &lt;\/Grid>&lt;\/Window><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Erkl\u00e4rung: definiert das Hauptfenster der Anwendung. f\u00fcgt einen Button hinzu, der in der Mitte des Fensters erscheint. Attribute wie Width, Height und Content bestimmen das Aussehen und Verhalten des Buttons.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hier ist ein einfaches XAML-Beispiel, das ein Fenster mit einem Button erstellt: &lt;Window x:Class=&#8220;MyApp.MainWindow&#8220; xmlns=&#8220;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\/presentation&#8220; xmlns:x=&#8220;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml&#8220; Title=&#8220;Hallo XAML&#8220; Height=&#8220;200&#8243; Width=&#8220;300&#8243;> &lt;Grid> &lt;Button Content=&#8220;Klick mich!&#8220; Width=&#8220;100&#8243; Height=&#8220;30&#8243; HorizontalAlignment=&#8220;Center&#8220; VerticalAlignment=&#8220;Center&#8220;\/> &lt;\/Grid>&lt;\/Window> Erkl\u00e4rung: definiert das Hauptfenster der Anwendung. f\u00fcgt einen Button hinzu, der in der Mitte des Fensters erscheint. Attribute wie Width, Height und Content bestimmen das Aussehen [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-14","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/xaml.ch\/index.php\/wp-json\/wp\/v2\/pages\/14","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xaml.ch\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/xaml.ch\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/xaml.ch\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xaml.ch\/index.php\/wp-json\/wp\/v2\/comments?post=14"}],"version-history":[{"count":1,"href":"https:\/\/xaml.ch\/index.php\/wp-json\/wp\/v2\/pages\/14\/revisions"}],"predecessor-version":[{"id":15,"href":"https:\/\/xaml.ch\/index.php\/wp-json\/wp\/v2\/pages\/14\/revisions\/15"}],"wp:attachment":[{"href":"https:\/\/xaml.ch\/index.php\/wp-json\/wp\/v2\/media?parent=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}