WPF—VisualStateManager使用技巧
文章作者: 路遥
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 LUYAO's Blog!
相关推荐

2021-12-10
StringFormat-使用技巧
Label12345678<Label Content="{Binding Model.Progress,Mode=OneWay}" ContentStringFormat="aasdf{0:P}asdfasdf"/>--><!--<TextBlock Text="{Binding Model.MyProperty, StringFormat={}{0:F4}}"/><TextBlock Text="{Binding Model.MyProperty, StringFormat={}{0:P1}}" /><Label> <Label.Content> <Binding Path="Model.Progress" StringFo...

2021-11-27
WPF事件绑定:Interactivity
xmlns:i=”clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity” 12345678910<i:Interaction.Triggers> <i:EventTrigger EventName="LostFocus"> <i:InvokeCommandAction Command="{Binding RelativeSource={RelativeSource AncestorType=Window},Path=DataContext.OnTextLostFocus}" CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor,...

2021-12-22
WPF界面配置CommandBinding
WPF界面配置CommandBindingTextBox12345678<TextBox Text="{Binding LoginModel.UserNameUpdateSourceTrigger=PropertyChanged}" FontSize="16" Foreground="#555" Template="{UserNameTextBoxTemplate}" Name="txtUserName"> <TextBox.InputBindings> <KeyBinding Key="Enter" Command="{Binding LoginCommand}" CommandParameter="{Binding ElementName=window}...

2021-12-22
KeyBinding-使用技巧
KeyBinding-使用技巧TextBox12345678<TextBox Text="{Binding LoginModel.UserNameUpdateSourceTrigger=PropertyChanged}" FontSize="16" Foreground="#555" Template="{UserNameTextBoxTemplate}" Name="txtUserName"> <TextBox.InputBindings> <KeyBinding Key="Enter" Command="{Binding LoginCommand}" CommandParameter="{Binding ElementName=window}"...

2021-12-22
WPF—DataGrid样式
WPF—DataGrid样式123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354<Style TargetType="{x:Type DataGridRowHeader}"> <Setter Property="Template" Value="{x:Null}"/></Style><Style TargetType="{x:Type DataGridColumnHeader}"> <Setter Property="FontWeight" Value="Bold"/> <!--<Setter Property="BorderThickness" Va...

2021-12-07
控件绑定——PART_ConntentHost
12345<ScrollViewer x:Name="PART_ContentHost" Grid.Column="1" Focusable="false" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" VerticalAlignment="Center" MinHeight="20"/>




