Riderλ₯Ό μ£Όλ‘ μ°κ³ μκ³ Visual Studioλ λ³΄μ‘°λ‘ μ°κ³ μμ΅λλ€. UIλ₯Ό μ’ λν μΌνκ² κ±΄λλ €μΌ ν΄μ ν΄λ‘λ μ½λλ‘ λͺ»νκ³ νλνλ μμ μ€μΈλ°μ .xamlμ hot reloadκ° μ§μμ΄ μ μλκ³ νΉνλ CustomControl μ€νμΌλ‘ μμ ν λ ν« λ¦¬λ‘λκ° μλμ μμνλ, ν λ리 μ νλ λ°λλ κ² νμΈ νλ €κ³ ν΄λ ctrl + shift + f5λ‘ λ€μ μμ νκ³ μμ΅λλ€.
Riderλ μ μλλ€κ³ νμ¬ Visual Studio 2022λ‘ ν΄λ΄€λλ°λ ν« λ¦¬λ‘λ μ μ©μ λͺ»νκ³ μμ΅λλ€.
xaml μμ μ Hot Reload μ μ© ν λ°©λ²μ΄ μμκΉμ?
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:units="clr-namespace:MV1000.Support.UI.Units">
<Style TargetType="{x:Type Border}" x:Key="GoldLine">
<Setter Property="Background" Value="#00070E"></Setter>
<Setter Property="BorderBrush" Value="#34291E"></Setter>
<Setter Property="BorderThickness" Value="1 1 1 1"></Setter>
</Style>
<Style TargetType="{x:Type units:PadButton}">
<Setter Property="Height" Value="38"></Setter>
<Setter Property="Width" Value="165"></Setter>
<Setter Property="Foreground" Value="#FFFFFF"></Setter>
<Setter Property="Background" Value="Transparent"></Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type units:PadButton}">
<Grid Background="{TemplateBinding Background}">
<Border Style="{StaticResource GoldLine}" />
<TextBlock Text="{TemplateBinding Content}" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
using System.Windows;
using System.Windows.Controls.Primitives;
namespace MV1000.Support.UI.Units;
public class PadButton : ToggleButton
{
static PadButton()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(PadButton),
new FrameworkPropertyMetadata(typeof(PadButton)));
}
}





