Comments (8)
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.
Hi,
I must insert it in APP.xaml of my application?
from mui.
No, in each view that requires it.
from mui.
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.
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.
I hope find a good solution, thanks!
from mui.
There are two options;
- Either create a satelite assembly for MUI, and provide your own translation for MUI resources. A fairly time-consuming task.
- 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.
@kozw any suggestions to implement a satelite assembly for MUI? I'm trying this way...
from mui.
Related Issues (20)
- How to Navigate to Detail View from a List View. HOT 1
- HOW to use the Themes?
- 当我点击了设置之后tab页还是停留在之前的选项上 HOT 1
- 设置了mui:ModernWindow.TileLinks 点击 “设置”挂掉了 HOT 3
- Project template extension does not work on some systems with VS2015
- Project template creates csproj without ProjectTypeGuids
- How to integrate PRISM in ModernUI-App? HOT 1
- How to set the focus to the loaded URI.
- Add xaml as resource
- Not response ModernWindow when I resize the window.
- Show ModernDialog in a non-modal way, (call Show()) lead to a InvalidOperationException, Should Check if it is modal before assign DialogResult
- mui:ModernFrame Can the animation be removed?
- Is MUI developing stopped? HOT 16
- Templase and background HOT 1
- Flexibility to control text transformation HOT 2
- Who knows how to jump to the TAB page by clicking a table row
- Clone the repo and run, error occured
- [deleted]
- Cannot install version 1.0.9
- screenshots missing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mui.