Bot releases are visible (Hide)
Published by jstedfast about 1 month ago
This release fixes an issue with Keytriggers not firing when the ALT modifier is used:
Full Changelog: https://github.com/microsoft/XamlBehaviorsWpf/compare/v1.1.122...v1.1.135
This release fixes an issue in the XAMLBehaviorsSample.InvokeCommandControl Binding:
Full Changelog: https://github.com/microsoft/XamlBehaviorsWpf/compare/v1.1.77...v1.1.122
Published by mgoertz-msft 12 months ago
This release avoids a reference to Microsoft.Xaml.Behaviors.DesignTools getting added in legacy-style .NET Framework projects:
Full Changelog: https://github.com/microsoft/XamlBehaviorsWpf/compare/v1.1.75...v1.1.77
Published by mgoertz-msft 12 months ago
Full Changelog: https://github.com/microsoft/XamlBehaviorsWpf/compare/v1.1.39...v1.1.75
Published by mgoertz-msft over 2 years ago
Full Changelog: https://github.com/microsoft/XamlBehaviorsWpf/compare/v1.1.37...v1.1.39
Published by mgoertz-msft over 2 years ago
Full Changelog: https://github.com/microsoft/XamlBehaviorsWpf/compare/v1.1.31...v1.1.37
Published by mgoertz-msft over 2 years ago
Full Changelog: https://github.com/microsoft/XamlBehaviorsWpf/compare/v1.1.19...v1.1.31
Published by DVaughan almost 5 years ago
Published by brianlagunas almost 5 years ago
Properties Added:
Using the EventArgsConverter to retrieve the ItemTappedEventArgs.Item property.
public class ItemTappedEventArgsConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
var itemTappedEventArgs = value as ItemTappedEventArgs;
if (itemTappedEventArgs == null)
{
throw new ArgumentException("Expected value to be of type ItemTappedEventArgs", nameof(value));
}
return itemTappedEventArgs.Item;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
In XAML, add a reference to the converter and the converter resource need to be defined
<b:InvokeCommandAction Command="{Binding ItemTappedCommand}"
EventArgsConverter="{StaticResource itemTappedEventArgsConverter}" />
Sample EventArgs
public class ItemTappedEventArgs : EventArgs
{
public object Item { get; }
public object Group { get; }
}
Setting EventArgsParameterPath to Item will extract the property value and pass it to the ICommand
<b:InvokeCommandAction Command="{Binding ItemTappedCommand}"
EventArgsParameterPath="Item" />
Nested properties are also supported:
<b:InvokeCommandAction Command="{Binding ItemTappedCommand}"
EventArgsParameterPath="Item.SubItem.SubProperty" />
Published by brianlagunas almost 6 years ago
Initial release of the WPF Behaviors