[W8.1][UWP][C#] Using ContentControl within Flyout RRS feed

  • Question

  • I am currently developing a Modern UI app for Windows 8.1 which I will soon be retargeting to the Windows 10 universal app platform.  Currently on Windows 8.1, it seems I cannot use a ContentControl within a Flyout.  I tried and the ContentControl's contents always appear blank.  This cramps my style since I am used to using this XAML snippet:

    <ContentControl Content="{Binding}">
    		<DataTemplate x:Key="true">
    			<TextBox Text="{Binding Text, Mode=TwoWay}"/>
    		<DataTemplate x:Key="false">
    			<TextBlock Text="{Binding Text}"/>
    		<lib:BooleanConverter x:Key="conv" TrueValue="{StaticResource true}" FalseValue="{StaticResource false}"/>
    		<Binding Path="CanEdit" Converter="{StaticResource conv}"/>
    By any chance, will support for ContentControls within Flyouts be available on the Windows 10 universal app platform?  If it hasn't yet been added, I'd like to request it please.
    Friday, June 12, 2015 3:32 AM

All replies

  • If it doesn't work in present builds of Windows 10, it's not likely to work in the released version either.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Monday, June 15, 2015 4:12 PM