{"id":169,"date":"2021-02-01T12:21:51","date_gmt":"2021-02-01T04:21:51","guid":{"rendered":"https:\/\/www.tonghin.com.my\/blog\/?p=169"},"modified":"2021-02-01T12:21:52","modified_gmt":"2021-02-01T04:21:52","slug":"fresh-start","status":"publish","type":"post","link":"https:\/\/www.tonghin.com.my\/blog\/2021\/02\/01\/fresh-start\/","title":{"rendered":"Fresh start!"},"content":{"rendered":"\n<p>My first week have just passed at Tong Hin and all what I can say is, it is a new experience for me. <\/p>\n\n\n\n<p>The first week wasn&#8217;t easy, I was exposed to many areas I have never encountered before or heard about, but honestly, it is a great experience to explore more and get to learn new things especially with the guidance and help of my supervisor. <\/p>\n\n\n\n<p>I got exposed to Bitbucket, Sourcetree, and Dropbox. I got to know that Bitbucket and Sourcetree are alternatives that can be used instead of GitHub. <\/p>\n\n\n\n<p>Creating stashes was also something I got to learn, in which you can save changes that have been made to the codes and apply them again after some time.  <\/p>\n\n\n\n<p>InputBindings is used to bind an input to a command or invoke a command upon input given by the user. The input can be given from the keyboard or mouse gestures. However, the focus should be adjusted in which the application is set to have an area of focus where the command is executed depending on the area where the user gesture is detected.<\/p>\n\n\n\n<p>Delegate Commands are part of the interface ICommand, in which the delegate commands are used to invoke methods that are assigned to commands when the command&#8217;s execute and canExecute methods are called. <\/p>\n\n\n\n<p>Next I was introduced to converting ICommands to become delegate commands and using multiple views into another view. In other words, to use methods in a class in another class.<\/p>\n\n\n\n<p>Resource dictionary are XAML files that can be reused across the application without the need of writing the same code over and over again. With resource dictionary, referencing to the XAML will allow the class or the view class to get access to that part of the code. However, I was having trouble using the Inputbindings method into the resource dictionary, because the dictionary is not able to recognize the function. <\/p>\n\n\n\n<p>Basically, for this week I was able to use the Escape key to open dialogues, and the dialogue displayed uses the cancelDialogueView as well as I was able to create a resource dictionary which needs adjustments to be made next week.  <\/p>\n\n\n\n<p>Hopefully by next week I would be able to accomplish more and learn more to share it with you guys, see you all on my blog next week \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My first week have just passed at Tong Hin and all what I can say is, it is a new experience for me. The first week wasn&#8217;t easy, I was exposed to many areas I have never encountered before or heard about, but honestly, it is a great experience to explore more and get to &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.tonghin.com.my\/blog\/2021\/02\/01\/fresh-start\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Fresh start!&#8221;<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[53,55,56,54],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Fresh start! | Tong Hin&#039;s Blog<\/title>\n<meta name=\"description\" content=\"C# commands including ICommand and Delegate commands, Resource dictionary as in XAML files and input bindings using gestures performed by users.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.tonghin.com.my\/blog\/2021\/02\/01\/fresh-start\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fresh start! | Tong Hin&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"C# commands including ICommand and Delegate commands, Resource dictionary as in XAML files and input bindings using gestures performed by users.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.tonghin.com.my\/blog\/2021\/02\/01\/fresh-start\/\" \/>\n<meta property=\"og:site_name\" content=\"Tong Hin&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2021-02-01T04:21:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-01T04:21:52+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"2 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#organization\",\"name\":\"TONG HIN MACHINERY\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/\",\"sameAs\":[\"https:\/\/www.youtube.com\/channel\/UC60EoxJMNbu8mV0LuEGfrBg\"],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/wp-content\/uploads\/2020\/10\/web_logo_180_180.jpg\",\"width\":180,\"height\":180,\"caption\":\"TONG HIN MACHINERY\"},\"image\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#website\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/\",\"name\":\"Tong Hin&#039;s Blog\",\"description\":\"Sharing About Technology\",\"publisher\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.tonghin.com.my\/blog\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2021\/02\/01\/fresh-start\/#webpage\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/2021\/02\/01\/fresh-start\/\",\"name\":\"Fresh start! | Tong Hin&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#website\"},\"datePublished\":\"2021-02-01T04:21:51+00:00\",\"dateModified\":\"2021-02-01T04:21:52+00:00\",\"description\":\"C# commands including ICommand and Delegate commands, Resource dictionary as in XAML files and input bindings using gestures performed by users.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2021\/02\/01\/fresh-start\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.tonghin.com.my\/blog\/2021\/02\/01\/fresh-start\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2021\/02\/01\/fresh-start\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2021\/02\/01\/fresh-start\/\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/2021\/02\/01\/fresh-start\/\",\"name\":\"Fresh start!\"}}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2021\/02\/01\/fresh-start\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2021\/02\/01\/fresh-start\/#webpage\"},\"author\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#\/schema\/person\/11b81d489377d44deb601a79a57599ee\"},\"headline\":\"Fresh start!\",\"datePublished\":\"2021-02-01T04:21:51+00:00\",\"dateModified\":\"2021-02-01T04:21:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2021\/02\/01\/fresh-start\/#webpage\"},\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#organization\"},\"keywords\":\"Input binding,Resource dictionary,Stashes,XAML\",\"articleSection\":\"Experiential\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.tonghin.com.my\/blog\/2021\/02\/01\/fresh-start\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#\/schema\/person\/11b81d489377d44deb601a79a57599ee\",\"name\":\"Faizah Chaibou\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5c69df35ce6d69b7d1b66311b4144ea8?s=96&d=mm&r=g\",\"caption\":\"Faizah Chaibou\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/posts\/169"}],"collection":[{"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/comments?post=169"}],"version-history":[{"count":6,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/posts\/169\/revisions"}],"predecessor-version":[{"id":175,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/posts\/169\/revisions\/175"}],"wp:attachment":[{"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/media?parent=169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/categories?post=169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/tags?post=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}