question

Nimalika-6845 avatar image
0 Votes"
Nimalika-6845 asked Nimalika-6845 commented

UWP Expander controls within a listview crashes when scrolling fast

Hi,

In our UWP app there's a listview that contains expander controllers (Microsoft.Toolkit.Uwp.UI.Controls Expander). If the user tries to scroll while trying to expand the item the app crashes with exception: “Coordinate system transformation failed to transform the data”

Any suggestions on how we can fix this issue?90032-lv.png

Is there a way we can block user scrolling until the expanding is done? Is there any event that triggers when the expander controller finishes expanding?

Thanks.


windows-uwp
lv.png (37.5 KiB)
· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Nimalika-6845 I can’t reproduce your issue based on the above information, I try to scroll when expanding the item, but the expander still works well. Could you please provide your code snippet for testing?

0 Votes 0 ·

Thanks for your reply. The code is a bit complex.

 <ListView.ItemTemplate>
 <DataTemplate x:DataType="models:QuestionList">
 ...
 <Mcontrols:Expander
    Width="{x:Bind ExpanderWidth}">
 <Mcontrols:Expander.Header>
    <WebView
       Width="{x:Bind ItemWidth}"
       util:WebViewCustomProperties.HtmlString="{x:Bind description}"
       ScriptNotify="HeaderText_ScriptNotify" />
    ...
 </Mcontrols:Expander.Header>
 <Mcontrols:Expander.Content>
 <WebView
    Width="{x:Bind ItemWidth}"
    util:WebViewCustomProperties.HtmlString="{x:Bind answerList[0].txtAnswer}"
    ...
    Visibility="{x:Bind Path=TxtAnswerListVisible, Mode=TwoWay, Converter={StaticResource BooleanToVisibility}}" />

Is there a way we can identify when the expander controller is done expanding?


0 Votes 0 ·

@Nimalika-6845 There might be differences between our projects, which prevents me from reproducing your issue. So could you please provide us a minimal reproducible example by OneDrive or GitHub?

0 Votes 0 ·
Show more comments

0 Answers