silverlight 4.0 - Does Caliburn.Micro support design time data? -
does caliburn.micro support design time data? tried out following steps; created simple hello world program. shellviewmodel derived off of ishell. running sample program show hello word @ run time. since view model derived off of ishell created dummy class derived off of ishell , used design time instance.
public class sampleshellviewmodel:ishell { #region ishell members public string helloworld { { return "hello world"; } } #endregion }
in view added design time context follows
<usercontrol x:class="helloworld.shellview" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:ignorable="d" xmlns:sampledata="clr-namespace:helloworld" d:designheight="287" d:designwidth="518" > <grid background="white" d:datacontext="{d:designinstance sampledata:sampleshellviewmodel, isdesigntimecreatable=true}"> <textblock name="helloworld" verticalalignment="center" horizontalalignment="center" fontsize="20" /> </grid>
is there missing? thanks
please, @ example of caliburn micro design data. derek beattie.
Comments
Post a Comment