<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[WPF: הגדרות עיצוב כלליות בקובץ App.xaml]]></title><description><![CDATA[<p dir="auto">הבנתי שהגדרות עיצוב שאני רוצה שיהיו כלליות בכל האפליקציה, אני יכול להגדיר בקובץ הראשי, וכך אין לי צורך להגדיר בכל חלון מחדש.<br />
הבעיה שלי היא שעשיתי זאת, ואני רואה שאכן זה עובד בתצוגה של החלונות בתוך הVS, אולם כשאני מריץ את התוכנה בפועל זה לא משנה כלום.<br />
לדוג' הגדרתי שהרקע של החלון יהיה בצבע azure והוא נשאר בצבע לבן (רק בשעת ריצה, אולם בחלון עריכה הוא מציג לי את הצבע).<br />
אשמח לדעת מה הבעיה, תודה רבה! (בדקתי שבחלונות עצמם אין הגדרת רקע אחרת).<br />
הנה הקוד:</p>
<pre><code>&lt;Application x:Class="TrialSQL1.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             StartupUri="MainWindow.xaml"&gt;
    &lt;Application.Resources&gt;
        &lt;Style TargetType="Window"&gt;
            &lt;Setter Property="FlowDirection" Value="RightToLeft"/&gt;
            &lt;Setter Property="Background" Value="Azure"/&gt;
            &lt;Setter Property="Margin" Value="5,0"/&gt;
        &lt;/Style&gt;
    &lt;/Application.Resources&gt;
&lt;/Application&gt;
</code></pre>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב14/07/2015 15:58 (+03:00)</em></p>
]]></description><link>https://tchumim.com/topic/730/wpf-הגדרות-עיצוב-כלליות-בקובץ-app-xaml</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 17:18:21 GMT</lastBuildDate><atom:link href="https://tchumim.com/topic/730.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 29 Jan 2018 11:06:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WPF: הגדרות עיצוב כלליות בקובץ App.xaml on Mon, 29 Jan 2018 11:06:42 GMT]]></title><description><![CDATA[<p dir="auto">מעניין! לא יודע להסביר אצלי זה לא עובד גם בזמן עיצוב (VS 2015).<br />
אני רואה על זה דיבורים באינטרנט.<br />
מה שבינתיים נשאר לך לעשות זה key והפניה בכל חלון לסטטיק ריסורס.</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב15/07/2015 14:43 (+03:00)</em></p>
]]></description><link>https://tchumim.com/post/4609</link><guid isPermaLink="true">https://tchumim.com/post/4609</guid><dc:creator><![CDATA[dovid]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:06:42 GMT</pubDate></item></channel></rss>