Skip to content

Allowed to open links in webview and external browser.#143

Open
NiladriPadhy wants to merge 4 commits into
matteobortolazzo:masterfrom
NiladriPadhy:master
Open

Allowed to open links in webview and external browser.#143
NiladriPadhy wants to merge 4 commits into
matteobortolazzo:masterfrom
NiladriPadhy:master

Conversation

@NiladriPadhy
Copy link
Copy Markdown

xmlns:htmlLabel="clr-namespace:LabelHtml.Forms.Plugin.Abstractions;assembly=HtmlLabel.Forms.Plugin"
<htmlLabel:HtmlLabel

                                            LineBreakMode="WordWrap"
                                            IsExternalBrowser="False"
                                            LinkClickEvent="HtmlLabel_LinkClickEvent"
                                            MaxLines="50"
                                            Style="{StaticResource MediumLabelRegularStyle}"
                                            Text="{Binding AnnouncementText, Converter={StaticResource htmlConverter}}"
                                            TextColor="{DynamicResource AnnouncementTextColor}"
                                            BrowserLaunchOptions="{Binding BrowserLaunchOptions}"
                                            VerticalOptions="StartAndExpand"/>

@NiladriPadhy
Copy link
Copy Markdown
Author

NiladriPadhy commented Dec 6, 2022

@matteobortolazzo I have removed all the code indents. Please review the changes.
After reviewing the code if you found a better way to open the tapped links inside weview, then please modify accordingly.

As per my requirement, I have to open the tapped urls in webviews. Because the urls requires session cookie to authenticate and I am injecting the session cookie into webview while loading. Due to this reason I can't open external browser.

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.

1 participant