Code Monkey home page Code Monkey logo

Comments (8)

picrap avatar picrap commented on June 29, 2024

Hi, I recently had the same problem, and here is how to solve it:

    <mui:ModernDialog.Buttons>
        <x:Array Type="Button">
            <Button Content="Si" />
        </x:Array>
    </mui:ModernDialog.Buttons>

You just need to handle the command of the button by yourself.

from mui.

robertosalemi avatar robertosalemi commented on June 29, 2024

Hi,
I must insert it in APP.xaml of my application?

from mui.

picrap avatar picrap commented on June 29, 2024

No, in each view that requires it.

from mui.

robertosalemi avatar robertosalemi commented on June 29, 2024

Sorry, but for create my DialogBox, I'm using:

var rsltDialog = ModernDialog.ShowMessage("Text to show", "Title of DialogBox", MessageBoxButton.YesNo);

I would change the text of button that is view across MessageBoxButton.YesNo ;)

from mui.

picrap avatar picrap commented on June 29, 2024

Sorry I misunderstood the problem. If you don't find any other option, you'll probably have to create your own custom dialog box.

from mui.

robertosalemi avatar robertosalemi commented on June 29, 2024

I hope find a good solution, thanks!

from mui.

kozw avatar kozw commented on June 29, 2024

There are two options;

  1. Either create a satelite assembly for MUI, and provide your own translation for MUI resources. A fairly time-consuming task.
  2. Don't use ShowMesssage, but create your own ModernDialog instance and assign your translation to the various ModernDialog buttons. Something like this works;
var dlg = new ModernDialog{
  Title = title,
  Content = new BBCodeBlock { BBCode = text, Margin = new Thickness(0, 0, 0, 8) },
  MinHeight = 0,
  MinWidth = 0,
  MaxHeight = 480,
  MaxWidth = 640,
};
dlg.OkButton.Content = "Okay";
dlg.CancelButton.Content = "Nope";
dlg.Buttons = new Button { dlg.OkButton, dlg.CancelButton };
dlg.ShowDialog();
var result = dlg.messageBoxResult;

from mui.

phoeson avatar phoeson commented on June 29, 2024

@kozw any suggestions to implement a satelite assembly for MUI? I'm trying this way...

from mui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.