Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F2 and Enter can't rename #16

Open
CodingOctocat opened this issue Mar 7, 2022 · 1 comment
Open

F2 and Enter can't rename #16

CodingOctocat opened this issue Mar 7, 2022 · 1 comment

Comments

@CodingOctocat
Copy link

I have a UserControl:

<UserControl ...>
...
    <ListView.ItemTemplate>
        <DataTemplate DataType="e:Block">
            <dirkster:EditBox DisplayText="{Binding Text, UpdateSourceTrigger=PropertyChanged}"
                              IsEditableOnDoubleClick="False"
                              MouseDoubleClick="EditBox_MouseDoubleClick"
                              Text="{Binding Text, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                              ToolTip="{Binding Converter={StaticResource MyToolTipConverter}}"
                              ToolTipService.ShowOnDisabled="True" />
        </DataTemplate>
    </ListView.ItemTemplate>
...
</UserControl>

I can't press F2 and Enter to rename.

@lmuestak
Copy link

lmuestak commented Apr 13, 2022

<GridViewColumn.CellTemplate>




<dirkster:EditBox
Text="{Binding Path=Name, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"
DisplayText="{Binding DisplayName, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"
ToolTip="{Binding Path, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"
Focusable="True"
RenameCommand="{Binding Source={StaticResource DataContextProxy}, Path=Data.RenameCommand}"
VerticalAlignment="Stretch"
HorizontalAlignment="Left"
IsReadOnly="{Binding IsReadOnly}"
Entity="{Binding}"
ToolTipService.ShowOnDisabled="True"
InvalidInputCharacters="/:?<>|"
InvalidInputCharactersErrorMessage="A name cannot contain any of the following characters: /:
?<>|"
InvalidInputCharactersErrorMessageTitle="Invalid Character Input"
Margin="2,0">
</dirkster:EditBox >


</GridViewColumn.CellTemplate>

Renaming via 2 clicks seems not to work in a WPF ListView

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants