firstfloorsoftware / mui Goto Github PK
View Code? Open in Web Editor NEWModern UI for WPF
License: Microsoft Public License
Modern UI for WPF
License: Microsoft Public License
Hi, i don't want to track some critical pages in myapp so they don't get into history or be cached in memory. Is it somehow possible right now? I've searched the discussions and found some hacky way to clear history, but i wonder if pages are still cached in MUI somewhere?
Can you please point me to the code that is responsible for this process so i can have a look into it? Don't have much time to study the code, thanks!
In case we want to style the content, for whatever reason. :)
WindowStyle="None" is ignored in version 1.0.6.0.
Was working as expected in version 1.0.3.0
i want after user login main menu is added . is it possible????
Please help me
After downloading the source code and open it on VS 2015, the Shared Project fails to load.
It seems there is a problem with the following import:
It seems this Project is not found.
Any ideas on how to fix this?
Thank you.
Hi MUi Developers:
I want when user logged in to app then picture showed on place of logodata.
How to do?
please help me.
Hi,
I'm using ModernDialog on my application.
I would replace the text of the button of MessageBoxButton with the text in my language, is it possibile?
For example:
replace "Yes" with "Si" and anymore.
Thanks.
Hi,
I am very new to .net programming. Could you please tell me how to get rid of the back button that is shown by default in all themes?
I think that the ModernButton could have an option to function as a ToggleButton or a CheckBox.
Hello,
is there a way to change row foreground color from codebehind?
the bellow code only seem to work if I remove this line from default assets.
SolidColorBrush x:Key="DataGridCellForeground" Color="#333333"
code:
private void dg_LoadingRow(object sender, DataGridRowEventArgs e)
{
e.Row.Foreground = Brushes.Red;
}
for
e.Row.Background = Brushes.Red; it works correctly
Hi,
i tried to use the mui in an office addin and vsto.
As I know are the restrictions from vsto that I can't use wpf windows directly. The only way to use wpf is to use a wpf control in a wpf host element on a winforms window.
I tried to use the modernWindow or a wpf window in the host element and it is not working.
I am now at the point that I have no idea what is to change to use mui as a wpf control ?!
Have anyone another experience to solve this scenario?
Thanks for advice!
Freddy
Hi,
I'm new to WPF and found your MUI project very good and easy to follow.
I'm in the process of converting many of my WinForms to a modern WPF style, and started to go over your tutorials and guides for getting started with MUI.
I have an issue at the moment, in which I need to center the alignment of the headers in a DataGrid , which I have done, by applying a local resource style to the given page. This works and aligns the headers, however, because it is an explicit resource style, it also removes any application wide styles setters for that DataGrid header.
I can't seem to find the global setter that its altering the Modern-UI style for that header, and I wish to know where is located, so that I can move my two setters that allow me to center the header while retaining your style.
Any help would be appreciated.
Great work.
Thanks
Alain
I have added a new theme in SettingsAppearanceViewModel and corresponsing xaml files and image, (just like "hello kitty" one) but PropertyChanged is not being fired for My Theme change, Do i need to change somewhere else too ?
The code is here. Large parts are rewritten, not sure merging is an alternative.
Been rewriting things to controls so they can be styled and used in a wpf way.
Still pretty unstable I think.
I recently updated MUI to the latest version and now my title appears at the top of the window as displayed here:
But it used to be that the title was displayed vertically in the blue bar, as seen here with the text 'Form':
Is this a new setting or just how the UI is going to be from now on? I quite liked the previous way.
Hi,
i'm using the mui:ModernTab in my userControlParent.
I'm using VisualTreeHelpers.FindChild for get the items of UserControlA from userControlParent and it works, maybe because the UserControlA is defined as SelectedSource.
If I use VisualTreeHelpers.FindChild for get the items of UserControlB, it returns null, maybe because UserControlB is defined as Link.
How can I resolve?
Thanks.
OT. Are there a shortcode for post code in my post on github?
I have a ModernTab
control, to which I'm dynamically adding a Link
:
InstallationTab.Links.Add(new Link { DisplayName = "Review Configuration", Source = new Uri("/Views/InstallationProgress.xaml", UriKind.Relative) });
I'd like InstallationProgress.xaml
to load in the top frame instead of the current content frame.
How can I do this?
Why doesn't SourceEventArgs
contain only NewValue
and not OldValue
? This could really come in handy. I'm using ModernTab.SelectedSourceChanged
and I'd like to be able to use OldValue
to navigate back to the previous source if necessary.
Hello everyone,i'm a new bie in wpf and mui too, i'm using Modern UI WPF Navigation Application template in my application.
and i have an additional page, i have a home button on that page and i want to navigate to my home page when i click to that button.
i don't know how to do that.
Please help me.
I really like MUI. It has helped me take my application from something that looked like 3rd grader built to something a 3rd grader has not built. I was wondering if someone could help me figure out or point me in the right direction (preferably somewhere that can show examples lol learning wpf/c# on my own) on how to implement save user settings feature. Like if I click the "dark" theme, how can I have it set to when I open the program again, its under the dark theme vs the light?
Hi, I'm a little bit confused how to implement a statusbar, either fixed at the bottom or some kind of popup that disappears after a few seconds. everything i put in the Shell gets overwritten by the contentpage that is loaded and i don't want add a statusbar to every page i have. I've seen the status section in the wireframe of the example app but couldn't find out how to use it.
Currently they are simple properties and can not be bound, making localization hard to achieve here.
Is it possible to turn them into DependencyProperty ?
Hi,
Great work, very nice WPF UI.
I have a small application in which I am using mui. Everything is working as it should, however, I'm just wondering if there is a way to have a Menu Presentation Link generate an EventHandler, so that the main menu looks and feels the same for all the main actions. Such as Print, export, etc...?
In essence, I have an export to excel function in code behind, and I wish to simply have the same style within the menu group.
Any help is appreciated.
Alain
Hi,
I'm using the ModernTab, where i defined two link, for example "Link 1" and "Link 2".
As source, I not want use the external page, but I want define the content of Link 1 and Link 2 in the same UserControl where I defined a section for link 1 and a section for link 2.
It's possibile? How?
Thanks.
I'm following the tutorials in VS2013, with MUI installed via NuGet, and apparently ContentRoot doesn't exist when used as told in the wiki.
I am building an application with F# and modernUI (great library btw.). My problem is, that I generate my menu dynamically and so I use the fragment navigation. But in F# I don't have a Code Behind of my UserControl. My question is, is there a way to handle the navigation events without a code behind?
Greetings
Knerd
My main window is a modern tab with a group of links. Each link loads a different page.
the first link loads Page 0 which shows a listBox with several ListBox items.
The thing is when I put my listBox at the very top, or the very bottom of the page, it gets enabled, but if I move it anywhere else, it gets disabled. I've been searching for a solution for a while and I can't find a thing. Any help would be great.
Hi,
I am developing an WPF application using ModernUI Style version 1.0.5.
Few of my windows are used like a loading windows where I need the background to be solid color:
I set the background of these windows in UserControl
page which is the Content
of ModernWindow I am creating later:
var _loadingWindow = new ModernWindow
{
Style = (Style) Application.Current.Resources["EmptyWindow"],
Content = new LoadingPage(),
SizeToContent = SizeToContent.WidthAndHeight,
ResizeMode = ResizeMode.CanMinimize
};
After I updated ModernUI to most recent version 1.0.6, my loading windows changed to this mix of solid background and ModernUI theme background:
Is there a way how to change background of this windows to be completely solid colored?
P.S. I have read your manual here in Wiki pages: Create a custom theme
but with this I change appereance of all ModernWindows in my application and I don't want that.
Thanks for help in advance.
On a Surface Pro 2 when I use [assembly: DisableDpiAwareness] it causes an issue where touch and stylus input has a large offset to the bottom right. This causes trouble when trying to manipulate onscreen controls such as a button click without a mouse (which works fine).
How can I easily override the styling of the back button. It's currently buried in ModernWindow.xaml
, and I'd prefer not to compile in all of MUI into my solution.
<!-- back button -->
<controls:ModernButton Margin="8,10,0,0" HorizontalAlignment="Left" VerticalAlignment="Top"
EllipseDiameter="24" IconWidth="12" IconHeight="12"
IconData="F1 M 33,22L 33,26L 19.75,26L 27,33L 20.5,33L 11,24L 20.5,15L 27,15L 19.75,22L 33,22 Z"
Command="NavigationCommands.BrowseBack"
CommandTarget="{Binding ElementName=ContentFrame}"
ToolTip="{x:Static modernui:Resources.Back}"
WindowChrome.IsHitTestVisibleInChrome="True" />
I just want to make it a little bigger and give it a background color of the current highlight color (i.e. blue).
I have a request to make it look more like the huge blue back button in Internet Explorer.
Hi,
I'm with a problem with LinkGroups. My app got two LinkGroups (Principal, Cadastros), when I click for the first time on the Cadastros LinkGroup, the application continues showing the links of the Principal LinkGroup. Then I click on the Principal LinkGroup and again on Cadastros LinkGroup. Only then the links of the Cadastros LinkGroup is showed.
I don't have any clue of why this is happening.
Below is the MenuLinkGroup of the app.
<mui:ModernWindow.MenuLinkGroups>
<mui:LinkGroup DisplayName="Principal">
<mui:LinkGroup.Links>
<mui:Link DisplayName="Início" Source="/Views/Home.xaml" />
<mui:Link DisplayName="Gerenciar Nota" Source="/Views/Blank.xaml" />
</mui:LinkGroup.Links>
</mui:LinkGroup>
<mui:LinkGroup DisplayName="Cadastros">
<mui:LinkGroup.Links>
<mui:Link DisplayName="Emitente" Source="/Views/Blank.xaml" />
<mui:Link DisplayName="Tomadores de Serviço" Source="/Views/Cliente/ClienteListView.xaml" />
<mui:Link DisplayName="Serviços" Source="/Views/ServicoExecutado/ServicoExecutadoListView.xaml" />
</mui:LinkGroup.Links>
</mui:LinkGroup>
</mui:ModernWindow.MenuLinkGroups>
Hey,
If validation (the red corner) is displayed and you navigate to another page, you can see a short, annoying flickering. The same occurs when you navigate to a page where validation is displayed.
Could this bug please be looked at is it's really annoying? Or is there a workaround available?
Thanks!
So I have been using MUI for a while now and for some reason it has just stopped working. Just out of no where. I'm really needing this to work. Does anyone have any idea how to fix it? I have attached a picture to show the error that I had received. I also installed it with the extension manager for VS 2015 and I'm using Windows 10.
I want use LogoData as Notification center. Can I add MVVM command or OnClick event to LogoData?
Or is another way to add notification center like control to MainWindow?
I want to implement Drag and Drop in a MUI based application. I copied the sample from
http://www.codeproject.com/Articles/37161/WPF-Drag-and-Drop-Smorgasbord
but couldn't get it working in the MUI based application as "Application.Current.MainWindow.Content" always comes out to be null, Do we need anything else to get the content of the current Window ?
Menu of link I can add image ? as Menu Home can add image home front string Home
Hi,
I want to use a canvas to use an image with a dynamaic color according to theme apply (for example)
How I can get the current color of a the current theme, something like that don'twork : {Binding Path=Color, Source={StaticResource WindowBackgroundColor}}
I want to get anyone property of theme like C:_Sources\mui-master\1.0\FirstFloor.ModernUI\Shared\Assets\ModernUI.Dark.xaml
Thanks,
Laurent BROUCK
I have this LinkGroup in my Window:
C# <mui:LinkGroup DisplayName="Management"> <mui:LinkGroup.Links> <mui:Link DisplayName="Overview" Source="/Pages/Overview.xaml" /> <mui:Link DisplayName="Detail" Source="/Pages/Detail.xaml" /> </mui:LinkGroup.Links> </mui:LinkGroup>
In overview, a datagrid is shown. When an item is selected and than the detail link is clicked, I'd like to send a parameter to Detail where the details can be shown and edited.
Is there any way do do this properly? Or am I simply not supposed to use LinkGroups for this? If not, what should I use and how to do this??
Great library. Any plans to introduce a dialog style that resembles what we see in Windows 8.x/10?
When I updated to the newest version of MUI (v1.0.6) I got this error while trying to navigate to the settings tab. Even though the code I used seemed to be the same as used in the MUI demo app.
While debugging though the code I noticed that in the class 'ModernWindow.cs' the 'e.Source' property was used in the OnNavigateLink method. the value of this property was different than from the demo (in the demo it was the ContentFrame from the ModernWindow.xaml, in my project it was the ModernWindow itself). this seemed to cause the code to not be able to find the correct frame, so I tried changing it to 'e.OriginalSource' wich fixed the problem for me.
I'm not sure if this is the correct fix for the problem, but thought you should know.
Kind regards,
Koen
Hi,
I implemented a demo application that shows the usage of some of the Appearance settings in MUI. I cannot see how the Fixed Font was intended to be used, can you give me a hint on that one?
What is the control and property where the Fixed Font setting should be applied?
Hi everyone.
I have problem with MVVM light framework. When i raise change from ViewModel class, GUI don't change nothing
XAML code:
<Button Width="210" Height="35" Name="bmuiObiekt" Margin="5">
<Button.Content>
<TextBlock Text="{Binding Path=LabelObiekt, Mode=TwoWay}"/>
</Button.Content>
</Button>
c# code:
private string _labelObiekt = "Obiekt [{1} szt.]";
public string LabelObiekt
{
get { return _labelObiekt; }
set
{
if (_labelObiekt != value)
{
_labelObiekt = value;
RaisePropertyChanged(() => LabelObiekt);
}
}
}
change button text from task
net.marcorp.charon.modernui.Threading.Tasks.AppTaskScheduler.Current.RegisterTask(this.GetType().FullName, () =>
{
using (OracleCore.Charon.CharonDataSetTableAdapters.CHARON_TABLICA_INFTableAdapter tablica = new OracleCore.Charon.CharonDataSetTableAdapters.CHARON_TABLICA_INFTableAdapter())
{
LabelObiekt = string.Format(
"{0} [{1} szt.]",
"Obiekt",
tablica.GetInObjectEntryCount().GetValueOrDefault(0));
}});
Pleas Help
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.