thielj / metroframework Goto Github PK
View Code? Open in Web Editor NEWThis project forked from peters/winforms-modernui
Metro UI of Windows 8 for .NET Windows Forms applications
Home Page: http://thielj.github.io/MetroFramework
License: Other
This project forked from peters/winforms-modernui
Metro UI of Windows 8 for .NET Windows Forms applications
Home Page: http://thielj.github.io/MetroFramework
License: Other
Hello,
I ran into an issue while using the MetroFramework onto an already existing project.
(awesome work btw)
Only my main form has the correct metro look, all the children forms called from the main one has the metro style, but still keep the windows borders around, even with BorderStyle sets to None (see screenshot below).
Is this a know issue or something I'm missing ?
Thanks
If you set TopMost in a MetroForm, you have to click on it twice to be able to click on a control in it (i.e. MetroTile)
Hello,
I'm trying to style my progress bars, i have tried both of the following:
Suggestion 1 (automatically created by VB)
With MetroProgressBar1
.Style = CType(ProgressBarStyle.Blocks, MetroFramework.MetroColorStyle)
.Visible = True
.Value = CInt(e.CurrentFileCopyProgress)
.Refresh()
End With
Suggestion 2 (how i imagine it should be)
With MetroProgressBar1
.Style = MetroFramework.MetroColorStyle.Red
.MetroProgressBarStyle = MetroProgressBarStyle.Blocks
.Visible = True
.Value = CInt(e.CurrentFileCopyProgress)
.Refresh()
End With
But when ever i use option 2, the program breaks and it reverts back to Suggestion 1's code.
Here is my original code which works flawlessly but with a normal ProgressBar not Metro Themed.
With ProgressBar1
.Style = ProgressBarStyle.Blocks
.Visible = True
.Value = CInt(e.CurrentFileCopyProgress)
.Refresh()
End With
Any help?
The scrollbar colour on the metro panel is defaulted to white even when the theme is set to dark
I'm trying to build it so I can fix the dropshadow infinite loop, radiobuttondesigner.cs is missing from the MetroFramework.design project.
Hi im trying to but a background image to my main form. Me.BackgroundImage = the image..
But it's not showing, is this not possible? I dont want to put a PictureBox and make it like a background because then i need to messa around with parenting for all the other element that will go on top and have transparency.
Hello,
Thanks in Advance
I am facing one problem as i listed below .Please suggest me solution.
When I write Code Like below then child form doesn't open
FrmTest.MdiParent = Me
FrmTest.Show()
But child opens
if i removes mdiParent Property from Code then it's working properly.
MetroMessageBox don't have a static method .Show as MessageBox, also, it is hard to use it for simple messages, since you have to manually add the controls
Currently the MetroFramework solution file refers to the XMLHelper project which isn't checked in to source control.
When I change the style of a metroTile by clicking in another metroTile at runtime, the new color is only set when the mouse passes over the component.
The code I'm using is simply:
private void mtlClientes_Click(object sender, EventArgs e)
{
mtlProdutos.Style = MetroFramework.MetroColorStyle.Orange;
}
Why are we unable to make the background transparent?
I have installed MetroFramework in VisualStudio2013 to use MetorUI.
However the applied font is 'Open-sans' and Korean front is very basic( not pretty :_( ).
I would like to change it to other font, could you let me know how to do it?
Hi,
If i dock something in a metrotabpage, lets say a regular listview, some small gray stripes and black (clickable) blocks appear in the upper left corner of the tabpage as some kind of overlay.
When clicking on one of the blocks this "overlay" disappears again.
Am i just missing something out? I Could attach a Image if you want to.
Thanks!
Visual Studio says all of my MetroContextMenu's have not been created, and as a result does not let me view the designer. When you try to manually create one as so, the constructor for the MetroContextMenu has a parameter "Container" and I do not know what to set for this. Instead I simply converted all of the context menus to regular Windows Forms controls.
Try to change the cursor in a MetroTextBox in design or runtime and the application will crash.
Not work with framework 4!!!!
Error:
Notice 1 the current target framework. "NETFramework, Version = v4.0, Profile = Client" does not include "System.Design, Version = 4.0.0.0, Culture = neutral
You wrote "Fixed issues with maximizing and restoring windows". Nevertheless I get serious problems when restoring windows from maximized state to normal state.
Windowstate.Normal -> Form moving -> shadow fine
Windowstate.Normal -> Form resizing -> shadow fine
Windowstate.Normal -> Windowstate.Minimized -> Windowstate.Normal -> shadow fine
Windowstate.Normal -> Windowstate.Maximized -> Windowstate.Normal (restoring) -> no shadow / shadow is gone
Neither moving the form nor resizing brings the shadow back. Only minimizing and restoring the form brings the shadow back.
I compiled the latest sources and using Windows 7 Professional.
Greetings,
Raffi
Error 1 Source file 'MetroRadioButtonDesigner.cs' could not be found \MetroFramework-master\MetroFramework.Design\CSC MetroFramework.Design
can not compile design control, thus can not run demo.
Important Can not see it in the repo either.
Ok i'm trying to setup when a textbox is clicked into the box clears,
I can do this with standard textboxs using the following:
Private Sub TextBox2_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs)
TextBox2.Text = ""
End Sub
How would i change it so can do it with a "Metro" textbox?
Tried the following:
Private Sub MetroTextBox2_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs)
MetroTextBox2.Text = ""
End Sub
But nothing happens. Any help?
Hi
I thank you for the source code of the program
But the style and theme of the source code that was due to the lack of coordination in NUGet DLL does not work here.
It also controls the default font font "Open-sans" does not change.
A valid active Window is needed to update the Taskbar
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.InvalidOperationException: A valid active Window is needed to update the Taskbar
at Microsoft.WindowsAPICodePack.Taskbar.TaskbarManager.get_OwnerHandle()
at Microsoft.WindowsAPICodePack.Taskbar.TaskbarManager.SetProgressState(TaskbarProgressBarState state)
Windows API Codeck: http://archive.msdn.microsoft.com/WindowsAPICodePack/Release/ProjectReleases.aspx?ReleaseId=4906
whenever i maximize the MetroForm, drop shadow disappear...
When I save the form's design, the sequence of the tab pages gets changed inside InitializeComponent() method of form designer.
I assigned a list (List<Requests>) as DataSource to grid. The Request class contain a Boolean value so that I get checkboxes in that column. The grid is showing normal windows application style checkboxes not MetroCheckboxes. Is there any workaround to get Metro Style checkboxes there?
Is there a possible way to do that? I change it in the backcolor property but doesn´t work.
The controls(Minimize,Maximize and Close buttons) of MetroForm don't get changed even if I change the Theme to Dark from Default. Could you please fix this issue? Although your screenshots shows correct theme for the controls.
I'm trying to create a custom theme, I copied it from Light, and changed some values. I put my themes.xml in main project folder AND solution folder, but I still don't know how to use it (in design or in run-time).
the dispose override for the dropshadow doesn't check to see if its about to create a loop with the window owners. This causes an exception to be thrown.
Calling Focus() on the control does not focus the internal textbox. The only way currently to focus the textbox is to click on it. I have managed to get by this issue by adding the following into the textbox class:
public new bool Focus()
{
return baseTextBox.Focus();
}
First of all great work.
Second, i noticed that the button control doesn't change style when i choose it from the properties and i cant find a way to change the font size
Thank you in advance.
i am working with metroStyleManager and StyleExtender and set all the property and hook my form name too but the problem is that when clicking on switch style & theme button then form's & other control's style & theme is not changing respectively.
can you guide me where to see if i am making any mistake. i must say that there is no good documentation for this framework for proper use. thanks
I have some labels that I've styled as regular, it works fine on Windows 7 and Windows 8 but under XP, it seems to trip this error.
I've tried taking the fonts from the MetroFramework.Fonts here and installing them but that doesn't seem to fix it either.
Probably a font windows XP is missing still though, any suggestions? Or is this a legitimate bug?
This is easily replicated by creating a simple MetroForm. Run said form and click out of it to lose focus, click back in it and a form (in my case, the default Windows one) will surround the inner edge of the form.
This was reproduced many times using Windows 8.1 RTM
Not a big issue, but according to your installation documentation, you are to change the base class to MetroFramework.Forms.Form, however there is no Form in MetworkFramework.Forms. It needs to be MetroFramework.Forms.MetroForm.
The MetroRadioButtonDesigner.cs is included in the MetroFramework.Design project but the file isn't checked into source control.
Is this capable with this fork?
Or do i need to revert back to original fork? https://github.com/viperneo/winforms-modernui
As this seems to support it.
Also how would i go about calling a Metro MessageBox?
OK, simple and stupid question i know.
I have the package installed on my project, i have all the options in my toolbox.
What i want to know is how to i change the existing form from standard to metro style?
I'm using VB 2013 Express.
I'm getting this from within MetroFramework.dll :(
i have installed all your processes from NUGET, and i have gotten the forms to adjust to the new framework but i cant find a listing of MetroFramework components to load in the toolbox. Can you give me some assistance?
thanks
dave
When you set a MetroProgressBar to Marquee style, if the Value reaches Maximum, the animation stops, and doesn't restart even when the Value is set to less than Maximum again.
If you try that, you can see the ProgressBar, gets stuck at the same point it stopped the first time
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.