<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Xaml on DVLUP</title><link>/en/tags/xaml/</link><description>Recent content in Xaml on DVLUP</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Thu, 02 Jan 2020 00:00:00 +0000</lastBuildDate><atom:link href="/en/tags/xaml/index.xml" rel="self" type="application/rss+xml"/><item><title>Custom TypingStarted and TypingEnded Events</title><link>/en/blog/2020.01.02-custom-typingstarted-and-typingended-events/</link><pubDate>Thu, 02 Jan 2020 00:00:00 +0000</pubDate><guid>/en/blog/2020.01.02-custom-typingstarted-and-typingended-events/</guid><description>&lt;p&gt;You know that little indicator in a chat that shows if someone is currently typing? I am working on a new post (coming soon, link will be here) that uses SignalR to communicate who is currently typing in a chat room along with the messages themselves.&lt;/p&gt;&#10;&lt;p&gt;To determine who is typing, I use a timer and the &lt;code&gt;TextChanged&lt;/code&gt; event. The timer logic itself is straightforward, in the &lt;code&gt;TextChanged&lt;/code&gt; event starts a timer.&lt;/p&gt;</description></item><item><title>Talk to the View</title><link>/en/blog/2019.04.16-talk-to-the-view/</link><pubDate>Tue, 16 Apr 2019 00:00:00 +0000</pubDate><guid>/en/blog/2019.04.16-talk-to-the-view/</guid><description>&lt;p&gt;There are many scenarios where a UI component might not have a Command or bindable property available for certain features that you need to access from the view model. There is a simple, but powerful, thing you can do to allow this and not break MVVM or testing capability, leverage the Interface.&lt;/p&gt;&#10;&lt;h2 id="scenario"&gt;Scenario&lt;/h2&gt;&#10;&lt;p&gt;Let&amp;rsquo;s imagine the scenario where we have a special ListView control that has a &lt;strong&gt;HighlightItem&lt;/strong&gt; method that can only be called with a direct reference to that control. There isn&amp;rsquo;t a Command or DependencyProperty (aka BindableProperty in Xamarin.Forms) alternative, so it has to be done in the code behind.&lt;/p&gt;</description></item><item><title>Easy XamlCompositionBrushBase</title><link>/en/blog/2017.06.18-easy-xamlcompositionbrushbase/</link><pubDate>Sun, 18 Jun 2017 00:00:00 +0000</pubDate><guid>/en/blog/2017.06.18-easy-xamlcompositionbrushbase/</guid><description>&lt;p&gt;The upcoming Windows 10 update, the Fall Creator&amp;rsquo;s Update, introduces a new design system, &lt;a href="http://fluent.microsoft.com/" target="_blank" rel="noopener"&gt;Microsoft Fluent Design System&lt;/a&gt;&#10;. The design system has 5 major building blocks:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Light&lt;/li&gt;&#10;&lt;li&gt;Depth&lt;/li&gt;&#10;&lt;li&gt;Motion&lt;/li&gt;&#10;&lt;li&gt;Material&lt;/li&gt;&#10;&lt;li&gt;Scale&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;You can use any of these in a multitude of ways, however Microsoft has made it very easy to use in the latest Preview SDK (16190). Some of the things that used to be relatively hard, or at the least verbose, can now be done with a few lines of code.&lt;/p&gt;</description></item><item><title>One XAML for UWP, Windows 8.1 and Windows Phone 8.1</title><link>/en/blog/2015.05.27-one-xaml-for-uwp-windows-8-1-and-windows-phone-8-1/</link><pubDate>Wed, 27 May 2015 00:00:00 +0000</pubDate><guid>/en/blog/2015.05.27-one-xaml-for-uwp-windows-8-1-and-windows-phone-8-1/</guid><description>&lt;p&gt;I was recently involved in a conversation on how to have the easiest way to maintain a XAML view across a UWP (Universal Windows Project) a Windows 8.1 and Windows Phone 8.1 projects. There are a few options and the most straight forward way to do it with a UserControl residing in a Portable Class Library. However&amp;hellip;&lt;/p&gt;&#10;&lt;p&gt;What if you wanted to have **tailored code for each **without littering your code with #ifdef but still share a XAML view?  The XAML View might be what you&amp;rsquo;re looking for. This is a tutorial on how to do just that. An example project is available for download at the end of the article. Let&amp;rsquo;s get started:&lt;/p&gt;</description></item><item><title>Custom Pivot Header with Animation</title><link>/en/blog/2015.04.09-custom-pivot-header-with-animation/</link><pubDate>Thu, 09 Apr 2015 00:00:00 +0000</pubDate><guid>/en/blog/2015.04.09-custom-pivot-header-with-animation/</guid><description>&lt;p&gt;I recently wanted to make a header with tabs for my app&amp;rsquo;s pages that have a Pivot. Something like Office Mobile, but without the drop-down menus. Here&amp;rsquo;s the result I got in my upcoming app. I decided to post a tutorial and provide a sample app.&lt;/p&gt;&#10;&lt;p&gt;[&lt;img src="../../../en/blog/2015.04.09-custom-pivot-header-with-animation/custompivotheader.gif" alt="CustomPivotHeader"&gt;&lt;/p&gt;&#10;&lt;p&gt;Notice the fast fade-in of the background color of the tab, this is important and is where you&amp;rsquo;ll be able to add your own flavor to the style after you&amp;rsquo;ve completed this tutorial. Ok, let&amp;rsquo;s get started!&lt;/p&gt;</description></item><item><title>Invalid XAML error updating from WP7</title><link>/en/blog/2014.08.04-invalid-xaml-error-updating-from-wp7/</link><pubDate>Mon, 04 Aug 2014 00:00:00 +0000</pubDate><guid>/en/blog/2014.08.04-invalid-xaml-error-updating-from-wp7/</guid><description>&lt;p&gt;We are now seeing the beginning of the fast decline of Windows Phone 7 as it exits the market over the next several months, many of you will need to act to update your app to at least Windows Phone 8.  I did this for all of my WP7 apps and there was one error that was In just about every upgrade:&lt;/p&gt;&#10;&lt;p&gt;An error on this XAML namespace declaration:&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;xmlns:controls=&amp;#34;clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls&amp;#34;&#10;&#10;```Previous to Windows Phone 8, the Pivot and Panorama controls were part of a toolkit. The Windows Phone team did a solid by included these in the OS, they also added new controls like the LongListSelector to replace the toolkit&amp;#39;s ListPicker . These controls are now found in the Phone namespace.&#10;&#10;It&amp;#39;s a very frustrating problem if you&amp;#39;re seeing it for the first time. Don&amp;#39;t worry, there is a really easy fix... Delete the xmlns:controls line and use only the xmlns:phone one or edit it and remove the &amp;#34;.Contols&amp;#34; part of the assembly pointer. Here is what it will look like after doing the edit option:&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;xmlns:controls=&amp;ldquo;clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone&amp;rdquo;&lt;/p&gt;</description></item><item><title>Denied?</title><link>/en/blog/2012.12.13-denied/</link><pubDate>Thu, 13 Dec 2012 00:00:00 +0000</pubDate><guid>/en/blog/2012.12.13-denied/</guid><description>&lt;p&gt;So, you got an email from DVLUP stating that your challenge submission was denied.  Why were you denied? What did you miss?  I wanted to write this post to share the top reasons for denial and how to fix it&amp;hellip; 90% of these are due to the fact you didn&amp;rsquo;t edit your WMAppManifest file.&lt;/p&gt;&#10;&lt;p&gt;Here are the top offenders:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Not all Live Tiles Sizes&lt;/li&gt;&#10;&lt;li&gt;No animated Tiles&lt;/li&gt;&#10;&lt;li&gt;Not all WP8 resolutions&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;#1- You need to have all three tile sizes enabled for your app. Here is a list of the tile sizes from the &lt;a href="http://msdn.microsoft.com/en-US/library/windowsphone/develop/hh202948%28v=vs.105%29.aspx#BKMK_Tilesizesandresolutions" target="_blank" rel="noopener"&gt;MSDN Documentation&lt;/a&gt;&#10;. To rectify this problem, simply toggle the &amp;ldquo;Support for large Tiles&amp;rdquo; property in your WMAppManifest file. See the image in answer #2 for more details.&lt;/p&gt;</description></item></channel></rss>