No announcements
Found 3304317 threads
-
1 Votes
Can't access textbox in datacontext in hubsection from code behind
If you want to access the TextBox in the AnyKeyDown event handler you could just cast the sender object: private async void AnyKeyDown(object sender, ...Answered | 2 Replies | 1397 Views | Created by Mujtaba Idrees - Sunday, October 19, 2014 11:33 AM | Last reply by Mujtaba Idrees - Sunday, October 19, 2014 12:08 PM -
0 Votes
Access Data Inside HubSection
Since it is not possible to access your controls inside DataTemplate therefore, either you should do any actions on their Loaded Event or make a separate UserControl and add it to the Hub ...Answered | 2 Replies | 1868 Views | Created by GhadaNaim - Monday, December 30, 2013 8:10 PM | Last reply by Arafat Tehsin - Tuesday, December 31, 2013 7:31 AM -
1 Votes
[WP8.1] Can't find element inside HubSection
But the code i posted in the first post was actually called from Loaded event of page itself, inside which only i was getting reference to some UI elements and not for some.Answered | 6 Replies | 1174 Views | Created by Vineet24 - Thursday, July 30, 2015 6:23 AM | Last reply by Vineet24 - Wednesday, August 5, 2015 5:38 AM -
0 Votes
How to set DataContext in VS2010 or code behind.
I see its point but I tried adding an instance of the ModelView Class to the code behind file but it doesn't work in the XML for DataContext shown above.Answered | 4 Replies | 3577 Views | Created by Voast Dev - Saturday, July 21, 2012 2:40 AM | Last reply by Voast Dev - Saturday, July 21, 2012 3:29 PM -
1 Votes
Adding HubSections dynamically
You could add a Loaded event handler to the StackPanel, and then any code you write here will have direct access to that StackPanel.Answered | 6 Replies | 7455 Views | Created by PatFatCat - Monday, August 19, 2013 5:42 PM | Last reply by PatFatCat - Tuesday, August 20, 2013 11:05 PM -
0 Votes
Problem with move a Path element from XAML data binding to the DataContext specified in the code-behind
I went ahead and moved the binding entirely into the code as you suggested, and it works well.Answered | 4 Replies | 4828 Views | Created by Scott_McG - Saturday, April 4, 2009 8:25 PM | Last reply by Scott_McG - Monday, April 6, 2009 9:46 PM -
2 Votes
Using ViewModel Properties in the Code-Behind
Then, like I said in my previous post, you can get the instance from the Window.DataContext property, cast it to your ViewModel type, and access the ViewModel properties.Answered | 8 Replies | 25320 Views | Created by Adel K - Friday, July 29, 2011 10:18 PM | Last reply by Andrey Danilchenko - Saturday, July 30, 2011 8:31 PM -
1 Votes
Navigation back to HubSection
>When I click on back it is navigating to the 1st hubsection but not to the one from which I opened the item page One way for solving your issue is to ...Answered | 3 Replies | 692 Views | Created by Krushi Raj Tula - Sunday, May 17, 2015 10:56 AM | Last reply by Krushi Raj Tula - Monday, June 8, 2015 7:37 AM -
0 Votes
[WP8.1][XAML]HubSection Width as 0
>Is there any possibility to set HubSection width to 0?Answered | 1 Replies | 626 Views | Created by undertaker_ - Wednesday, July 1, 2015 9:53 AM | Last reply by Amy Peng - Thursday, July 2, 2015 6:03 AM -
0 Votes
Passing selected list items to a hubsection
There's not so much more to it really.I can give you some sample code - which is intended to share a setting between charms and elsewhere in the app.Answered | 4 Replies | 764 Views | Created by Aiseduk - Saturday, June 20, 2015 1:07 PM | Last reply by Andy ONeill - Monday, June 22, 2015 8:26 AM -
0 Votes
[UWP][XAML] fit HubSection width to screen
If the hubsection fits to the content, you also have to adjust the content.Answered | 3 Replies | 2005 Views | Created by rlu-jojo - Tuesday, November 3, 2015 10:26 AM | Last reply by YoMace - Monday, November 16, 2015 4:40 PM -
0 Votes
Focus TextBox from Keypress in Window, not using code behind and viewmodel
>In a WPF window, is there a way to focus a UIElement, e.g. a textbox, from a keybinding (a keypress) in pure XAML.Answered | 3 Replies | 1778 Views | Created by Jesper Findahl Nielsen - Wednesday, September 28, 2016 6:21 AM | Last reply by Magnus (MM8) - Thursday, September 29, 2016 9:10 PM -
0 Votes
DataContext
Hi, I think what you are missing is setting the Window's datacontext ion the constructor public ...Answered | 9 Replies | 3516 Views | Created by qpiles - Tuesday, July 31, 2012 7:30 AM | Last reply by Kee Poppy - Tuesday, August 7, 2012 8:09 AM -
0 Votes
get text from a TextBox
Right now, the Textboxes were generated by blend in a DataTemplatein App.xaml <DataTemplate x:Name="PostAnEventBlocks" ...Answered | 2 Replies | 1134 Views | Created by DrakeTX - Thursday, August 14, 2014 9:46 PM | Last reply by DrakeTX - Friday, August 15, 2014 6:53 PM -
0 Votes
Access List control in code-behind
Hi Pete One generic way is to hook an event handler to the control's ControlAvailable event and get the control from the event and store it in a local variable and then use ...Answered | 1 Replies | 5584 Views | Created by pdangelo22 - Tuesday, June 21, 2011 1:12 AM | Last reply by Kostas Christodoulou - Monday, June 27, 2011 1:41 PM -
0 Votes
XmlDataProvider and XMLDocument loaded as string from code behind
" In code-behind this is how the XML document is loaded with a string at runtime: xmlDoc.LoadXml(e.data) Any hints on how to ...Answered | 1 Replies | 5160 Views | Created by AlexRMuc - Friday, October 22, 2010 11:11 AM | Last reply by Olaf Rabbachin - Saturday, October 23, 2010 9:59 AM -
0 Votes
[UWP]HubSection background flashes on Windows 10 - Fixed on 10586 build
Here is my XAML code: <Hub Header="MyHubTest"> <HubSection ...Answered | 4 Replies | 1017 Views | Created by Sylvain Bruyère - Friday, August 21, 2015 5:46 PM | Last reply by Sylvain Bruyère - Monday, February 1, 2016 12:14 AM -
2 Votes
I need to access the properties of a datacontext using reflection.
Ok so I'm able to get my db field names from my datacontext, however I'm stuck when I loop through all my textboxes and try to set the .Text property to equal the ...Answered | 6 Replies | 3923 Views | Created by Kenneth MacDonald - Friday, July 3, 2009 9:46 PM | Last reply by Kenneth MacDonald - Tuesday, July 7, 2009 3:41 AM -
0 Votes
Multiple DataContexts
I have a MainWindow with a DataContext On this MainWindow I have a UserControl which has a bunch of Text boxes which are bound to data from the MainWindow's ...Answered | 5 Replies | 896 Views | Created by pczurak - Saturday, February 22, 2014 11:11 PM | Last reply by pczurak - Sunday, February 23, 2014 11:37 PM -
2 Votes
Object not accessable from asp.net code behind page
Firstly, You cannot access GridView Directly like this: GridView2.DataSource = ...Answered | 2 Replies | 6203 Views | Created by Ben Ringrose - Tuesday, September 10, 2013 11:18 AM | Last reply by CoolDadTx - Tuesday, September 10, 2013 2:11 PM - Items 1 to 20 of 3304317 Next ›
No announcements