binding

What is the Relevence of Braces in an XAML Binding Path Declaration

时光总嘲笑我的痴心妄想 提交于 2020-01-14 00:30:35
问题 All, the question is a simple one. The following binding does not work, that is, the ascociated Trigger does not fire <DataTrigger Binding="{Binding dataAccess:DataGridTextSearch.IsAnyTextMatch, ElementName=dataGrid}" Value="false"> to fix this and make the binding work, we place the binding reference in braces, as follows <DataTrigger Binding="{Binding (dataAccess:DataGridTextSearch.IsAnyTextMatch), ElementName=dataGrid}" Value="false"> Why does adding the braces resolve the reference

Is it possible to use trigger setter to change ViewModel property?

孤街醉人 提交于 2020-01-13 19:49:06
问题 I am opening Popup using IsOpen bound to some hard to reach attached property. All I want is to somehow pass IsOpen value to ViewModel. Trying to use setter for this: <Popup StaysOpen="False" IsOpen="{Binding Path=(local:ListViewBehavior.IsColumnHeaderClicked), RelativeSource={RelativeSource FindAncestor, AncestorType=GridViewColumnHeader}}"> <Popup.Style> <Style TargetType="Popup"> <Style.Triggers> <Trigger Property="IsOpen" Value="True"> <!-- this is not possible --> <Setter Property="

Binding UserControl inside a ListView datatemplate WPF

空扰寡人 提交于 2020-01-13 19:23:10
问题 So i have this issue: I have created a UserControl (basically a textbox and label). This user control I am able to Bind using a Dependency Property. I have a ListView in which I can put a textbox in the datatemplate and bind the "text" property to the binded value. so far so good. but now if I try to put the UserControl into that very same scenario the DependencyProperty stops working. Here is the code: [ListView] <ListView x:Name="DtContactDetailListView" ItemsSource="{Binding}"> <ListBox

Windows Phone 7 - Available WCF bindings

余生颓废 提交于 2020-01-13 17:07:09
问题 I've been looking for documentation on the WCF Bindings supported by WP7 for a while and can't seem to find it. Can someone post a link to any documentation available they find. If it's from Microsoft (MSDN) even better. Thanks... 回答1: Search is your friend, even on MSDN ;) UPDATE: Bing is also a good search tool. First result for +wp7 +wcf +supported +bindings gives this article: What is not supported in WCF for Windows Phone? 回答2: I failed at finding a list on MSDN, so I just went through

Windows Phone 7 - Available WCF bindings

半腔热情 提交于 2020-01-13 17:06:38
问题 I've been looking for documentation on the WCF Bindings supported by WP7 for a while and can't seem to find it. Can someone post a link to any documentation available they find. If it's from Microsoft (MSDN) even better. Thanks... 回答1: Search is your friend, even on MSDN ;) UPDATE: Bing is also a good search tool. First result for +wp7 +wcf +supported +bindings gives this article: What is not supported in WCF for Windows Phone? 回答2: I failed at finding a list on MSDN, so I just went through

Ignore the Binding initialization

无人久伴 提交于 2020-01-13 10:33:53
问题 The inital problem is coming from a personal project about the polyline of the Xamarin.Forms.Map where the initialization is realized by a binding from the XAML part.. Let me be clear by an example : I have an object CustomMap.cs which inherit from Xamarin.Forms.Map (This file is in the PCL part -> CustomControl/CustomMap.cs) public class CustomMap : Map, INotifyPropertyChanged { public static readonly BindableProperty PolylineAddressPointsProperty = BindableProperty.Create(nameof

Binding ComboBox ItemsSource does not work in WPF

大憨熊 提交于 2020-01-13 09:48:11
问题 This is kinda strange cause every example I found there says I'm doing things the right way yet I was unable to get my ComboBox binding to work in WPF. I just created an empty WPF Application. public List<string> myCollection { get; set; } public MainWindow() { DataContext = this; InitializeComponent(); myCollection = new List<string> {"test1", "test2", "test3", "test4"}; } And here is my xaml for this: <Window x:Class="WpfApplication2.MainWindow" xmlns="http://schemas.microsoft.com/winfx

WPF two-way binding XML

本小妞迷上赌 提交于 2020-01-13 09:34:54
问题 I'm struggling to get to grips with WPF, more specifically performing two way binding of an xml file. Should I be using XMLDataProvider or is their another(better) option? The data is displaying fine but when I change an entry the changes aren't reflected in the xml file. The XML: <?xml version="1.0" encoding="utf-8" ?> <Licence> <Market> <Name>DAX</Name> <Begin>01/01/2010</Begin> <End>01/04/2010</End> </Market> <Market> <Name>DJI</Name> <Begin>01/07/2010</Begin> <End>01/10/2010</End> <

Quickly create dependency properties in VS

Deadly 提交于 2020-01-13 07:28:15
问题 Is there any way how to speed up dependency properties creating in VS? Like some template or refractoring option that will make dependency property out of normal one. Anything. I create a lot of dependency properties right now... Thank you for help 回答1: There are code snippets for dependency properties. (such as propdp ) See this article for more information. You can get some here. 回答2: The code snippet for DPs is propdp , enter that and hit tab twice, then cycle through the fields with tab

How load binary images in Xamarin

一世执手 提交于 2020-01-13 07:16:26
问题 I'm working with Xamarin Forms and I want to load a listview with imagecells, also I'm binding the data with XAML. My webservice provider returns me the binary code of the images, ¿someone knows how I can convert this to show the image? This is my XAML listview template: <ListView x:Name="lv_products"> <ListView.ItemTemplate> <DataTemplate> <ImageCell Text="{Binding Name}" Detail="{Binding Description}" ImageSource="{Binding Image, Converter={StaticResource cnvImage}}"> </ImageCell> <