fsprojects / FsXaml

F# Tools for working with XAML Projects
http://fsprojects.github.io/FsXaml/
MIT License
172 stars 48 forks source link

UserControl Focusable #28

Closed shawn-martin closed 8 years ago

shawn-martin commented 9 years ago

UserControls created via the provider are focusable whereas normal UserControls are not. This is not desired behavior in my current project so I've worked around it by adding a Blend behavior to each of my UserControls, but it would be nice if this wasn't necessary. A little troubleshooting: the provided type for UserControls is inheriting from ContentControl which seems to default its Focusable property to true. UserControl also inherits from ContentControl, but seems to default Focusable to false.

ReedCopsey commented 8 years ago

@shawn-martin Please see https://github.com/fsprojects/FsXaml/issues/29#issuecomment-218262194

The new version, once completed, should address this. It eliminates the "container" types, so doing a type MyControl = XAML<"MyControl.xaml"> creates something that is directly a user control (not a UC inside of a ContentControl). Look for this soon.