随笔分类 - WPF&SILVERLIGHT
摘要:CommandParameter="{Binding}"改为CommandParameter="{Binding DataContext,RelativeSource={RelativeSource Self}}" ...
阅读全文
摘要:就两行代码,弄了我一天,上火 [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...
阅读全文
摘要:Winform 中放置 ElementHost 控件加载 wpf 的 UserControl在 WPF UserControl 中获取 winform 的方法 public partial class CrlDefinition : UserControl { public CrlDefinition() { InitializeComponent();this.Loaded += CrlDefinition_Loaded; } void CrlDefinition_Loaded(object sende...
阅读全文
摘要:<DockPanel> <Grid DockPanel.Dock="Bottom" VerticalAlignment="Bottom" Height="280"> <Grid.RowDefinitions> <RowDefinition Height="30"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions>
阅读全文
摘要: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
阅读全文
摘要:http://stackoverflow.com/questions/1105726/wpf-toolkit-combobox-displaymemberpath-not-workingOLD<ContentPresenterx:Name="contentPresenter" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" HorizontalAlignment="{TemplateBindi
阅读全文
摘要:http://stackoverflow.com/questions/4244793/listbox-not-showing-items-horizontally-after-using-theme <ListBox.ItemsPanel> <ItemsPanelTemplate> <WrapPane Orientation="Horizontal"l></WrapPanel> </ItemsPanelTemplate> </ListBox.ItemsPa...
阅读全文
摘要:public class ViewModelBase : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; protected virtual void OnPropertyChanged(string propertyName) { PropertyChangedEventHandler handler = this.PropertyChanged; if (handler != nul...
阅读全文
摘要: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...
阅读全文
摘要:[代码]
阅读全文
浙公网安备 33010602011771号