Skip to content

Sample : Nested view exceptions#7

Open
SSstupid wants to merge 4 commits intomainfrom
nestedViewExceptions
Open

Sample : Nested view exceptions#7
SSstupid wants to merge 4 commits intomainfrom
nestedViewExceptions

Conversation

@SSstupid
Copy link
Copy Markdown
Owner

@SSstupid SSstupid commented Nov 21, 2023

Environment

Platform : Android
SDK : 7.x

image

InputTransparent = true; will cause ContextNullException

  • Occurs in a situation where View is nested.
  • If you want to test, press ContextNullException Button
  • ref : ContextNullException.cs
image

Effects.Add(tapGestureEffect); will cause NullReferenceException

  • Occurs in a situation where View is nested.
  • If you want to test, press NullReferenceException Button
  • ref : NullReferenceException.cs
image

ref(Code) list??


What is Nested View??

<ContentPage ...>

    <!-- This problem arises from nested View. -->
    <ContentPage.Content>
        <local:SampleView>
            <local:SampleView.Content>
                <local:SampleView2>
                    <local:ContextNullException />
                </local:SampleView2>
            </local:SampleView.Content>
        </local:SampleView>
    </ContentPage.Content>
</ContentPage>

<!-- I still don't know `Nested View`.

this is single `Control`...
<ContentPage ...>
    <StackLayout>

    </StackLayout>
</ContentPage>
-->

@SSstupid SSstupid self-assigned this Nov 21, 2023
@SSstupid SSstupid changed the title Nested view exceptions Sample : Nested view exceptions Nov 21, 2023
@JTOne123
Copy link
Copy Markdown

JTOne123 commented Jun 6, 2024

Have you found a solution?

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

Successfully merging this pull request may close these issues.

3 participants