大神救我!请教自定义控件问题
wpf吧
全部回复
仅看楼主
level 2
在一个单独的空间库新建一个自定义控件
我想改Generic.xaml 文件的路径
但是修改后的 模板就失效了 请问我修改位置后 需要做哪些修改呢?
英文还有可能新加第二个第三个。。自定义控件不可能都放在一个Generic.xaml 中吧
演示如图
修改前
修改后。
Generic.xaml 内容:
<Style TargetType="{x:Type local:CustomControl1}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type local:CustomControl1}">
<Border Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}">
<StackPanel>
<Button Content="ButtonContent"/>
<TextBox Text="TextBoxText"/>
</StackPanel>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
2017年01月19日 09点01分 1
level 2
救救我吧[泪]
2017年01月19日 09点01分 3
level 1
看的900多页那个wpf书吧。在app.xaml中修改字源字典的路径
2017年01月21日 10点01分 4
谢谢
2017年01月24日 03点01分
1