English 中文(简体)
页: 1
原标题:Caliburn and datatemplates in Silverlight 3

是否有任何人知道,根据目标/观点显示观点的同一功能是否适用于银星3?

与此类似:

<Application.Resources>
<DataTemplate DataType="页: 1x:Type vm:CustomerViewModeliii">
    <view:CustomerView />
</DataTemplate>

<ContentControl Content="页: 1Binding Path=CurrentViewiii"/>

            public class RootViewModel : BaseViewModel

页: 1

private BaseViewModel _currentView;
public BaseViewModel CurrentView

页: 1
    get 页: 1 return _currentView; iii
    set
    页: 1
        _currentView = value;
        RaisePropertyChanged("CurrentView");
    iii
iii
public void ShowCustomer()
页: 1
    CurrentView = IoC.Resolve<Customerviewmodel>();
iii

iii

格式问题。 ......

页: 1

问题回答

如果你使用卡利伯,你可以采用这一看法。 模型将财产附在你的内容栏,以实现这一目标。





相关问题
Silverlight Datagrid RowEditEnded

I have a SL DataGrid that has two columns. I need to be able to catch any change to the a row and save it into an undo stack. I setup the event RowEditEnded and tried to add to the undo stack there. ...

Hosted Silverlight LOB Application - Authentication Models

Our application is built in VB6 and delivered in a SaaS model via Citrix. Our subscribers must first authenticate to the Citrix Login Portal (AD) which gives them access to their applications. Each ...

Unit Testing RIA Services

I have a domain services class that runs on the server in a silverlight application. I.e. the class is defined like this, public class UpgradeToolDomainService : DomainService { ... } I am using RIA ...

Silverlight 3 - FindName returns null

This looks a bug to me.. Using Silverlight 3 and i have a user control defined in XAML and trying to access the object during runtime returns a null. <Grid> <common:CommonGridEditPanel x:...

Localization of error message in Validation silverlight

I want to use localization feature for Validation messages, for eg- [Required(ErrorMessageResourceName = "RequiredField", ErrorMessageResourceType = typeof( ))] public string someText {...

How to enable scrollbars in silverlight 3.0

I have set my canvas width to 1500 and height to 1600 in my xaml page in silverlight 3.0. When I run the testpage I can t see scrollbars. So I am not able to scroll to view rest elements. I also need ...

热门标签