prism

How do I associate a keypress with a DelegateCommand in Composite WPF?

感情迁移 提交于 2019-12-17 16:08:08
问题 I am building a composite application using CAL/Prism. The main region is a tab control, with multiple types of views in it. Each view has a custom set commands that it can handle which are bound to toolbar buttons at the top of the window. I've done this before in non-CAL apps by simply setting the InputBinding on the command, but I haven't been able to find any such mechanism in the source code for the CAL modules. My question is, what is the best way to hook up a keystroke to my view, so

Composite Guidance for WPF : MVVM vs MVP

假如想象 提交于 2019-12-17 15:36:37
问题 I am confused. Maybe you can help me :) I have been following the guidance of CAG and found the MVP pattern very natural to me. Suppose I have a UI-ready Model (for example : implements INotifyPropertyChanged), I use the presenter to bind this Model to a view (presenter knows an interface of the view), keeping my Code-Behind as small as possible handling only Bindings (Model and Commands) properties (or methods) or events for controls that don't have ICommand and in this case immediately

Region Manager can not find region inside of the custom popupwindow

孤街浪徒 提交于 2019-12-17 07:53:42
问题 I have a ShellView using interactivity objects with prism's PopupWindowAction for show my custom settings view. And my ShellViewModel contain InteractionRequest object and a Delegate Command that will fire the user interaction. After user fired interaction, custom settings view (DataFeedManagerView) appear center of ShellView. In My DataFeedManagerView, there is a list of DataFeeds (ListBox control) on the left side and there is datafeed specific settings view (ContentControl with set Region

Custom MVVM implementation Vs. PRISM

ぐ巨炮叔叔 提交于 2019-12-17 06:36:28
问题 This question is inspired from this closed question: What does Prism actually offer the developer? And is it worth it? I have already implemented my own custom MVVM implementations in enterprise applications. I am interested in knowing: Why should I learn PRISM (specifically PRISM, not other MVVM frameworks)? Benefits of PRISM over custom MVVM implementation and Is it worth the investment in learning PRISM? I hope this question is not subjective and everyone please don't get into arguments :)

Apache Falcon数据集管理和数据处理平台

故事扮演 提交于 2019-12-16 19:10:01
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> jopen 4年前发布 | 67K 次阅读 分布式/云计算/大数据 Apache Falcon Apache Falcon 是一个面向Hadoop的、新的数据处理和管理平台,设计用于数据移动、数据管道协调、生命周期管理和数据发现。它使终端用户可以快速地将他们的数据及其相关的处理和管理任务“上载(onboard)”到Hadoop集群。 Apache Falcon解决了大数据领域中一个非常重要和关键的问题。升级为顶级项目是该项目的一个重大进展。Apache Falcon有一个完善的路线图,可以减少应用程序开发和管理人员编写和管理复杂数据管理和处理应用程序的痛苦。 用户会发现,在Apache Falcon中,“基础设施端点(infrastructure endpoint)”、数据集(也称 Feed )、处理规则均是声明式的。这种声明式配置显式定义了实体之间的依赖关系。这也是该平台的一个特点,它本身只维护依赖关系,而并不做任何繁重的工作。所有的功能和工作流状态管理需求都委托给工作流调度程序来完成 下面是Falcon的架构图: 从上图可以看出,Apache Falcon: 在Hadoop环境中各种数据和“处理元素(processing element)”之间建立了联系; 可以与Hive/HCatalog集成;

PropertyChanged event null after setting DataContext

会有一股神秘感。 提交于 2019-12-14 03:11:05
问题 I am setting the DataContext for my View in the View's Constructor to an instance of my ViewModel, just standard stuff. Shortly thereafter, an UPDATE_RECENT_DOCUMENTS_LIST Event fires from the Event Aggregator which my ViewModel catches correctly. A property is changed and the onPropertyChanged method is called, but it fails as the PropertyChanged event is null. The very next thing I do is an action to the UI which raises a CREATE_PROJECT Event and the same ViewModel is receiving events,

Using ApplicationCommands in WPF PRISM

余生颓废 提交于 2019-12-14 03:06:35
问题 After studying several Q&A on stackoverflow, some tutorials and of course the official documentation, I trying to use ApplicationCommands in my WPF Prism MVVM application. My current approach After trying different solutions I found out, I ended up with following constellation: I am using the AttachCommandBindingsBehavior class mentioned in this answer, which will be used like this in the view: <UserControl> <i:Interaction.Behaviors> <localBehaviors:AttachCommandBindingsBehavior

WPF PRISM event subcriptions not dying

妖精的绣舞 提交于 2019-12-14 02:15:12
问题 I have a PRISM RegionManager with a couple of region - a Ribbon region on the top, and a main content region for my view underneath it - fairly basic. The app starts with a "home" view in the main content area. When I click a button on the Ribbon, I inject a second view into the content area and navigate to it in the region manager. When I click a button on this view, it should be removed and the original view should be shown. I'm currently doing this using the RegionManager.Add() method to

Xamarin Forms with Prism: Remove a page from the stack

こ雲淡風輕ζ 提交于 2019-12-14 01:29:55
问题 When I navigate from page A to page B, I need to remove page A. How can I do this with Prism's navigation service in Xamarin Forms? 回答1: Another approach would be to have your page implement INavigationAware and in the OnNavigatedFrom , call Navigatin.RemovePage(this) . 回答2: There are a few scenarios that people run into on this one. As a common example say you have a LoginPage, and once the user successfully logs in you want to Navigate to the MainPage. Your code might look something like

Cannot use a DependencyObject that belongs to a different thread than its parent Freezable - prism

守給你的承諾、 提交于 2019-12-14 01:05:09
问题 I have came across a problem while developing a WPF application. The application is based on Prism. The application boots using the prism bootstraper and before loading any Window, the app opens a modal dialog on a different thread (STA), and then a bunch of stuff are loaded (services and etc.) The dialog is open during that time and allows to notify the user on the progress of the application start-up process (using event aggregator to pass the updates). When loading is done, bootstraper