Skip to main content

All Questions

Tagged with
1 vote
2 answers
345 views

Bind Flyout MenuItem's Visibility within a DataTemplate in XAML / WP8.1

I want to bind the Visibility property on a Flyout MenuItem to a Boolean value on my ViewModel. Here is my ViewModel and related code: public class AppVM { public ObservableCollection<...
J86's user avatar
  • 15k
0 votes
3 answers
58 views

Collapsed Grid in StackPanel change position of other controls in StackPanel

I have this Xaml Page: <StackPanel Orientation="Horizontal"> <Grid x:Name="inkGrid0" Margin="0,0,0,0" HorizontalAlignment="Left" > <...
yalematta's user avatar
  • 1,389
1 vote
1 answer
84 views

Changing the UI from CLI to WPF

I am using c# wpf application and my main window contains a grid dividing my page into two columns. The first column contains buttons inside of a StackPanel and in it lies my problem: My code should ...
Yair Landmann's user avatar
0 votes
0 answers
282 views

UIElement.Visibility property performance

When you're changing the value of Visibility property on a UIElement object, is it more efficient to check before the value and set the new one only if different from the current if(MyUIElement....
Federinik's user avatar
  • 522
0 votes
1 answer
62 views

UserControl hidden, Zindex misused?

In my main page I try to show a list of stuff, and on this stuff a userControl as an overlay. In fact I never see it. (In the design view, my userControl is oaky) XAML MainPage <Grid> ...
Adrien Blaizot's user avatar
1 vote
2 answers
14k views

WPF: Binding to MainWindow Property

I am having an issue with binding to a parent MainWindow property, MainContentVisibility. I have the following code: MainWindow.xaml <Window x:Class="CallTracker.WPF.MainWindow" xmlns="...
BrianKE's user avatar
  • 4,155
0 votes
1 answer
171 views

Visibility converter based on another element width

I have a Silverlight application and I use MVVM. I would like to display or hide a TextBlock, based on another element current width (or window width at least...). The problem is that I currently ...
Gab's user avatar
  • 1,900
0 votes
1 answer
57 views

Settings Visibility of Grid Hides Another Grid

I have two grid controls sitting within the same row of a parent grid. <Grid x:Name="grdTimelinePlusControls" Grid.Row="1" Grid.ColumnSpan="3"> <Grid.RowDefinitions> <...
blawford's user avatar
  • 465
2 votes
1 answer
5k views

Hide Elements in DockPanel & Resize [duplicate]

<DockPanel> <TreeView DockPanel.Dock="Bottom" /> <DataGrid DockPanel.Dock="Bottom" Visibility="Collapsed"/> </DockPanel> Basically I want the first ...
user99999991's user avatar
  • 1,371
2 votes
0 answers
1k views

ContentControl Visibility over DataTemplate and DataContext property

Is there a posibility to change the visibility of the ContentControl over the DataTemplate of the content? I have the following situation: A custom control (button with four states - background image ...
WebDucer's user avatar
  • 1,134
4 votes
1 answer
4k views

Binding visibility property

I have gone through several questions regarding this but couldn't get proper answer. I dont know where am wrong with the following code. I am binding visibility property of TextBlock but its not ...
Balasubramani M's user avatar
2 votes
1 answer
129 views

Cannot read property '0' of undefined javascript

I'm having a extremely annoying error with a JavaScript project. I am working on a project where I to be able to show and collapse Ellipses from a roster. There are 3 values for each X axis, but with ...
Gijs's user avatar
  • 885
2 votes
1 answer
4k views

XAML Grid Visibility Transition?

I have a Grid that has Visibility bound to a property in my viewmodel. This all works fine -- the Grid appears/disappears correctly. My question is, how can I apply a transition so that instead of ...
Steve Macdonald's user avatar
99 votes
4 answers
66k views

Binding Visibility for DataGridColumn in WPF

How can I hide a column in a WPF DataGrid through a Binding? This is what I did: <DataGridTextColumn Header="Column header" Binding="{Binding ColumnValue}" ...
ygoe's user avatar
  • 19.8k
1 vote
1 answer
2k views

TargetName not found

I have two stackpanels on in another, the inner one has visibility "collapsed", it has the name "verborgen. When mouseOver the inner stackpanel needs to change to visibility "visible". So i use ...
user2827958's user avatar

15 30 50 per page