<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Joshua Mwakio on Medium]]></title>
        <description><![CDATA[Stories by Joshua Mwakio on Medium]]></description>
        <link>https://medium.com/@mwakio.joshua?source=rss-8bc2cffa16c7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KGdXkC1BJXk2AlwjjDE4_A.png</url>
            <title>Stories by Joshua Mwakio on Medium</title>
            <link>https://medium.com/@mwakio.joshua?source=rss-8bc2cffa16c7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 04:55:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mwakio.joshua/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to integrate a BunifuVScrollBar with BunifuCustomDataGrid]]></title>
            <link>https://medium.com/bunifuframework/how-to-integrate-a-bunifuvscrollbar-with-bunifucustomdatagrid-f93af9ab6dcf?source=rss-8bc2cffa16c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/f93af9ab6dcf</guid>
            <category><![CDATA[ux-design]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[code]]></category>
            <dc:creator><![CDATA[Joshua Mwakio]]></dc:creator>
            <pubDate>Mon, 13 May 2019 06:39:02 GMT</pubDate>
            <atom:updated>2019-05-13T06:39:02.268Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>“ Design is a solution to a problem. Art is a question to a problem.”~ John Maeda</blockquote><p>In this article, I’ll demystify how you can replace a standard scrollbar with a BunifuVScrollBar in BunifuCustomDataGrid.</p><p><strong>BUT First, let talk about you.</strong> I hope that if you’re reading this you have installed the latest version of <a href="https://bunifuframework.com/free-download/">Bunifu UI for WinForms</a> in <strong>Visual Studio.</strong></p><blockquote>“I need to add a custom scroll vertical scrollbar in a BunifuDataGridView.”</blockquote><p><strong>I hear ya. </strong>You’re not alone. Do yourself a huge favour: <strong>Read this article, the </strong><a href="https://docs.bunifuframework.com/ui-for-winforms-docs"><strong>documentation</strong></a><strong>, and <em>don’t try to force things</em>. </strong>I will show you a very easy way to integrate and make it work.</p><p>How about a quick look at what we are going to achieve by the end of this article:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*US3rOyVGdeirRVVzHpCchw.gif" /></figure><p><strong>The UX design process:</strong></p><ul><li>First, we set the width and height of our form to be <strong>1075, 505 </strong>in the <strong>size</strong> property</li><li>Then set the <strong>font </strong>property of the form to be <strong>Segoe UI, 12pt</strong></li><li>Drag a BunifuCustomDataGrid to the form</li></ul><p><strong>Customizing BunifuCustomDataGrid</strong></p><ul><li>Set the <em>AutoSizeColumnMode</em><strong> </strong>property to<em> </em><strong><em>fill</em></strong></li><li>Have the <em>EnableHeaderVisualStyle</em><strong> </strong>set to <strong><em>false</em></strong></li><li>Then set the <em>GridColor </em>property to be the <strong><em>ControlLight </em></strong>color</li><li>Set the <em>SelectionMode </em>property to <strong><em>FullRowSelect</em></strong></li><li>The H<em>eaderBgColor </em>will have an R.G.B color of <strong><em>103, 89, 122 </em></strong>and the <em>HeaderForeColor </em>to have a color of <strong><em>white</em></strong></li><li>Go ahead to the <em>DefaultCellStyle </em>property and click the three little dots when the property is on focus. Here are the following properties you’ll give unto it when the dialog appears:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/353/1*2DahUCLfRf3IKQT-5BRHHg.png" /></figure><ul><li>The next property to set is to set the Background color<strong> </strong>of <em>BunifuCustomDataGrid</em> to <strong><em>white</em></strong></li><li>Move on to <em>CellBorderStyle</em><strong> </strong>property and set it to <strong><em>SingleHorizontal</em></strong></li><li>Then set the <em>ScrollBars </em>property to <strong><em>None</em></strong></li></ul><p><strong>Customizing the column header cells of BunifuCustomDataGrid</strong></p><ul><li>Set the <strong>ColumnHeadersBorderStyle </strong>to <em>none</em></li><li>Go ahead to the <strong>CellHeadersBorderStyle </strong>and click the three dots that appear when the property is on focus.</li><li>Set the following properties on the dialog box that shows up:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*kEUugQiMitW42NvxPjvOIQ.png" /></figure><ul><li>Click ok once done setting the properties then go ahead to the <strong>ColumnHeadersHeightSizeMode </strong>property and set it to <em>enableRisizing</em></li><li>Having enabled resizing we can set the <strong>ColumnHeadersHeightSize</strong> to a value “<em>52”</em></li></ul><p><strong>Tweaking the rows:</strong></p><ul><li>Click the three little dots of the<strong><em> </em></strong><em>AlternatingRowsDefaultCellStyle</em> property when on focus and set the following properties:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/353/1*j_TErAhQZvZMjtI4cnAtyw.png" /></figure><ul><li>Click ok and go ahead to set <em>RowHeadersVisible</em> property<em> </em>to <strong><em>false.</em></strong></li><li>Next, click the little plus(+) icon on the property named <em>RowTemplate </em>and set the <em>height </em>property to <strong><em>41</em></strong></li></ul><p><strong>Using the BunifuVScrollBar with the DataGrid:</strong></p><p>Drag the BunifuVScrollBar to the DataGrid and dock it to the right position of the DataGrid.</p><p>Let’s tweak the scrollbar: 😉</p><ol><li>Set its <em>BackColor, ScrollBarBorderColor, ScrollBarColor </em>properties to have a <strong><em>Control </em></strong>color</li><li>Make the <em>ThumbColor </em>property to have a <strong><em>Silver</em> </strong>color</li><li>Also, make sure that the <em>ThumbStyle </em>is set to<strong> <em>Inset</em></strong></li></ol><p><strong>Rendering data to BunifuCustomDataGrid</strong></p><p>This implementation is done with the C# language but the language logic could just as easily be implemented as with the VB.NET language.</p><ul><li>Add a new class named <strong>Persons </strong>to your project and write the following get and set properties to it:</li><li>Head to your design form and press F7 to view code.</li><li>In your form’s constructor, we’ll make a list of the type <strong>Persons</strong> class and assign the list to the <em>DataSource </em>of BunifuCustomDataGrid.</li><li>Here’s the code:</li></ul><p>Here are the three basic logic for making the BunifuVScrollBar scroll through the data:</p><ol><li>Get the <strong>total number</strong> of rows from BunifuCustomDataGrid and assign it to an <strong>int</strong> variable.</li><li>Use the int variable to set the M<strong>aximum</strong> property of BunifuVScrollBar.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*-oSAWVKD9JvOoF6Nw9b01Q.png" /></figure><p>3. Then we’ll use the <strong>Scroll </strong>event to capture the scrolling movements of BunifuVScrollBar</p><blockquote>“So what other purposes shall we do with this Scroll event ?”</blockquote><ul><li>We’ll get the values from the <strong>ScrollEventArgs </strong>object and assign it to an int variable.</li><li>Then the value will be used to set a value to the property named <em>FirstDisplayedScrollingRowIndex</em><strong> </strong>of BunifuCustomDataGrid.</li><li>This will then perform the magic of scrolling up and down on runtime on the data displayed from the DataGrid.</li><li>Here’s the scroll event code:</li></ul><h3>Take Away</h3><p>You made it here! <strong>Thank you</strong> for taking the time to read this. I hope you learned something and that it has been an awesome tutorial for you. I really look forward to reading your comments.</p><p>Have a happy and cheerful coding 👊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f93af9ab6dcf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bunifuframework/how-to-integrate-a-bunifuvscrollbar-with-bunifucustomdatagrid-f93af9ab6dcf">How to integrate a BunifuVScrollBar with BunifuCustomDataGrid</a> was originally published in <a href="https://medium.com/bunifuframework">Bunifu Framework</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A definitive guide for creating a Booking dashboard]]></title>
            <link>https://medium.com/bunifuframework/a-definitive-guide-for-creating-a-booking-dashboard-b4402fc53b66?source=rss-8bc2cffa16c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4402fc53b66</guid>
            <category><![CDATA[product-design]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[inspiration]]></category>
            <category><![CDATA[ux-design]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Joshua Mwakio]]></dc:creator>
            <pubDate>Tue, 08 May 2018 10:17:51 GMT</pubDate>
            <atom:updated>2018-05-08T10:17:51.396Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>“Creativity is inventing, experimenting, growing and having fun .”~Mary Lou Cook</blockquote><p>In this article I’ll walk you through designing a modern booking desktop interface that is generally robust in terms of its features for instance handling, examining and overseeing reservations.</p><p>We will be using the latest version of <a href="https://bunifuframework.com/">Bunifu UI Framework 1.5.4</a> that has new improved controls’ set.</p><p>How about we have a quick look at what we will achieve:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zoV7bo_iKDH4sXG8dsLUgA.gif" /></figure><h4>Controls Featured</h4><p>Here’s the controls’-set highlighted on the dashboard:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*pr0BCAMdzb1DMBL2098ssQ.png" /></figure><p><strong>What you will require</strong></p><blockquote><em>We’ll be utilizing </em><a href="https://bunifuframework.com/products/bunifu-ui-winforms/"><em>Bunifu UI for WinForms</em></a><em> and </em><a href="https://bunifuframework.com/products/bunifu-dataviz/"><em>Bunifu Dataviz</em></a><em> for the charts. Also, you require having the </em><a href="https://icons8.com/app"><em>Icons8 software</em></a><em> and </em><a href="http://just-color-picker.en.lo4d.com/"><em>Just Color Picker</em></a><em> for icons and picking colors respectively. Having downloaded Icons8, you require creating a folder for the icons in your Documents or Pictures folder where we’ll be dragging the icons selected and then later importing them to our Visual Studio project where appropriate.</em></blockquote><h4>The design process:</h4><ul><li>The first thing we need to do is to start a new project in Visual Studio, then choose a C# or VB.NET project and name your project “Booking app”. Once the form appears, drag the<a href="https://bunifuframework.com/bunifu-ui-winforms-docs/#bunifu-ellipse"> BunifuElipse</a> towards the form.</li><li>The next step is to right-click on the <a href="https://bunifuframework.com/bunifu-ui-winforms-docs/#bunifu-ellipse">BunifuElipse</a> component that you dragged in the form; select Properties and then change the property value <em>ElipseRadius</em> to <strong>‘9’</strong>:</li><li>The next move we should perform is to set the width and the height of the form; the width should have a value of <strong>1270 </strong>and the height should have a value of <strong>700. </strong>Set the backcolor of the form to have an R.G.B color of <strong>31,43,50</strong></li><li>Drag two panels to the form, then use the dock property to dock one panel to the <strong>left</strong> and the other panel should have a dock of type<strong> fill. </strong>Provide a backcolor of the left panel to have an R.G.B color of <strong>20,28,33</strong>.</li><li>In the fill panel drag another panel and dock it to the <strong>top. </strong>Set the backcolor of this top panel to have an R.G.B color of <strong>37,49,57</strong>.</li><li>Here’s what we expect to the current form:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OiOoWiOo4vIPv9HP-qlJ9g.png" /></figure><h4>The top panel</h4><ul><li>Drag a <a href="https://bunifuframework.com/bunifu-ui-winforms-docs/#bunifu-text-box">bunifuTextbox</a> to the top panel and set the following properties:</li><li>Add four pictureBoxes aligned side to side and also consider their positions, then set the appropriate icon as per this preview.</li><li>For the close maximize and minimize icons, add three other picture boxes to the top panel. Resize and position them to the right end of the top panel then set their anchor property to right.</li><li>The final output for the top panel should look similar to this:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Y-NJo35FSHen2neS4dOLw.png" /></figure><p>Let’s now design a custom dialog which pops up when the profile image in the PictureBox is clicked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/223/1*ldjZZx9xmqPey1T3miwo7w.png" /></figure><h4>Custom Dialog</h4><ul><li>Click the project tab in Visual Studio the select ‘Add Windows Form’.</li><li>Name your form as C<em>ustomDialogForm, </em>and click add.</li><li>Set the following properties:</li></ul><blockquote><strong><em>CustomDialogForm properties.</em></strong></blockquote><blockquote>Size:216,350.</blockquote><blockquote>StartPosition: manual.</blockquote><blockquote>BackColor: 71, 81, 87.</blockquote><ul><li>Then Drag a bunifu elipse and in the elipse’s property set its radius to <strong>9</strong>.</li><li>Here are the featured controls in the customDialogForm that we’re are required to drag and customize as per our preview:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*gXKmtn7Ysvuv1LN9TjPtBg.png" /></figure><ul><li>You can use <a href="http://just-color-picker.en.lo4d.com/"><em>Just Color Picker</em></a><em> </em>to copy the color values as per our preview.</li><li>Now we’re in the final part of making our customDialog “<strong>start rolling” </strong>😄</li><li>Navigate to the main form and in the top panel double click the profile PictureBox. You’ll be navigated to the code view click event of the pictureBox. Write the following code:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b20213f721aa59a8e8d04e71288c5134/href">https://medium.com/media/b20213f721aa59a8e8d04e71288c5134/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3875877c0437fbfdcd4b1701a74cb990/href">https://medium.com/media/3875877c0437fbfdcd4b1701a74cb990/href</a></iframe><p>Run the program and bingo! our custom dialog should be working.</p><h4>The left panel</h4><ul><li>First, let us give a meaningful name to the left panel. Name it as <em>navigationPanel.</em></li><li>Drag a PictureBox and a bunifuLabel adjusted side to side. Set a suitable menu icon for the PictureBox. For the bunifuLabel, we can set regular properties right from the design window without moving to the Properties tab, for example, customizing its text.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/366/1*E5iW5sljGUe248CRk4F6rA.png" /></figure><ul><li>Then drag a PictureBox below the above controls and place any logo of your choice.</li><li>Next drag a bunifuButton a to the panel, resize its width to match the panels’ width then set the following properties:</li></ul><blockquote>IdleBorderColor: 20,28,33</blockquote><blockquote>IdleFillColor: 20,28,33</blockquote><blockquote>IdleIconLeftImage: (set your appropriate icon)</blockquote><p>OnHoverState:</p><blockquote>BorderColor: 40,96,144</blockquote><blockquote>FillColor: 40,96,144</blockquote><blockquote>IconLeftImage:(set your appropriate icon)</blockquote><ul><li>Copy and paste three other bunifuButtons, then here you need only to change the icons that are in hover and idle state.</li><li>The final yield for the left panel should seem like this:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/170/1*yKe8jFZQSr5ZGyiTbH3oMw.png" /><figcaption>left panel/ Navigation</figcaption></figure><h4>The sliding panel</h4><p>Now let’s make a sliding movement animatios for the left panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ogg8tuehqq1bkplqJTanRQ.gif" /></figure><p><em>We’ll make use of </em><a href="https://bunifuframework.com/bunifu-ui-winforms-docs/#bunifu-transition"><em>bunifuTransition</em></a><em>, to achieve this type of effect.</em></p><ul><li>Drag <a href="https://bunifuframework.com/bunifu-ui-winforms-docs/#bunifu-transition"><em>bunifuTransition</em></a><em> component to the form</em></li><li>In the <em>name </em>property name it as <strong>hideAnimator</strong>. Then for the animation type choose <strong><em>particles.</em></strong></li><li>Drag another <a href="https://bunifuframework.com/bunifu-ui-winforms-docs/#bunifu-transition"><em>bunifuTransition</em></a><em> </em>component to the form. This time, name it as <strong>showAnimator. </strong>Choose the animation type as <strong><em>VertSlide.</em></strong></li><li>Finally drag another <a href="https://bunifuframework.com/bunifu-ui-winforms-docs/#bunifu-transition"><em>bunifuTransition</em></a><em> </em>component to the form, name it as <strong>logoAnimator. </strong>Choose the animation type as <strong><em>Rotate.</em></strong></li></ul><p>Let’s move to the interesting part where we’ll use the click event of the PictureBox to perform these animations for a sliding panel.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/052aa55920149f4e0eeccd11f85b8889/href">https://medium.com/media/052aa55920149f4e0eeccd11f85b8889/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7dddb4aa820f7b9ca4604e2734c47f0b/href">https://medium.com/media/7dddb4aa820f7b9ca4604e2734c47f0b/href</a></iframe><p>Now we should have our sliding panel working 😇.</p><p><em>Let’s move to the next frame…</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*wBLBjKrpWYTw59U9blUvdQ.png" /></figure><ul><li>We can start by adding the labels on the frame and tweaking its writings utilizing HTML tags!!. Yes, you read right 😄</li><li>Add a bunifuLabel to that frame</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/111/1*6e4PDU6pJK5PcvI9ah7JBQ.png" /></figure><blockquote>We have to accomplish this organization of content by simply utilizing one label with the assistance of HTML labels!</blockquote><ul><li>In the <em>Text</em> property is where we’ll put the HTML and CSS tags.</li><li>Here’s an HTML code snippet that we’ll put in the <em>Text </em>property to achieve the above format.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/07b9748add4c8eb01fe9f687a806da4d/href">https://medium.com/media/07b9748add4c8eb01fe9f687a806da4d/href</a></iframe><ul><li>Copy the code to the <em>Text </em>property of bunifuLabel. Here’s the preview:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/354/1*mXwj7ioAx2fSH95jGwMCaA.png" /><figcaption>The output of a text formatted with HTML and CSS</figcaption></figure><ul><li>Repeat the same procedure for the other two labels. It would be ideal if you note on the location of the<em> bunifuLabels </em>when placing them</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*pssPQvo-bBLlLyBmnPAlFA.png" /></figure><ul><li>Next, drag a bunifuLabel and three bunifuButtons and position them below the above controls. Set the text property as per from the preview.Also set the font property to <em>Segoe UI,</em>Size:10px<em>, C</em>olor: White.</li><li>For the bunifuButtons set the following properties:</li></ul><p>Note: Since we’re are going to later refer to the Bunifu buttons it will be wise to rename them to a more meaningful name.</p><blockquote><em>Button Text: </em>1st Quater.</blockquote><blockquote>Name:quaterOneBunifuButton.</blockquote><blockquote>Border radius:35px.</blockquote><blockquote><em>IdleBorderColor:51,122,183 .</em> Also for the<strong> idlefillcolo</strong>r use the same color values for border color.</blockquote><p><strong><em>Onhover</em></strong></p><blockquote><em>BorderColor:51,122,183.</em></blockquote><blockquote>Border radius:35px.</blockquote><blockquote>FillColor:31,43,50</blockquote><p>Repeat the same procedure for the remaining buttons, providing their color properties using <a href="http://just-color-picker.en.lo4d.com/"><em>Just Color Picker</em></a><em> </em>assistance.</p><p>Here’s the output of the current frame:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*vUw2I04NdSdaET4Lzh85Kg.png" /></figure><h4>Adding Bunifu Dataviz</h4><ul><li>The procedure is exceptionally straightforward. Drag the bunifuDataviz control to your form and position it beneath the above controls then resize it.</li><li>Next, set the accompanying properties: <strong><em>AxisLineColor:</em></strong><em>LightGray,</em><strong><em>AxisXFontColor:</em></strong><em>Gray,</em><strong><em> AxisXGridColor: </em></strong><em>Gray,</em><strong><em>AxisXThickness:</em></strong><em>1, </em><strong><em>AxisYFontColor:</em></strong><em>224,224,224, </em><strong><em>AxisYGridColor:</em></strong><em>t110,124,133, </em><strong><em>AxisYThickness: </em></strong><em>0.</em></li><li>We’re going to make functions in the code-view to display the charts and later call the functions in the timer_tick event and the three buttons.</li><li>Here’s the code:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/39084af30894a4d23f6e2c66ba334cc8/href">https://medium.com/media/39084af30894a4d23f6e2c66ba334cc8/href</a></iframe><ul><li>Now that was a heap of code composed… But we’re done with the DataViz! Satisfied that there are no bungles in the code😅.</li></ul><p>And now here’s our preview:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qU4AeswiOMZOHgvx-3D0Bw.gif" /></figure><p><em>Let’s move to the next frame…</em></p><p>Below is a map of all the controls used:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*9jH091_rxU8hqrwJWZWL2A.png" /></figure><p><em>So let’s begin:</em></p><ul><li>Go to <strong>Project </strong>&gt;<strong> Add User Control</strong>, and name your control Arrival analysis.cs.</li><li>Next, navigate to its properties and set its size to 760,220. Also for the backColor, we’ll use an R.G.B color value of 31,43,50.</li><li>Drag the above controls to the user controls and set its properties to mimic the above preview.</li><li>After you’re finished with designing the control, we can get to adding some code for it to have some dynamism in it. Here’s a preview:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*X40XHMvZ478DCJEV1pEu_g.gif" /></figure><ul><li>Navigate to the code view and type the following code:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/48af3f24c23055ba04150acb6e0bcfc5/href">https://medium.com/media/48af3f24c23055ba04150acb6e0bcfc5/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/43fad30c4d2cb42a94593805e2a06c07/href">https://medium.com/media/43fad30c4d2cb42a94593805e2a06c07/href</a></iframe><p>After completing the above step, we can now add the final touches for ensuring that the main form will render the user control. This is by building the solution and drag the user control to the main form.</p><p>Presently how about we move to the fascinating part where we’ll make another user control. Repeat the same procedure for creating a userControl and name it RecentActivity.cs.</p><p>Firstly off, see what we can use for the section:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*oQ7BJ_THb1IwgE4Q2aN-rg.png" /></figure><p>Drag the above controls to the user control and set its properties to mirror the above review.</p><blockquote>Note that the bunifuSeparotor has a height of<strong> 260. </strong>Also, it has been sent to back and the Bunifu CheckBox are on top of it. Furthermore, the default state of the checkbox is <strong>unChecked.</strong>For the colors, please guarantee that you’ve picked every one well (or sufficiently near the sneak peaks… )</blockquote><p>After completing the above step, we would now be able to include the last touches for guaranteeing that the User control will be rendered to the form This is by building the solution and drag the user control to the main form.</p><p>Here’s a review:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/294/1*t7_rgYFp54vrTBtQj80LPQ.gif" /></figure><p>How about we plan another user control. Rehash a similar strategy for making a userControl and name it Statistics.cs.</p><p>This is what we’ll be building:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/329/1*gqIZeHzcewT0cJaswKwicA.png" /></figure><p>Shouldn’t something be said about we see the controls <strong>highlighted</strong> in the segment before designing? That is correct. We should say something in regards to the controls featured.</p><p>Here isthe controls’ set:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*kYpa-3Z4paI70u_9sfZWqA.png" /></figure><p>Drag the above controls to the user control and set its properties to mirror the above review.</p><p><em>Let’s trace how we’ll achieve the above design for the drop-down:</em></p><ol><li><em>ForeColor</em>: 109,117,121.</li><li><em>IndicatorColor</em>:109,117,121.</li><li><em>ItemBackColor</em>:31,43,50.</li><li><em>ItemBorderColor</em>:31,43,50.</li><li><em>ItemForeColor</em>:109,117,121.</li><li><em>ItemHighLightColor</em>: GreenYellow</li></ol><p>After completing the above step and placing all the controls, let’s place a few items in the drop-down box.Navigate to the items property and provide the following string collections highlighted in this review:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*6AlfEug8xCEbtEXe_XPv-Q.png" /></figure><p>Next, we need to use the SelectedIndexChanged event of the drop-down to change the values for the progress bar and alter the<em> text </em>property of the labels. Here’s the code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3d3542b184c8c36640c8144d044d4ef3/href">https://medium.com/media/3d3542b184c8c36640c8144d044d4ef3/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5e3e92f9ee4d326d4dd476e261fa563a/href">https://medium.com/media/5e3e92f9ee4d326d4dd476e261fa563a/href</a></iframe><p>After writing that code, build and drag the statistics control to the main form then run. This is what we’ll achieve:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*QplBsKqcI1zuallMIExHuQ.gif" /></figure><p>Here’s a full preview of what we’ve made:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zoV7bo_iKDH4sXG8dsLUgA.gif" /></figure><h3>Conclusions</h3><p>That would have been a ton of work with normal controls available in .NET but has been simplified with help of Bunifu UI tools because of its adaptability and capacity to redo further.. I really hope you have learned something and if you have feedback or suggestions please leave me a comment below.In the event that you like the instructional exercise, a few applauds will go far!</p><p><em>Cheerful coding and planning. Have fun! </em>👊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4402fc53b66" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bunifuframework/a-definitive-guide-for-creating-a-booking-dashboard-b4402fc53b66">A definitive guide for creating a Booking dashboard</a> was originally published in <a href="https://medium.com/bunifuframework">Bunifu Framework</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Project analytics UX/UI dashboard Design]]></title>
            <link>https://medium.com/bunifuframework/a-project-analytics-ux-ui-dashboard-design-dc2eabb942e1?source=rss-8bc2cffa16c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc2eabb942e1</guid>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[product-design]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[csharp]]></category>
            <category><![CDATA[inspiration]]></category>
            <dc:creator><![CDATA[Joshua Mwakio]]></dc:creator>
            <pubDate>Thu, 15 Mar 2018 15:05:31 GMT</pubDate>
            <atom:updated>2018-03-16T07:47:33.987Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>“Beauty is more consequential in computing than anywhere else in technology because the software is so complicated. Beauty is the ultimate defense against complexity.” — David Gelernter.</blockquote><p>In this article, we’ll be making an uplifting work area dashboard. This Analytics Dashboard can be utilized to assess the potential benefits of a speculation or to impartially survey the estimation of a business or resource. We will be using the latest version of Bunifu UI Framework that has new improved controls’ set.</p><p>Let’s have an expeditious look of what we shall be working on:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*47HSGAiyn4gRKTo0X9S6Pw.gif" /></figure><h4>Controls Featured</h4><p>Here’s the controls’-set featured on the dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*Q3GC89QAecuU-C1nPijqsg.png" /></figure><h4>The Essentialities required</h4><blockquote>We’ll be utilizing <a href="https://devtools.bunifu.co.ke/features/">Bunifu UI Framework for WinForms</a> and <a href="https://devtools.bunifu.co.ke/dataviz/">Bunifu Dataviz</a> for the charts. Also, you require having the <a href="https://icons8.com/app">Icons8 software</a> and <a href="http://just-color-picker.en.lo4d.com/">Just Color Picker</a> for icons and picking colors respectively. Having downloaded Icons8, you require to create a folder for the icons in your Documents or Pictures folder where we’ll be dragging the icons selected and then later importing them to our Visual Studio project where applicable.</blockquote><h4>The design process:</h4><ul><li>The first thing we need to do is to start a new project in Visual Studio, then choose a C# or VB.NET project and name your project “Project Analytics”. Once the form appears, drag the BunifuElipse towards the form.</li><li>The next step is to right-click on the <a href="https://devtools.bunifu.co.ke/bunifu-ui-winforms-docs/#bunifu-ellipse">BunifuElipse</a> component that you dragged in the form; select Properties and then change the property value <em>ElipseRadius</em> to ‘9’:</li><li>The next move that we need to perform is to set our layout structure first using the panels. So we add two panels, dock one to the top, and the other to the bottom using the<em> Dock</em> property. Then apply the appropriate colors from our sneak preview with the avail of Just Color Picker:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*UaV4vdz7JxRclV3AhIDkVg.png" /></figure><h4>The top panel</h4><ul><li>Add five bunifuLabels and a pictureBox aligned side by side, and two bunifuImageButtons to the top panel.</li><li>In these bunifuLabels we can set common properties right from the design window without moving to the Properties tab.</li><li>Having set the right icon to the PictureBox, here’s a preview of a sample property set to the bunifuLabel from our preview:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*-dRZKMTzXgUVaRjS63kHZA.png" /></figure><ul><li>Repeat the same procedure for the other four bunifuLabel controls.</li><li>For the close and minimize icons, we need to utilize the bunifuImageButtons by setting the <em>Image </em>property with appropriate icons.</li></ul><p>The final output for the top panel should look similar to this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*NEcEhajjep-j3CktYj9WFg.png" /></figure><p><em>Let’s move to the next frame…</em></p><ul><li>We can start by adding the labels on the frame and customizing their texts using HTML tags!!. Yes, you read right. 😄</li><li>Add a bunifuLabel to that frame.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/90/1*CepwX3sDtalAQ6Uycv9xwA.png" /><figcaption>An HTML formatted bunifuLabel.</figcaption></figure><blockquote>We need to achieve this format of text by just using one label with the help of HTML tags!</blockquote><ul><li>In the <em>Text</em> property is where we’ll put the HTML and CSS tags.</li><li>Here’s an HTML code snippet that we’ll put in the <em>Text </em>property to achieve the above format.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/91733e70aae167ecd24e35d22b338e62/href">https://medium.com/media/91733e70aae167ecd24e35d22b338e62/href</a></iframe><ul><li>Copy the code to the <em>Text </em>property of bunifuLabel. Here’s the preview:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/333/1*SsWrPVYpnnkqLkc_sZQMRw.png" /><figcaption>The output of a text formatted with HTML and CSS.</figcaption></figure><ul><li>Repeat the same procedure for the other two labels.</li><li>Note that from our dashboard view the labels have their own icons. So we need pictureBoxes to place those icons. It would be ideal if you note on the location of the<em> </em>pictureBoxes when placing the icons<em>.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*_M_ERa_jpcXxQ0INDRZeDQ.png" /></figure><ul><li>Next, we’ll drag three Bunifu Progressbars to the form and align them horizontally, then position them as per each label above.</li><li>The new Progressbar has cool design stuff such as setting a gradient color to the progress color. This progress bar can be used to set the label we constructed to have different random values from the progress value.</li><li>Here’s the preview:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*e_IlZPxgR2TkFFIU0LDbNg.png" /></figure><ul><li>Let’s set some properties to all the bunifuProgressBars. Navigate to its properties tab and set the following properties:</li></ul><blockquote>ProgressBackColor: <strong>39,53,85.</strong> ProgressColorLeft: <strong>lavender blush. </strong>ProgressColorRight: <strong>255,192,128. </strong>Animation<strong>: 2</strong></blockquote><p><em>You can set other property colors to the other bunifuprogressBars.</em></p><ul><li>Next, we’ll require a timer to perform the above activity. As usual drag the timer to the form. Double click it to navigate you to the code view. As always, it will explore you to the timer_tick event.</li><li>We should type the accompanying code to make the bunifuProgressbar get some random value:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9fd53a0552207573f3ff719f409bf98a/href">https://medium.com/media/9fd53a0552207573f3ff719f409bf98a/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/38bf003ba850804d128b3ef1ca80fec2/href">https://medium.com/media/38bf003ba850804d128b3ef1ca80fec2/href</a></iframe><p>And we’re now done with that task. Here’s a preview:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*2YYr0SdwS2tOsZuRV0eoYg.gif" /></figure><ul><li>Drag a bunifuCircleProgressBar to the left side of the form. The intention of this control is to show an average progress from the three tasks displayed by the bunifuLabels, i.e. <em>Back-end, Front-end and Design.</em></li><li>But First, let’s set the following properties to the bunifuCircleProgressBar: <strong><em>ProgressBackColor: </em></strong><em>94, 104, 132, </em><strong><em>ProgressColor: </em></strong><em>GainsBoro, </em><strong><em>ForeColor: </em></strong><em>Silver.</em></li><li>Also, note that there is a text above the bunifuCircleProgress. Place one bunifuLabel to have that text and set the following two properties: <strong><em>ForeColor: </em></strong><em>white,</em><strong><em> Font: </em></strong><em>Courier New.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*ZHe-Ymqy7F21ypInIBokbg.png" /></figure><ul><li>Add the following code to the timer_tick event</li></ul><pre>//C# code<br>int Average = (num1 + num2 + num3) / 3;<br>bunifuCircleProgressbar1.Value = Average;</pre><pre>//VB.NET code<br>int Average = (num1 + num2 + num3) / 3<br>bunifuCircleProgressbar1.Value = Average</pre><ul><li>Build the project and run it. Here’s its preview:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*tTYSxngeeI1hrMC425MLVQ.gif" /></figure><h4>Adding Bunifu Dataviz</h4><ul><li>The procedure is exceptionally straightforward. Drag the bunifuDataviz control to your form and position it beneath the above controls then resize it.</li><li>Next, set the accompanying properties: <strong><em>AxisLineColor:</em></strong><em>transparent,</em><strong><em> AxisXFontColor:</em></strong><em>transparent,</em><strong><em> AxisXGridColor: </em></strong><em>transparent,</em><strong><em>AxisXThickness:</em></strong><em>0, </em><strong><em>AxisYFontColor:</em></strong><em>transparent, </em><strong><em>AxisYGridColor:</em></strong><em>transparent, </em><strong><em>AxisYThickness: </em></strong><em>0.</em></li><li>We’re going to make a function in the code-view to display the charts and later call the function in the timer_tick event.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4d828a9f2665f8ce0ef5f51115bdd488/href">https://medium.com/media/4d828a9f2665f8ce0ef5f51115bdd488/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ec23332d84513a1349c8bcf86fb883cf/href">https://medium.com/media/ec23332d84513a1349c8bcf86fb883cf/href</a></iframe><ul><li>We are now able to call the above function in our timer_tick event and pass the random values to its parameter:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/137ab143e5eacde2b615e5c1c183842a/href">https://medium.com/media/137ab143e5eacde2b615e5c1c183842a/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c3a6f31dfb5c723537b71d2a55a58673/href">https://medium.com/media/c3a6f31dfb5c723537b71d2a55a58673/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/137ab143e5eacde2b615e5c1c183842a/href">https://medium.com/media/137ab143e5eacde2b615e5c1c183842a/href</a></iframe><ul><li>Now that was a heap of code composed… But we’re finished! Guarantee there are no blunders in the code before running our Dashboard venture 😅.</li></ul><p>And now here’s our preview:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*D408iGdPQZrdb3eCnDej1Q.gif" /></figure><ul><li>Next, we need to put <a href="https://www.thoughtco.com/description-of-legend-3123909">Legends</a> right beside the chart. Legends, give a short portrayal of data being displayed using charts. They enhance lucidness and understanding whenever there are numerous information-focuses.</li><li>Likewise, we have to mark the DataViz in the X and Y-axis.</li><li>This should be effortlessly possible using Bunifu Labels and panels. The panels can be resized to a small size, then set their back color property to the colors displayed on the Dataviz control.</li></ul><blockquote><strong>Note:</strong><br>For the bottom panel, we should set a PictureBox, a Bunifu Label and a Link Label then set the suitable properties.</blockquote><h4>Finally…</h4><p>The grand and final interface should mirror this magnificence:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*4OorrNfdWxlfAC3NSIk6GA.gif" /></figure><h3><strong>Conclusions</strong></h3><p>That would have been a ton of work with normal controls available in .NET but has been simplified with help of Bunifu UI tools due to it’s flexibility and ability to customize further. I really hope you have learned something and if you have feedback or suggestions please leave me a comment below. If you like the tutorial some claps will go a long way!</p><p><em>Cheerful coding and planning! </em>👊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc2eabb942e1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bunifuframework/a-project-analytics-ux-ui-dashboard-design-dc2eabb942e1">Project analytics UX/UI dashboard Design</a> was originally published in <a href="https://medium.com/bunifuframework">Bunifu Framework</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I designed a PC Maintenance UI/UX dashboard]]></title>
            <link>https://medium.com/bunifuframework/how-i-designed-a-pc-maintenance-ui-ux-dashboard-e861f4242aef?source=rss-8bc2cffa16c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/e861f4242aef</guid>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[inspiration]]></category>
            <category><![CDATA[product-design]]></category>
            <category><![CDATA[csharp]]></category>
            <category><![CDATA[ux-design]]></category>
            <dc:creator><![CDATA[Joshua Mwakio]]></dc:creator>
            <pubDate>Wed, 14 Feb 2018 09:43:11 GMT</pubDate>
            <atom:updated>2018-02-14T13:57:48.212Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article we’ll be creating an inspirational desktop dashboard, courtesy of <a href="https://dribbble.com/lukasdubay">Lukas Dubay</a> ‘s <a href="https://dribbble.com/shots/3698343-Cleanup-app-dashboard-concept/attachments/828225">Cleanup app dashboard concept</a> using <a href="https://devtools.bunifu.co.ke/">Bunifu UI</a> and <a href="https://docs.microsoft.com/en-us/dotnet/visual-basic/developing-apps/windows-forms/power-packs-controls">Microsoft Visual Basic PowerPacks</a> controls that we will download and integrate it in Visual Studio.</p><p>Here’s a sneak preview of the design we shall be working on:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*i6LOxV5eVG9cOHQpeVQkPA.gif" /><figcaption>Credit: <a href="https://dribbble.com/shots/3698343-Cleanup-app-dashboard-concept">Cleanup app dashboard concept</a> by <a href="https://dribbble.com/lukasdubay">Lukas Dubay</a></figcaption></figure><h4><strong>Controls Featured</strong></h4><p>Here’s the controls’-set featured in the dashboard.</p><p>Let’s take a quick preview of them before we begin our design tour:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*bQ0Jhz_KlnbyaZ6aCH_oWQ.png" /></figure><h4>Prerequisites</h4><blockquote>I will be using Bunifu Framework for WinForms in this example. If you do not have premium a premium version feel free to <a href="http://devtools.bunifu.co.ke/buy/">download the free trial here</a>. Also you need to have the <a href="https://icons8.com/">icons8 </a>software and a<a href="http://just-color-picker.en.lo4d.com/"> just in color picker</a> for selecting colors and icons respectively. Having downloaded the icons8 we need to set a folder for the icons in the My documents directory where we will be dragging the icons from the icons8 software and then later importing them to our visual studio project where necessary. For larger images we can use an image with 45 pixels and a small image with 25 pixels.Take note the color of the images when choosing your images.</blockquote><blockquote><em>“If I had an hour to solve a problem solution. I would spend the first fifty minutes determining how to… Frame the problem …for once I know the proper question to ask, I can solve the problem in less than 5 minutes.” — Albert Einstein</em></blockquote><h4><strong>The Design Process</strong></h4><ul><li>The first thing we need to do is to start a new project in Visual Studio, then choose a C# project and name your project as Dashboard demo. Once the form appears, set an appropriate size that can fill your controls then drag the <a href="https://devtools.bunifu.co.ke/bunifu-ui-winforms-docs/#bunifu-ellipse">BunifuElipse</a> towards the form:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*GCyPlgVd3HB6vsxQe6F8iw.png" /></figure><ul><li>The next step is to right-click on the <a href="https://devtools.bunifu.co.ke/bunifu-ui-winforms-docs/#bunifu-ellipse">BunifuElipse</a> tool that you dragged in the form; select Properties and then change the property value <em>ElipseRadius</em> to ‘9’:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*0FXPNlAyWAbs1PTO4lCj0w.png" /></figure><ul><li>The next move that we need to perform is to set our layout structure first using the panels and then later we can apply the appropriate colors from our sneak preview with the help of Just Color Picker so that we can choose the appropriate color for the panels and the form:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*wA_FNhJGKwzAzqtINHdr5g.png" /></figure><p>Before we forget, let’s make sure that we can drag our form to any part of the screen. We’re going to write some code in the code view window to ensure that we our form is “<em>draggable”</em>.</p><p>The key features of this code will be:</p><ol><li>To create an object instance of the Bunifu drag class.</li><li>Then we will use the top panel mouse-click events such as <strong>MouseMove</strong>, <strong>MouseDown</strong> and <strong>MouseUp</strong> events, and use the methods of the <em>Drag</em> class in those events to implement the appropriate functionality of it.</li></ol><blockquote>To automate the creation of the panel’s click events, go to the Events Properties section and double-click on the above-mentioned events...</blockquote><ul><li>Then add the following sample codes: 💪</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/175bc4bfbe9fb1d95b3cdd1baae737ac/href">https://medium.com/media/175bc4bfbe9fb1d95b3cdd1baae737ac/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0285a980006313e18e2b31216d6cae69/href">https://medium.com/media/0285a980006313e18e2b31216d6cae69/href</a></iframe><p>Your form should drag effortlessly as below 😊</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SlAKwClFeMKvQflF0QkafA.gif" /><figcaption>Form-dragging in action.</figcaption></figure><p><strong>The Top Navigation Controls</strong></p><ul><li>After laying out the structure of this dashboard we can then set our controls on it. The first controls that we need to have on our dashboard are the top-bar navigation controls which consist of four <a href="https://devtools.bunifu.co.ke/bunifu-ui-winforms-docs/#bunifu-image-button">BunifuImageButtons</a> that have icons on them.</li><li>The procedure is very simple... Drag the <a href="https://devtools.bunifu.co.ke/bunifu-ui-winforms-docs/#bunifu-image-button">BunifuImageButton</a> to the upper-left area of the panel and set the <em>BackColor</em> property to match with that of our preview. Thereafter, we need to remove the existing image by going to the <em>Image </em>property, and selecting <em>Project resource file</em> from the dialog then choosing the <strong>none </strong>option.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*V1Nz3ziFaEPLrYaB-ReQ0g.gif" /></figure><ul><li>Next, drag a PictureBox to the <a href="https://devtools.bunifu.co.ke/bunifu-ui-winforms-docs/#bunifu-image-button">BunifuImageButton</a>, make it smaller by resizing, then change the <em>BackColor </em>property to have the same color as that of our <a href="https://devtools.bunifu.co.ke/bunifu-ui-winforms-docs/#bunifu-image-button">BunifuImageButton</a>. Finally add our “home” image to the PictureBox by selecting it, and setting <em>Image </em>property to the “home” image in the <em>Project resources file </em>dialog. Our image is now set…</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*JNwi0EX68XEdCduI_CsCCA.gif" /></figure><ul><li>So now we need to make our menu button and the minimize and close buttons using the BunifuImageButton. What will be required to be done is that we shall drag the BunifuImageButton and set the appropriate locations for the menu,minimize and close buttons respectively as per the preview that we just saw.</li><li>The procedure is the same but here we will not use a picturebox again to set our pictures. The only required property-changes are setting the background color to transparent for all image buttons and then choosing the appropriate image for all the 3 buttons. Also, take a keen note that there’s a label after the menu button that we must create using our <a href="https://devtools.bunifu.co.ke/bunifu-ui-winforms-docs/#bunifu-custom-label">BunifuCustomLabel</a>; you also need to set the <em>ForeColor</em> property to the appropriate color and the font family set to <em>Microsoft YaHei UI; </em>the font size is 12pt:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*H32CoQM5MSWWrVyTQ6PLAw.png" /></figure><ul><li>Finally now we are done with our top navigation bar 😄… We now need to go to our next section and create the exact prototype that our preview has where some several components have been added.</li><li>The following are the needed components <a href="https://devtools.bunifu.co.ke/bunifu-ui-winforms-docs/#bunifu-progress-bar">BunifuCircleProgressbar</a>, <a href="https://devtools.bunifu.co.ke/bunifu-ui-winforms-docs/#bunifu-thin-button-2">BunifuThinButton</a>, <a href="https://devtools.bunifu.co.ke/bunifu-ui-winforms-docs/#bunifu-image-button">BunifuImageButton</a>, an Oval shape (<em>from the Microsoft PowerPacks Library)</em>, and a <a href="https://devtools.bunifu.co.ke/bunifu-ui-winforms-docs/#bunifu-custom-label">BunifuCustomLabel</a>.</li></ul><p>I will take you through creation and customization of the <a href="https://devtools.bunifu.co.ke/bunifu-ui-winforms-docs/#bunifu-progress-bar">BunifuCircleProgressbar</a>, <a href="https://devtools.bunifu.co.ke/bunifu-ui-winforms-docs/#bunifu-thin-button-2">BunifuThinButton</a>,User-controls and customizing the oval shape. For the remaining controls, we have already done a simple tutorial above. I hope you can incorporate them…</p><ul><li>So lets set our label written<em> “Lukas’s PC turned Up to”</em> by first setting its font family to <em>Microsoft YaHei UI</em>, with a font size of <em>12pt</em>. Then set its appropriate color to the one shown in the preview with the help of the J<a href="http://just-color-picker.en.lo4d.com/">ust-Color-Picker</a>. Also take keen note of the label’s location:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*UXXmBKS-usLU7jmGz1TdMg.png" /></figure><p><strong>Customizing the </strong><a href="https://devtools.bunifu.co.ke/bunifu-ui-winforms-docs/#bunifu-progress-bar"><strong>BunifuCircleProgressbar</strong></a></p><ul><li>Ensure that the first things to include in your form is: One Timer control and a <a href="https://devtools.bunifu.co.ke/forums/topic/bunifu-color-transition/">BunifuColorTransition</a> Control.</li><li>Drag the <a href="https://devtools.bunifu.co.ke/bunifu-ui-winforms-docs/#bunifu-progress-bar">BunifuCircleProgressbar</a> and resize it to an appropriate size then set out properties like the BackColor to<strong><em> transparent; t</em></strong>he ProgressBackColor property should be set to RGB color: <strong><em>59, 66, 88</em></strong>.<strong><em> </em></strong>For the <em>ProgressColor, </em>we shall introduce some C# codes and use timers and the BunifuColorTransition to change the colors.</li><li>Up to this level this 👇 should be your preview:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*2Ofi7nyovX7U6cFuEJpbyA.png" /></figure><p>Now let’s get to the interesting part where we will make the<em> ProgressColor</em> to change as the progress value continues to increase. At 34% of the progress value we shall make the timer stop the progress value from increment. In this code we shall focus on using recursive functions.</p><ul><li>Double click the timer control that we’ve dragged on our form. This should open the code window and then it should have created a function for the timer. Inside the function we shall write this code:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/56604f0dceb2fcdbcf42076c4e10dfe4/href">https://medium.com/media/56604f0dceb2fcdbcf42076c4e10dfe4/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b2d039d8f85f7edd8d4939e28d85566e/href">https://medium.com/media/b2d039d8f85f7edd8d4939e28d85566e/href</a></iframe><ul><li>Now let me ask a rhetorical question… Do you think this code can run and implement the required functionality that we wanted ? 😝 Naah!!!</li><li>We need to have our timer enabled from the properties in the design and make sure you set an appropriate interval; let’s set it to 1000. The interval takes values in terms of milliseconds.</li><li>Here’s a preview of the properties:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/292/1*KAS29KG9-jafEEzLOiP__w.png" /></figure><p>Now our code is up and running:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*l-QIfWSuhzq1MlGYqLOu1Q.gif" /></figure><ul><li>From our preview, there are controls that are below the <a href="https://devtools.bunifu.co.ke/bunifu-ui-winforms-docs/#bunifu-progress-bar">BunifuCircleProgressbar</a> that we need to make. They consist of a <a href="https://devtools.bunifu.co.ke/bunifu-ui-winforms-docs/#bunifu-thin-button-2">BunifuThinButton</a> that is sent to the back using the <em>SendToBack </em>property and three <a href="https://devtools.bunifu.co.ke/bunifu-ui-winforms-docs/#bunifu-image-button">BunifuImageButton</a>s that are brought to the front using the <em>BringToFront </em>property.</li><li>Then there is the image besides the above control 👆 with a circle. This is just a <a href="https://devtools.bunifu.co.ke/bunifu-ui-winforms-docs/#bunifu-progress-bar">BunifuCircleProgressbar</a> that is customized by setting the <em>LabelVisible</em> property to False, resizing it to a very small size and sending it to the back.</li><li>Thereafter, add your picturebox containing an image at the front of the <a href="https://devtools.bunifu.co.ke/bunifu-ui-winforms-docs/#bunifu-progress-bar">BunifuCircleProgressbar</a>:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/425/1*_a2OAcgz5Cjn9X_uOO6cZg.png" /></figure><p><strong>The User Controls</strong></p><blockquote>The purpose of the user controls is to group a set of controls and behaviors together in a re-usable way. You can put multiple instances of a control on a form. That’s the beauty because you can combine more than one control in a logical unit just like the group-boxes, but they’re similar to a form.</blockquote><p>So we’re going to create our first userControl. This is a preview of our first User control:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/157/1*00s-6rQMYZjICixqJ9-60g.png" /><figcaption>UserControl</figcaption></figure><blockquote>The featured Bunifu and window controls are: <a href="https://devtools.bunifu.co.ke/bunifu-ui-winforms-docs/#bunifu-custom-label">BunifuCustomLabel</a>, an oval shape, a pictureBox, <a href="https://devtools.bunifu.co.ke/bunifu-ui-winforms-docs/#bunifu-thin-button-2">BunifuThinButton</a> and<a href="https://developer.team/dotnet/18811-bunifu-framework-manager-152.html"> BunifuElipse</a>.</blockquote><p>Let’s get started!</p><ul><li>Click the <strong>Project </strong>tab on the Visual Studio Toolbar then select “Add User Control”.</li><li>Name the control as “MaintenanceControl” and click ‘Add”. This will take you to a new kind of a form.</li><li>Drag the <a href="https://developer.team/dotnet/18811-bunifu-framework-manager-152.html">BunifuElipse</a> control as always and then go to the properties of your <a href="https://developer.team/dotnet/18811-bunifu-framework-manager-152.html">BunifuElipse</a> and set the radius to value ‘9’. Also make sure that the size of the form is<strong><em> 160, 198.</em></strong></li><li>Next we need to set a background color to an R.G.B color of:<strong><em> 39, 45, 59 </em></strong>and then we start to add the featured controls inside set their appropriate color using the toolbox.</li><li>For the label we set the <em>text </em>property to “Maintenance” and we need to set the <em>ForeColor</em> to: <strong><em>123, 130, 146 .</em></strong></li><li>Then for the oval shape we will drag it from the Toolbox,and drag the points by maximizing or minimizing the shape to form a circle. Change properties such as the <em>FillColor</em> to have an R.G.B color of :<strong><em>36, 40, 52.</em></strong> Also we need to set the <em>BorderColor</em> property that has R.G.B color of <strong>39, 45, 59 </strong>and the <em>FillStyle</em> property should be Solid.</li></ul><blockquote>For these colors that I have stated, try using J<a href="http://just-color-picker.en.lo4d.com/">ust Color Picker</a> for the easiness in selection of colors.</blockquote><ul><li>Having set those properties, we can now put a PictureBox in front of the oval shape and import the appropriate picture as per the preview we had seen.</li><li>Then we need another PictureBox on the lower left of the oval shape that we made. I usually call it the <em>statePhoto </em>property.<br>Our preview should be looking as follows:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/166/1*26ETS1hkJThhQFu_wsn9cg.png" /></figure><ul><li>So now we can now drag the B<a href="https://devtools.bunifu.co.ke/bunifu-ui-winforms-docs/#bunifu-thin-button-2">unifuThinButton</a> and add the following properties to it:</li></ul><ol><li>For the active and idle fill color, set their R.G.B values to <strong><em>48, 53, 78</em></strong></li><li>The idle and active fore colors should have R.G.B values of 27, 225, 210.</li><li>The idle and active line color should be set to<strong> transparent.</strong></li><li>Also we need to label <em>ButtonText</em> to “AUTOMATIC” and set its font to <strong>Microsoft Sans Serif</strong>, having a size of<strong> 9.75pt</strong>, and the style should be <strong>Bold.</strong></li><li>Lastly, we’re going to add a <a href="https://devtools.bunifu.co.ke/bunifu-ui-winforms-docs/#bunifu-custom-label">BunifuCustomLabel</a> having the text “Last run today: ” which uses the same properties as per the preview shown:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/157/1*00s-6rQMYZjICixqJ9-60g.png" /><figcaption>User Control</figcaption></figure><p>Let’s design another User Control... At this juncture you can add a new control having the same properties as we did for the first one only that we need to change our content for this user Control. This control will be having 2 labels and have a PictureBox and another small PictureBox on the lower left and the oval shape.</p><p>Here is the sample of the user control that we’ll be designing:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/175/1*k2xQCRdrXHq8FoI6_yh31w.png" /><figcaption>User control that can have properties to set its own picturebox and labels</figcaption></figure><p>In this control I will be focusing on creating our custom properties for the user control using C#.</p><ul><li>The first thing we should do is go to the code view and type or add the following:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4393724b4e754a2de15da01f0b68137d/href">https://medium.com/media/4393724b4e754a2de15da01f0b68137d/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/127065e4cfb85562d3366cab19d7278c/href">https://medium.com/media/127065e4cfb85562d3366cab19d7278c/href</a></iframe><p>For the top label, I have added a property known as <em>TopText </em>to set out its texts. It also has a property to change the font,the and the color. Similarly for the bottom label it has the<em> </em><strong>same</strong> properties for the <em>TopTex</em>t,and some of the properties have their default values.</p><p>The PictureBoxes have their own properties also for selecting the image or even making it visible or not visible. Ain’t that interesting? 👌</p><p>Our user controls are now fit to be used inside our form.</p><blockquote>Please note on the locations of the top labels for all user controls.They should have the same values for their locations. This is usually set with the<strong> Location </strong>property.</blockquote><p><strong>Implementing our user controls</strong></p><p>Dragging our user controls to the form is the next step; position them well. So for the second user control since we have created our own properties, we can now set our labels and images in the Properties tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WiLTS35xuwXJET8PVMs9aQ.gif" /></figure><p>Do the same for the other cool remaining controls and set their appropriate properties.</p><p>For the bottom panel we should set a PictureBox, a Label, a Link Label and a thin button using suitable properties.</p><h4>Finally…</h4><p>The grand and final interface should mimic this beauty:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*8ePQ5YLP5z5apnd-mB1Vvw.png" /></figure><h3>Conclusions</h3><p>That was quite some work I must add, but pretty worth-it from the look of our final design…</p><p>So, I’m hoping you enjoyed this design-tour with <a href="https://devtools.bunifu.co.ke/">Bunifu UI</a> and WinForms.</p><p><em>Happy coding and designing! </em>👊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e861f4242aef" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bunifuframework/how-i-designed-a-pc-maintenance-ui-ux-dashboard-e861f4242aef">How I designed a PC Maintenance UI/UX dashboard</a> was originally published in <a href="https://medium.com/bunifuframework">Bunifu Framework</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>