随笔分类 -  WPF&SILVERLIGHT

摘要:CommandParameter="{Binding}"改为CommandParameter="{Binding DataContext,RelativeSource={RelativeSource Self}}" ... 阅读全文
posted @ 2019-01-08 16:06 I'm CY 阅读(253) 评论(0) 推荐(0)
摘要:就两行代码,弄了我一天,上火 [Export(typeof(IWindowManager))] public class AddInWindowManager : WindowManager { protected override System.Windows.Window EnsureWindow(object model, object view, bool isDialog) { var window = base.EnsureWindow(model, view, isDialog); wind... 阅读全文
posted @ 2013-04-13 13:03 I'm CY 阅读(511) 评论(0) 推荐(0)
摘要:Winform 中放置 ElementHost 控件加载 wpf 的 UserControl在 WPF UserControl 中获取 winform 的方法 public partial class CrlDefinition : UserControl { public CrlDefinition() { InitializeComponent();this.Loaded += CrlDefinition_Loaded; } void CrlDefinition_Loaded(object sende... 阅读全文
posted @ 2013-03-24 11:38 I'm CY 阅读(370) 评论(0) 推荐(0)
摘要:<DockPanel> <Grid DockPanel.Dock="Bottom" VerticalAlignment="Bottom" Height="280"> <Grid.RowDefinitions> <RowDefinition Height="30"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> 阅读全文
posted @ 2013-03-18 22:54 I'm CY 阅读(4205) 评论(0) 推荐(0)
摘要:http://blogs.claritycon.com/blog/2008/11/building-a-column-major-uniformgrid-in-wpf/By default, UniformGrid displays it's children as follows:1 2 3 4 5 6 7 8 9I want to be as follows:1 4 7 2 5 83 6 9---------------------------------------------------- 1: <UniformGrid Rows="2" Column 阅读全文
posted @ 2012-12-08 23:24 I'm CY 阅读(474) 评论(0) 推荐(0)
摘要:http://stackoverflow.com/questions/1105726/wpf-toolkit-combobox-displaymemberpath-not-workingOLD<ContentPresenterx:Name="contentPresenter" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" HorizontalAlignment="{TemplateBindi 阅读全文
posted @ 2012-02-12 17:30 I'm CY 阅读(349) 评论(0) 推荐(0)
摘要:http://stackoverflow.com/questions/4244793/listbox-not-showing-items-horizontally-after-using-theme <ListBox.ItemsPanel> <ItemsPanelTemplate> <WrapPane Orientation="Horizontal"l></WrapPanel> </ItemsPanelTemplate> </ListBox.ItemsPa... 阅读全文
posted @ 2012-01-14 20:10 I'm CY 阅读(422) 评论(0) 推荐(0)
摘要:public class ViewModelBase : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; protected virtual void OnPropertyChanged(string propertyName) { PropertyChangedEventHandler handler = this.PropertyChanged; if (handler != nul... 阅读全文
posted @ 2011-08-31 22:54 I'm CY 阅读(169) 评论(0) 推荐(0)
摘要:http://timheuer.com/blog/archive/2009/05/20/silverlight-and-visual-studio-2010-beta.aspxInstall Visual Studio 2010 Beta 1Install Silverlight 2 SDK (if you attempt to run the Silverlight 2 tools instal... 阅读全文
posted @ 2009-06-14 19:30 I'm CY 阅读(229) 评论(0) 推荐(0)
摘要:[代码] 阅读全文
posted @ 2009-03-10 23:19 I'm CY 阅读(1041) 评论(0) 推荐(0)