If I name each row and column in a grid, can I set a control's grid.row="Row_Top"? I have defined StaticResources to refer to it but is there a converter or some other method to accomplish this without the resource?
相关问题
- Tkinter Grid Columnspan ignored
- WPF Binding from System.Windows.SystemParameters.P
- Xamarin. The name 'authorEntry does not exist
- XAML: Applying styles to nested controls
- How to properly change a resource dictionary
相关文章
- WPF MVVMLight:在ViewModel中,开子线程为ObservableCollectio
- 关于ItemsControl的绑定问题
- XAML ComboBox SelectionChanged Fires OnLoad
- Show flyout using BottomAppBar
- How to add rows in middle of a table with jQuery?
- Why does my ScrollViewer destroy my Grid Layout? W
- Can I add/subtract value that is bound to an eleme
- How to overlay items in StackPanel or ListView?
As far as I know there's no built-in way to do it... however, you could use markup extensions to retrieve a row or column by its name :
You could then use these extensions as follows :
NOTE: if you compile these markup extensions in the same assembly as your application, the designer won't be able to call the constructor with a parameter (but it will work fine at runtime). This is a known bug that Microsoft doesn't intend to fix. If you want it to work at design time, put the markup extension in a separate assembly, or specify the RowName/ColumnName properties explicitly, as follows :