leocb / materialskin Goto Github PK
View Code? Open in Web Editor NEWThis project forked from donaldsteele/materialskin
Theming .NET WinForms, C# or VB.Net, to Google's Material Design Principles.
License: MIT License
This project forked from donaldsteele/materialskin
Theming .NET WinForms, C# or VB.Net, to Google's Material Design Principles.
License: MIT License
hello
I'd like to using this great ideas,
but can't build after from this commit -> a1b2891
that error is:
Error CS1061 'MaterialSkinManager' does not contain a definition for 'ROBOTO_MEDIUM_10' and no accessible extension method 'ROBOTO_MEDIUM_10' accepting a first argument of type 'MaterialSkinManager' could be found (are you missing a using directive or an assembly reference?) MaterialSkin *\source\repos\MaterialSkin\MaterialSkin\Controls\MaterialListView.cs 100 Active
Error CS1061 'MaterialSkinManager' does not contain a definition for 'ROBOTO_MEDIUM_10' and no accessible extension method 'ROBOTO_MEDIUM_10' accepting a first argument of type 'MaterialSkinManager' could be found (are you missing a using directive or an assembly reference?) MaterialSkin *\source\repos\MaterialSkin\MaterialSkin\Controls\MaterialListView.cs 142 Active
Error CS1061 'MaterialSkinManager' does not contain a definition for 'ROBOTO_MEDIUM_12' and no accessible extension method 'ROBOTO_MEDIUM_12' accepting a first argument of type 'MaterialSkinManager' could be found (are you missing a using directive or an assembly reference?) MaterialSkin *\source\repos\MaterialSkin\MaterialSkin\Controls\MaterialListView.cs 255 Active
Error CS1503 Argument 2: cannot convert from 'int' to 'System.Drawing.FontStyle' MaterialSkin *\source\repos\MaterialSkin\MaterialSkin\Controls\MaterialListView.cs 255 Active
how do I fix it?
thanks
When switching to dark mode with a card control, it stays white but glitches all the controls inside it. This is with enforce backcolor with true and false.
I understand that the whole concept is to provide a consistent app theme, however i only need to have some forms in Light and the others in Dark!
Any workaround for this?
Thanks,
Current solution uses the Microsoft's GDI(+) library to draw the components, this is outdated.
One option is to ditch the GDI and use the Google's Skia lib instead, a mono-compatible port is available here and can be installed via Nuget. This would, however, break a lot of projects and would be a Major version increment and almost a complete lib rewrite. Further investigation and testing is required.
Can't use 'some' tools/controls from the reference MaterialSkin
I'm creating a project with C# targeting .NET Framework 4.7 on Visual Studio 2015.
I have included this much on my project.
using MaterialSkin;
using MaterialSkin.Controls;
public partial class Form1 : MaterialForm
var materialSkinManager = MaterialSkinManager.Instance;
materialSkinManager.AddFormToManage(this);
materialSkinManager.Theme = MaterialSkinManager.Themes.DARK;
materialSkinManager.ColorScheme = new ColorScheme(Primary.BlueGrey800, Primary.BlueGrey900, Primary.BlueGrey500, Accent.LightBlue200, TextShade.WHITE);
Tried dragging/double click controls in the toolbox to be included in the form.
What works:
Material Label
" radio button
" tab selector
" progress bar
" divider
Backcolor should be consistent, maybe we should force the container to get it's color from the parent backcolor?
The image bellow has the following structure:
Material Form -> Material Tab Control -> TabPage -> Material Card -> Panel -> Material Label
In this case, the panel should have the card back color
Hello,
I'm looking to extend the width of MaterialContextMenuStrip items because in my case some texts are too long and they're are cut. I've tried to modify in code some Size properties without effect for now. I was not able to find a good answer in google (And I'm not sure if it's something about the default ContextMenuStrip component or the overide with Material.Skin)
If you've any idea, let me know,
Thanks in advance,
Hello,
In a windows form project in VB.NET, the combobox text is not rendering properly when using light theme.
It happens after I hover the text at least once.
It is same as this issue #20 and it happens on two different computers at least.
Have a nice interface you want to showoff to the internet? Post it here!
As always, be careful with sensitive data.
Happy Codding ๐
Topic closed and previous posts deleted. Thanks for using the lib :)
When setting DataSource of a combobox, I get an error System.NullReferenceException
as soon as I click on the combobox.
Here is my code, working for regular .Net combobox :
Public Sub RefreshPosition()
Dim cmd As New MySqlCommand
Dim dt As New DataTable
Dim da As New MySqlDataAdapter
Dim sql As String
Try
sql = "Select * from Position"
With cmd
.Connection = connecter()
.CommandText = sql
End With
da.SelectCommand = cmd
da.Fill(dt)
cmbLoc.DataSource = dt
cmbLoc.ValueMember = dt.Columns(0).ToString
cmbLoc.DisplayMember = strTitlePNom
connecter().Close()
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Components:
The current Textbox is very good, but it is not suitable for placing many.
therefore, usability improves if the previous minimal Textbox is also implemented.
Width is limited, but height is not. Simply set the minimum size on the MaterialForm
code
If you instantiate Cards from any event in your code, the actual display seems to be way off, any ideas why ?
`
MaterialCard card = new MaterialCard();
card.Margin = new System.Windows.Forms.Padding(14);
card.MouseState = MaterialSkin.MouseState.HOVER;
card.Padding = new System.Windows.Forms.Padding(14);
card.Size = new System.Drawing.Size(200, 100);
flowLayoutPanel1.Controls.Add(card);
`
AS you can see, the first card is instantiated in design mode, looks fine, but the 3 others look weird.
Hi,
I got another funny bug the last week. When your Form that you show with the method xxx.ShowDialog()
contain a TextBox with the property password to true and if you have some text inside, you'll never receive back the DialogResult in your parent
Steps :
In your program.cs open a form like this
var form = new Form1();
var result = form.ShowDialog() == DialogResult.OK;
In your form, add a TextBox with the password property = true
If your TextBox contain any text when you call
this.DialogResult = DialogResult.OK/Cancel;
Close();
So your program will never get back the result.
The only workaround I find is to call something like
materialTextBoxPassword.Text = string.Empty;
Hello,
On the vanilla textbox I used to set autocomplete, but now that I switched my app to MaterialSkin I can't do that anymore, is there a possibility to add it back ?
Thanks for your time
Edit:
I just found out this controller is made of the RichTextBox, it cannot be made of the regular TextBox to add the feature ?
Hi,
Please take the right to left version of material Skin
i try but i cant to set the material drawer (menu) to right to left (right side of main form )or other controls
Thanks
When I open the MaterialComboBox during runtime and hoover over the text items I get the following result:
When I change the function NativeText.DrawTransparentText in CustomDrawItem in MaterialComboBox to NativeText.DrawString this doesn't happen. But then you would loose functionality, which you don't want. So something is going wrong in NativeText.DrawTransparentText.
Regards,
Rob
Inspired by the work done by spozt/BMS2MB I believe the message box could be a lot better.
I really like how Atlassian considers this UI pattern:
Use modal dialogs when you need a user response, to reveal critical information, or to show info without losing the overall context of a page. No other interactions on the main page can be accessed while a modal dialog is active. Modal dialogs are invasive to the user's workflow as they appear above all other content. Their usage is quite powerful, as it focuses the user on a single task. -- Atlassian Design System - Modals.
notes:
i have a question ,when i clsoing winform ,the form was closed ,but the process not stop,it was still runing,disposing was not disposed , it break at below :
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
When you make the material card invisible, the shadow is left behind when you open the form. It doesn't disappear when making the card visible and invisible whilst using the form.
Changing font or font size does not work in designer. Please look into the matter
Hello,
At first I had included MaterialSkin as a project in our solution. I've modified and improved some of our application screen without issues.
But after a build on our server, SonarQube was crying too much, so I've decided to put MaterialSkin as a *.dll in our project.
Steps I've done :
And since this, when I try to load Form having something from MaterialSkin, I've this issue.
The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: MainForm --- The base class 'MaterialSkin.Controls.MaterialForm' could not be loaded. Ensure the assembly has been referenced and that all projects have been built.
Call stack :
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.EnsureDocument(IDesignerSerializationManager manager)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)
Any idea ? I've tried classic things like clean NuGet Repo, Clean project, reboot VS19 (last available version), reboot computer, rebuild, etc.
I've also tried to create a new empty Form and just add inheritance to MaterialForm, the result is the same.
Compiling the project is working fine and launching it is also working, the UI is working well.
UP : I've done another test, removing the signing on MaterialSkin. And i've created a new Winform project with a empty Form, added my Nuget Package and inherit it, and it's giving me the same error.
Hello,
I've added a MaterialCheckedListBox in my UI. After that I've added some items in it. And when I want to clear the list to feed it with some other items, nothing happens in the UI.
materialCheckedListBoxRights.Items.Clear();
In code, "Items" is really cleaned in my case from 17 objects to 0.
Hello ๐
My project is translated in french and english. I'm using the Winform designer to edit and add translation. Some properties in some components are not triggered when I'm editing a properties, the result is that translation and adjustement are not working and it's modyfing the default layer. See below
Steps :
For now I saw this issue on :
Quick search on this issue gave me this https://stackoverflow.com/questions/26250972/net-localize-custom-control but not sure if it will solve this issue.
Hey,
I've recently discovered a bug when using MaterialSkin 2.0.0, basically when I use a control like slider, checkbox or combobox (and maybe more) then the background isn't transparent, but black. I've tried to set it to another color but still same thing. Don't know where the error could be, I've correctly installed it.
~ AnErrupTion
Hello,
Sometimes I can see 2 arrow like a little scrollbar in corner top right in my windows and when you resize your screen for example to made it bigger only its appearing>removing>appearing>removing>etc etc
I've tried to change some properties without results for now. Maybe someone have an idea to remove them definitely ? :)
PS : If I try to click on them or interact in any way, nothing happen
I use only the listview, how to change color scheme?
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.