binding

Can't register a C# generated selfsigned SSL certificate with netsh (error 1312)

北城余情 提交于 2019-12-23 16:38:36
问题 I have created a self-signed SSL certificate via C# (bouncycastle). It shows up in the local computer / personal store and looks exactly like the already existing localhost certificate from Microsoft. If I show the properties, it says: SSL Certificate add failed, Error: 1312 A specified logon session does not exist. It may already have been terminated. However, if I want to register this certificate via netsh, I get an error: netsh.exe http add sslcert ipport=0.0.0.0:{0} certhash={1} appid={2

WPF: Activate Trigger when a MVVM bound property changes

霸气de小男生 提交于 2019-12-23 16:09:30
问题 somehow I am going in circles here. Please forgive me if the answer to this question is obvious. I want to react to changed properties in the ViewModel in the View. When the properties (bool) change the View should start an animation (BeginStoryBoard). Actually in my application there are 4 of these properties each with its own name in the VM and two desired animations each (hide/show) for the respective 4 container view elements. When setting these Triggers (tried DataTrigger/Trigger

Angular: Binding to a observable property of service -> value doesn't update

断了今生、忘了曾经 提交于 2019-12-23 16:06:57
问题 I'm trying to communicate between two browser tabs/windows using BroadcastChannel API. The communication seems to work between two instances of angular service, but changes to the values of the observable are not shown. I'm trying to achieve this using mainly the async pipe. I have a demo of my problem at StackBlitz I have two component that are showed using the router. ( control and display ) I have a service ( MessagingService ) where I have a BehaviorSubject and BroadcastChannel API

How to pass to the Converter Parameter something that is not hard coded

风格不统一 提交于 2019-12-23 15:52:11
问题 Something like: <TextBlock Text="{Binding Text,Converter={StaticResource ccc},ConverterParameter=PersonName}"/> when Person name is Property of the class for example. Update: I've seen a solution that tells to inherit from DependencyObject and to implement IValueConverter. I want to know if there is something simpler. 回答1: The answer is straight-forward, but not what you want to hear. You can only target a binding at DependencyProperty on a DependencyObject. Binding does not inherit from DO,

How to bind property of View to property of class using Flex MATE

天涯浪子 提交于 2019-12-23 15:48:45
问题 Lately i discovered MATE (for Flex development) and was wondering: how do i bind a property in a view (actually a navigatorcontent component) to another property in a class so that they stay in synchronization (meaning that whenever the property in the class changes the property in the view also changes). So if we have a view called Target.mxml and a property targertProp how do we bind it to the class called SourceClass with property SourceProp? Thanks in advance 回答1: <Injectors target="

How to pass a UserControl with CommandParameter?

家住魔仙堡 提交于 2019-12-23 13:28:05
问题 I have using a DelegateCommand and i want to pass the UserControl with Command. #region OpenViewCommand private DelegateCommand<UserControl> _openViewCommand; public ICommand OpenViewCommand { get { if (_openViewCommand == null) _openViewCommand = new DelegateCommand<UserControl>(new Action<UserControl>(OpenView)); return _openViewCommand; } } public void OpenView(UserControl ViewName) { UserControl ctrl = (UserControl)ViewName; JIMS.Controls.Message.Show(ViewName.ToString()); } #endregion

WPF ListBox ListBoxItem Binding

我只是一个虾纸丫 提交于 2019-12-23 13:09:27
问题 I am going through the Sams book "Teach Yourself WPF in 24 Hours". At one point the authors show how you can bind a ListBox's selected-item value to a property. I get that, it's pretty straightforward. But when I try to create my own ListBox control with my own ListBoxItems, I can't seem to get it to work. The ListBox that works uses a system collection as its ItemsSource property: <ListBox x:Name="FontList" DockPanel.Dock="Left" ItemsSource="{x:Static Fonts.SystemFontFamilies}" Width="160" /

WPF - IsEnabled Binding to DependencyProperty not working properly

别来无恙 提交于 2019-12-23 13:09:05
问题 I have a dependency property defined in my window as below: public static readonly DependencyProperty IsGenericUserProperty = DependencyProperty.Register("IsGenericUser", typeof (bool), typeof (MainWindow)); public bool IsGenericUser { get { return (bool) GetValue(IsGenericUserProperty); } set { SetValue(IsGenericUserProperty, value); } } On my window's constructor I set the data context of the container holding the button: QuickListButtonsStackPanel.DataContext = this; I am binding the

Restart Accessibility Service After Crash

不羁岁月 提交于 2019-12-23 12:55:31
问题 In my Application there is a Service and an AccessibilityService . Now the Service is bound by the accessibility Service in order to receive information. My Service periodically checks if the AccessibilityService is enabled, and if it is not, it sends a notification to the user that it has to enable it. Once enabled, AccessibilityService starts to work. First it binds to my Service , and after, it begins to send information. The problem is if AccessibilityService crashes. It remains enabled

Restart Accessibility Service After Crash

心不动则不痛 提交于 2019-12-23 12:54:59
问题 In my Application there is a Service and an AccessibilityService . Now the Service is bound by the accessibility Service in order to receive information. My Service periodically checks if the AccessibilityService is enabled, and if it is not, it sends a notification to the user that it has to enable it. Once enabled, AccessibilityService starts to work. First it binds to my Service , and after, it begins to send information. The problem is if AccessibilityService crashes. It remains enabled