question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How use DialogHelper.CreateCustomDialog ?

See original GitHub issue

I create the CustomDialogBuilderParams with a method that looks like this:

	private static CustomDialogBuilderParams CreateBaseCustomDialogParams(IDialogBaseViewModel viewModel)
	{
		return new CustomDialogBuilderParams
		{
			ContentHeader = viewModel.Caption,
			Content = viewModel,
			Borderless = true,
			StartupLocation = WindowStartupLocation.CenterOwner
		};
	}

The result: grafik

The custom dialog system seems to completely ignore the logic of the Avalonia ViewLocator (IDataTemplate).

How can i achieve this?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
Maruhlcommented, Nov 13, 2021

Mkay… my fail. ViewLocator is used, but i forgot to extend the Match-Method. OMG! Sorry for the inconvenience, I can’t see the forest for the trees.

0reactions
Maruhlcommented, Nov 13, 2021

Yes i know, the whole app works with this behavior. I debug the Avalonia ContentPresenter, to find out why the ViewLocator not used. This is the normal Behavior:

grafik

But if i invoke the DialogProvider then is the result by “FindDataTemple” another thing:

grafik

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use a custom dialog in all of my application in android
Simply create a class and within that create a static method(say displayDialog), and within this, copy paste the code that displays your ...
Read more >
How to Create Dialog with Custom Layout in Android?
So, in this article, we are going to learn how to create Custom Dialog in android Studio. In this project, we firstly design...
Read more >
CustomDialog - AvaloniaCommunity/Material.Avalonia GitHub ...
Create and show "Hello world!" in CustomDialog by using DialogHelper . var dialog = DialogHelper.CreateCustomDialog(new ...
Read more >
Customize a Popup Dialog Box | Android Studio Tutorial
In this video, we'll learn how to customize a Popup Dialog Box. ... how to create custom dialog in android studio | Custom...
Read more >
and show so it should be. java. Create alert dialog in other ...
So, in this article, we are going to learn how to create Custom Dialog in android Studio. ... setPositive DialogHelper is just a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found