사용자 도구

사이트 도구


tool:microsoft-visual-studio:2012-다크테마-xaml-designer-밝게-표시

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판이전 판
tool:microsoft-visual-studio:2012-다크테마-xaml-designer-밝게-표시 [2021/04/24 16:01] kieunstool:microsoft-visual-studio:2012-다크테마-xaml-designer-밝게-표시 [2024/04/23 22:44] (현재) – 바깥 편집 127.0.0.1
줄 1: 줄 1:
 +<title>다크테마 상타에서 XAML 디자이너에서 텍스트 볼 수 있게</title>
  
 +
 +Visual Studio 2012의 다크테마를 적용하면, XAML 디자이너에서 텍스트가 까맣게
 +표시되서 글씨를 알아 볼 수가 없다.
 +
 +개선은 나중에 될런지...
 +
 +아무튼 디자이너 화면에서 컨트롤을 밝은 테마로 표시하도록 변경하는 방법을 써서
 +일단, 해결 할 수 있다.
 +
 +  * 관련 링크 : [[http://caraulean.com/blog/2012/08/30/visual-studio-2012-dark-theme-tip/|Visual Studio 2012 Dark Theme Tip - Light Up Your UserControl in XAML Designer]]
 +
 +^ (적용 전) \\ 어두워서 글자가 보이지 않는다 ^ (적용 후) \\ 밝은 테마로 변경 되어 잘 보인다 ^
 +| {{:tool:microsoft-visual-studio:msvs_2012_darktheme_어두운테마의디자이너상태.png?250|}} | {{:tool:microsoft-visual-studio:msvs_2012_darktheme_밝은테마의디자이너상태.png?direct&250|}} |
 +
 +<file xml App.xmal>
 +<!-- xmlns:ComponentModel 네임스페이스도 포함시킨다. -->
 +<Application x:Class="ModernUIApp1.App"
 +            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 +            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 +            xmlns:ComponentModel="clr-namespace:System.ComponentModel;assembly=PresentationFramework"
 +            StartupUri="MainWindow.xaml">
 +  <Application.Resources>
 +<!-- ResourceDictionary 태그 부분에 -->
 +    <ResourceDictionary>
 +      <ResourceDictionary.MergedDictionaries>
 +        <ResourceDictionary Source="/FirstFloor.ModernUI;component/Assets/ModernUI.Light.xaml"/>
 +        <ResourceDictionary Source="/FirstFloor.ModernUI;component/Assets/ModernUI.xaml" />
 +      </ResourceDictionary.MergedDictionaries>
 +<!-- Style 태그 부분을 app.xaml 파일이 포함시킨다. -->
 +      <Style TargetType="{x:Type UserControl}">
 +        <Style.Triggers>
 +          <Trigger Property="ComponentModel:DesignerProperties.IsInDesignMode" Value="true">
 +            <Setter Property="Background" Value="White" />
 +          </Trigger>
 +          </Style.Triggers>
 +      </Style>
 +    </ResourceDictionary>
 +  </Application.Resources>
 +</Application>
 +</file>
 +
 +{{tag> DarkTheme}}