How use DialogHelper.CreateCustomDialog ?
See original GitHub issueI 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:
The custom dialog system seems to completely ignore the logic of the Avalonia ViewLocator (IDataTemplate).
How can i achieve this?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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:
But if i invoke the DialogProvider then is the result by “FindDataTemple” another thing: