Forums

Version 1.6 beta thread
Last Post 02 Apr 2015 07:25 PM by Filip Dušek. 14 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Filip DušekUser is Offline
Advanced Member
Advanced Member
Posts:684


--
30 Mar 2015 03:18 PM
    To help everyone with porting to new 1.6 version I created short video

    http://www.youtube.com/watch?v=gmL41ssgy9k

    If you have any question or problem with 1.6b, please, post it here.
    jetbusterUser is Offline
    New Member
    New Member
    Posts:15


    --
    31 Mar 2015 07:55 AM
    Im not sure what is wrong, and it's not bad just inconvenient but the designer in vs community 2013 does not recognise the xmlns from EmptyKeys.UserInterface.Designer so I cannot visually see what I have written in xaml, It still generates properly it just says Invalid Markup.
    Filip DušekUser is Offline
    Advanced Member
    Advanced Member
    Posts:684


    --
    31 Mar 2015 08:12 AM
    hmm designer does this to me sometime with another user control libraries. Closing everything and rebuilding usually helps. Just to be sure, check that WPF library is .NET 4.5 (full) and that you use full namespace in XAML (including name of the library).

    <ek:UIRoot   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 xmlns:ek="clr-namespace:EmptyKeys.UserInterface.Designer;assembly=EmptyKeys.UserInterface.Designer"            
                 mc:Ignorable="d" d:DesignHeight="640" d:DesignWidth="800" Background="#FF202020">
    


    I don't have Community version, but afaik it should be pretty much VS Pro so I hope that it's not some crazy incompatibility. Do you have same problem with Blend?
    jetbusterUser is Offline
    New Member
    New Member
    Posts:15


    --
    31 Mar 2015 08:30 AM
    Yeah I have all of those things done, Isn't blend meant to be inside VS? :L Do they even let you download it any more :S
    Is there a file that is missing that defines all the xmlns things in a way for VS
    Filip DušekUser is Offline
    Advanced Member
    Advanced Member
    Posts:684


    --
    31 Mar 2015 08:53 AM
    Blend for Visual Studio 2013 is part of the VS installer since Update 2 (i think) and no, Blend is not inside Visual Studio. It's separate program. Reference to library and namespace in XAML is all what you need so I have no idea, what's wrong.
    jetbusterUser is Offline
    New Member
    New Member
    Posts:15


    --
    31 Mar 2015 09:08 AM
    so you use .net 4.5, and build on anycpu? the only thing I can find on google is whether those match
    Filip DušekUser is Offline
    Advanced Member
    Advanced Member
    Posts:684


    --
    31 Mar 2015 09:27 AM
    yes, Designer library is .NET 4.5 AnyCPU
    jetbusterUser is Offline
    New Member
    New Member
    Posts:15


    --
    31 Mar 2015 10:05 AM
    weird, I guess Ill pop a question on Stack Overflow
    Filip DušekUser is Offline
    Advanced Member
    Advanced Member
    Posts:684


    --
    31 Mar 2015 10:26 AM
    oh one more thing, check if designer is not blocked by your OS

    http://blogs.msdn.com/b/delay/p/unb...dfile.aspx
    jetbusterUser is Offline
    New Member
    New Member
    Posts:15


    --
    31 Mar 2015 10:53 AM
    ah that's the ticket!
    KatumiesUser is Offline
    New Member
    New Member
    Posts:18


    --
    02 Apr 2015 05:52 PM
    I have one problem.

    I updated to monogame 3.3 and using EK 1.6b.
    Code builds, UI is generated, no errors. How ever, when i go check the XAML, it says "Invalid Markup" and thus, designer is disabled.
    This is what i get to error list:

    Error	1	The name "UIRoot" does not exist in the namespace "clr-namespace:EmptyKeys.UserInterface.Designer;assembly=EmptyKeys.UserInterface.Designer".	
    Error	2	The name "UIRoot" does not exist in the namespace "clr-namespace:EmptyKeys.UserInterface.Designer;assembly=EmptyKeys.UserInterface.Designer".	
    Error	3	The type &#39;ek:UIRoot&#39; was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.	
    Error	4	The attachable property &#39;Background&#39; was not found in type &#39;UIRoot&#39;.	 


    And as i said, it works otherwise, but i can't use the designer.
    Filip DušekUser is Offline
    Advanced Member
    Advanced Member
    Posts:684


    --
    02 Apr 2015 06:49 PM
    Same thing tho, be sure that Designer DLL is not blocked by your OS (URL above).
    KatumiesUser is Offline
    New Member
    New Member
    Posts:18


    --
    02 Apr 2015 07:03 PM
    Yeah, i unblocked it, but did not help. It generates the UI, but still it says that its missing stuff. I have cleaned and rebuilt multiple times.
    KatumiesUser is Offline
    New Member
    New Member
    Posts:18


    --
    02 Apr 2015 07:22 PM
    I don't know what happened. It works now. I removed the designer dll and added it again. Even thou cleaning should make it copy the dll again, i think it was still blocked, as you said..
    So even thou i did unblock it and then cleaned ( thus copying the dll again ) and i made sure that it was not blocked, re-adding it to project did something and now it works.

    Sorry
    Filip DušekUser is Offline
    Advanced Member
    Advanced Member
    Posts:684


    --
    02 Apr 2015 07:25 PM
    no problem, i hate that OS feature
    You are not authorized to post a reply.