C# windows phone 8.1 Flyout questions

Hi to all,
I have 1 couple of questions about Flyout
in my xaml I have a Flyout like this:
<FlyoutBase.AttachedFlyout>
<Flyout>
<StackPanel Width="200">
<TextBlock Text="Minutes" FontSize="16" />
<TextBox x:Name="MinutesValueTextBox" InputScope="Number" />
<Button Content="Add" HorizontalAlignment="Center" FontSize="16" Click="AddReminder_Click" />
</StackPanel>
</Flyout>
</FlyoutBase.AttachedFlyout>
1) how can I get the value of the MinutesValueTextBox?
2) how can I hide the Flyout ?
Thanks in advance

Hi Vagelis Dermos,
>>1)how can I get the value of the MinutesValueTextBox?
In my mind, one way is to use the two way binding like the following:
<TextBox x:Name="MinutesValueTextBox" Text="{Binding Text,Mode=TwoWay}" InputScope="Number" />
After that it will become easy to get the value of the MinutesValueTextBox and that is how MVVM was meant to work.
For more information, please try to refer to the article about how to implement MVVM in Windows Phone:
https://msdn.microsoft.com/en-us/library/windows/apps/gg521153(v=vs.105).aspx .
>>2) how can I hide the Flyout ?
For example you have defined the following xaml:
<Grid Name="MyGrid" Background="RED" Width="100" Height="100" Tapped="MyGrid_Tapped">
<FlyoutBase.AttachedFlyout>
<Flyout>
<StackPanel Width="200">
<TextBlock Text="Minutes" FontSize="16" />
<TextBox x:Name="MinutesValueTextBox" Text="{Binding Text,Mode=TwoWay}" InputScope="Number" />
<Button Content="Add" Click="Button_Click" HorizontalAlignment="Center" FontSize="16" Click="AddReminder_Click"/>
</StackPanel>
</Flyout>
</FlyoutBase.AttachedFlyout>
</Grid>
Then we can use the Hide method to hide the Flyout as following:
FlyoutBase.GetAttachedFlyout((FrameworkElement)MyGrid).Hide();
Best Regards,
Amy Peng
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Andriod and windows phones have an option in whatsapp to send songs then my question is why not from ios ?

    andriod and windows phones have an option in whatsapp to send songs then my question is why not from ios ?

    ok thanks
    but there should some app by which it can be send

  • Open Question: question to those who comment about the lack of apps for Windows Phone 8

    We have read every Lumia review and we are listening. An open question to those who comment about the lack of apps for Windows Phone 8.Tell us which apps you miss? Nokia/MSFT Customer Care

    The major apps that are missing are Banking Apps.  There are a few, but major banks like Regions Bank, Capital One Bank, are nowhere to be found for Windows Phone.  Microsoft should be pursuing these banks to develop apps for the platform.  Maybe bribe them with free software or tech support or something.  Also some of the dating apps like Grindr for the gay community, Blender for the straight community, are lacking as well.  Perhaps Microsoft could assist them in developing the "unified" app for both Windows and Windows Phone?
    In fact, Microsoft would do well to begin a "Developer Assistance Program" where developers could (for a small fee) contact the DAP Center and get assistance with issues creating apps for the Windows Platform.  If developers know they have a source to go for assistance, they may be more inclinded to develop better apps.

  • Doubt regarding HTTP Live Streaming for windows phone 8.1 silverlight app?

    Hi,
    I am developing a Windows phone 8.1 silverlight app.
    I want to add live streaming youtube channel , thats why I used  https://phonesm.codeplex.com/ this link as a reference , and I am able to play the links given in the samples, but I am unable to play my link https://www.youtube.com/watch?v=p2GF-QQS6n0
    I am getting 3108 unable to play media error with my link,
    My question Is there any need of streaming server ?
    If yes can anyone help how to  create the streaming server.
    Thanks....
    Suresh.M

    Hi Suresh.M
    As I can see a similar question on the Windows Phone Streaming Media discussion:
    https://phonesm.codeplex.com/discussions/545737
    You may need check into the call stack and find out what is the root cause, for instance if there any chance that your phone cannot reach to the video address, and did you enable some network capabilities, etc.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Doubt regarding facebook integration for windows phone 8.1 silverlight app?

    Hi,
    I am developing a windows phone 8.1 silverlight application . For my application I integrated the facebook login. For this facebook integration I used the login with facebook app method.
    My doubt is after getting the app id from the dev center , I updated the appid at developers.facebook.com , wmmanifest.xml (In extensions protocol (msft-appid without dashes)) . Or do I need to change the product id in the place holder also , I tried to
    change the productid also but I am getting error like some signature is wrong try with different signature. I am confused how to do it .
    Any help,
    Thanks...
    Suresh.M

    Hi Suresh,
    According to your description, I assume you want to complete facebook configuration in windows phone silverlight app. Please refer to the following link to see how.
    http://facebooksdk.net/docs/phone/config/.
    You can find code sample from
    https://github.com/facebook-csharp-sdk/facebook-winclient-sdk/tree/master/Samples.
    Facebook API is third-party library and it is our of our support range. You can post questions on here.
    https://github.com/facebook-csharp-sdk/facebook-winclient-sdk/issues.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
    the survey.

  • Make clickable UI-elements for windows Phone 8.1 apps maps

    Windows Phone 8.1 App , C#
    I would like to let the user add Pushpins ( which apparently are called MapIcons ) to the map and when the user clicks the newly created Pushpin some other ui-elements should appear.
    But apparently MapIcons are not clickable and you can not inherit from them since they are sealed, so no luck in making them clickable.
    I tried to just extend from Windows.UI.Xaml.Controls.Button , but those have not Location, probably because the do not belong to the Windows.UI.Xaml.Controls.Maps-namespace. So I can not really add them to the Windows.UI.Xaml.Controls.Maps.MapControl.Children
    or Windows.UI.Xaml.Controls.Maps.MapControl.MapElements, since they will not be on the map where I would want them to be.
    So how do you make a clickable ui-element that I can give a location on the map?
    I already was here
    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn792121.aspx#showing_xaml_controls_and_shapes_on_the_map
    But I don't see how I can add clickable elements to my map
    I could write something like this of course
            <Maps:MapControl Grid.Row="1"
                x:Name="map"
                MapServiceToken="token"
                >
                <Maps:MapIcon>
                </Maps:MapIcon>
            </Maps:MapControl>
    But this MapIcon again is not clickable and it also staticly coded. I want to add mine dynamic.

    Hi Michael,
    Yes, as you said the MapIcon is not clickable, then for the workaround, please try to check the reply which posted by @Jogy in here:
    http://stackoverflow.com/questions/25377526/windows-phone-8-1-mapicon-click-event .
    Rest Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • SQLite3-WinRT / SQLite3Component for Windows Phone 8.1 (HTML5 & JavaScript)

    Dear all
    I am a newbie in the developpement for Windows 8.1 and Windows Phone 8.1.
    After a few weeks reading books and watching videos to learn developping Windows Store Apps 8.1 with HTML5 and JavaScript, I have started my very first serious application as a Universal Windows Store App using visual studio 2013 community edition. I would
    like to use SQLite for persisiting the data of my application.
    I installed the necessary extensions to VS2013 both for windows 8.1 and windows phone 8.1 (SDK + SQLite extension)
    I cloned the SQLite3-WinRT projet from GitHub, and, as VS2013 asked it, run the targetting process to upgrade to Windows 8.1.
    I successfully installed and tested SQLite3-WinRT using Javascript for the WIndows 8.1 part of my project.
    But when i tried to add the SQLite3Component project as a reference to my Windows Phone 8.1 project, VS2013 complained that SQLite3Component project is an invalid reference for a windows phone project... I can understand this as the SQLite3Component project
    seems to be a windows 8 only project.
    I have been looking for a solution for two days now without success and decided therefore to post my question here: is there a SQLite3Component project targetted for WINdows Phone 8(.1)? If not, what are my alternatives for persisting potentially large amount
    of data with advanced search queries locally on a windows phone?
    Thank you for any help the comunity could give me.
    Regards
    François

    While not specifically talking about JavaScript/HTML5 this article series outlines how to use SQLite in Universal App projects:
    http://blog.tpcware.com/2014/04/universal-app-with-sqlite-part-1/
    I have already used it from C# and given that we're talking about WinRT components it should be accessible from WinJS as well. Hope it helps.

  • No Jabber client for Windows Phone 8.1

    Can you advise on when a Jabber client for Windows Phone 8.1 will be released?

    Roadmap questions cannot be addressed here, either ask in a partner forum, or reach your SE/AM for this.

  • Inking for Windows Phone 8.1 (Not Silverlight)

    Is there any way to use Inking for Windows phone 8.1 application. I am able to use it in Silverlight application for freehand drawing.
    But is there anything available to use for this purpose in WinRT?

    Hi Morichi,
    As far as I known in Windows Phone 8.1 Runtime there is no such a Inking api or control as in Windows Phone 8.1 Silverlight app. If you want to implement the inking function in Windows phone 8.1 Runtime application, please try to refer to
    the @Rob Caplan - MSFT's reply in this thread:
    http://stackoverflow.com/questions/28862500/inking-for-windows-phone-8-1-not-silverlight .
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Windows Intune support deployment for windows phone (8.1) *.appx files

    Hi
    We are trying to deploy a windows phone 8.1 appx file with intune (over sccm console). the appx file is signed with a valid symantec certificate.
    the installation of the app fails, either when we upload the file as "Required" (so pushing it automatically to the devices) or when we make the app on the company portal app available. 
    in the sccm console the deployment status says failed -> unkonwn error.
    when we use .xap file of an windows 8.0 app, it works like a charm and the xap file is signed with the same certificate.
    My question is, is there no support for publishing windows phone 8.1 appx files on Intune? Or what can it be?
    Thanks for any hints

    UPDATE
    According to these links and the comments from Mitch Denny, can somebody confirm that .appx files (company apps) cannot be deployed/installed on windows phone 8.1 yet?
    http://blogs.technet.com/b/windowsintune/archive/2014/05/12/what-s-coming-next-with-windows-intune.aspx
    http://blogs.technet.com/b/windowsintune/archive/2014/04/28/availability-of-update-to-windows-intune-for-windows-phone-8-1-and-samsung-knox-standard.aspx
    I would really appreciate if someone can confirm me this, because im struggling with this since days and there is no official statement from MS.
    Thanks

  • Books about MVVM, architecture, design patterns for Windows Phone 8.1

    Hi,
    I'm looking for a book or books (or other resources) that explain how to develop an app with a proper architecture. I mean what each layer (bussines layer, data layer, network access) should do and how should it look like. I'm also looking for a book about
    MVVM.
    Right now I'm struggling with how to create a layer for network communication - how to separate classes for requests and responses, how to manage requests and create some queue of requests and also to provide some way to cancel them when they are no longer
    needed, how to work with servers that use some level of security (cookies, certificates etc.).
    Another thing is caching - how to design a short-term cache or a persistant cache (database), what technologies I can use etc.
    Last thing that I'm struggling with is also naming. How to name classes in those layers, e.g. to distinguish between classes mapping data from some ORM database, for mapping on JSON in network communication. etc.
    I hope you got the idea :)
    Thanks.

    Currently, I don't find a book about MVVM pattern for Windows Phone 8.1, but I think MSDN and some blogs have some useful samples and conceptions: http://msdn.microsoft.com/en-us/library/windows/apps/jj883732.aspx
    http://channel9.msdn.com/Series/Windows-Phone-8-1-Development-for-Absolute-Beginners
    And I think your question includes too much scopes, maybe you need to split it into some blocks and get help in the related forum
    Best Regards,
    Please remember to mark the replies as answers if they help

  • Simple upload image to amazon S3 winjs for windows phone 8.1?

    Hi
    Can behind simple upload image to amazon S3 winjs for windows phone 8.1?Thank

    Yes.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • How to create a VPN client for Windows Phone 8.1?

    We have our own VPN client for Windows and Android. I would like to create a VPN client  for Windows phone 8.1. After referring these site I found that there are some third
    party VPN plugins available for WP 8.1.
    I checked OpenVPN but it is also not available for WP 8.1.
    Is there any APIs available for creating a VPN client in WP 8.1 similar to
    VpnService provided by Android SDK ?

    The VPN APIs for WP8.1 are not open at this time.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Is there port of "HP Printer Control " app for Windows Phone?

    Are there port of "HP Printer Control " app for Windows Phone? This is at the same time request if there is not.
    Regards.

    Hello Zubru,
    I saw your post, good question! There are no apps at this time available for the windows phone however here is the link to the HP ePrint site to keep an eye out for any possible changes to that.
    Click the KUDOS star on the left to say “thanks” for helping!
    Please mark a reply “Accept as Solution” if it solved your issue so others can find it.
    I work on behalf of HP.
    I worked on behalf of HP.

  • Windows Phone - Cannot bind custom user controll with listview item source property

    It is Windows Phone 8.1 (runtime)
    I have some problem of binding custom user controll with list of data. I'll make it simple as I can.
    My problem is that somehow if I use DataBind {Binding Something} inside my custom controll it will not work.
    I need to transfer binded data (string) to custom controll.
    It is strange that if I do not use DataBind, it will work normally. Eg MyCustomControllParameter = "some string" (in my example 'BindingTextValue' property)
    Does anyone Know how to bind custom user controll with inside ListView with DataTemplate.
    Assume this:
    XAML Test-Main page
    <Grid  Background="Black">        <ListView x:Name="TestList" Background="#FFEAEAEA">                    <ListView.ItemTemplate>                <DataTemplate>                    <Grid Background="#FF727272">                        <local:TextBoxS BindingTextValue="{Binding Tag, FallbackValue='aSource'}" local:TextBoxS>                    </Grid>                </DataTemplate>            </ListView.ItemTemplate>        </ListView>    </Grid>
    XAML Test-Main page c#
    public sealed partial class MainPage : Page    {        List<TTag> tags = new List<TTag>();        public MainPage()        {            this.InitializeComponent();            this.NavigationCacheMode = NavigationCacheMode.Required;        }        public class TTag        {            public string Tag { get; set; }        }        private void InitializeAppData()        {            TTag tag = new TTag() { Tag = "hello world" };            tags.Add(tag);            tags.Add(tag);            tags.Add(tag);            TestList.ItemsSource = tags;        }             protected override void OnNavigatedTo(NavigationEventArgs e)        {            InitializeAppData();        }           }
    User Control XAML:
      <UserControl    x:Class="CustomControllTest.TextBoxS"    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    xmlns:local="using:CustomControllTest"    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"    mc:Ignorable="d"    d:DesignHeight="300"    d:DesignWidth="400">      <Grid x:Name="LayoutRoot" Background="#FF4F4F4F"   >        <RichTextBlock x:Name="MyTestBlock">        </RichTextBlock>    </Grid></UserControl>
    User Control c#
    public TextBoxS()       {            this.InitializeComponent();            LayoutRoot.DataContext = this;        }        public static readonly DependencyProperty BindingTextValueProperty = DependencyProperty.Register(                                         "BindingTextValue",                                         typeof(string),                                         typeof(TextBoxS),                                         new PropertyMetadata(default(string)));        public string BindingTextValue        {            get            {                return GetValue(BindingTextValueProperty) as string;            }            set            {                SetValue(BindingTextValueProperty, value);                //This method adds some custom logic into RichTextBlock, pointed correctly                SetupBox(value);            }        }
    Thanks for helping ;)

    If you use a built-in control rather than your custom control, does binding work? You should verify that first.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

Maybe you are looking for

  • Could not complete your request because DynamicLink is not available

    I am trying to open a video to edit in CS6 and I get this error: Could not complete your request because DynamicLink is not available I read on one of these formus that I should uninstall and reinstall the program. I tried to uninstall the program an

  • Exchange / ActiveSync - Works for a day or so, then stops

    I've had my iPhone 3G since launch and have configured it to work with my Exchange 2003 server utilizing activesync at work. It will connect and sync fine for a day or so, however then it will start giving me a "cannot get mail" "cannot connect to se

  • Easy DMS  - problem with  object linking (unicode client)

    Hi Gurus, I have a problem concerning linking a materialmaster to a DIR in a uniciode environment. I tested following scenarios: 1) Easy DMS 6.00 SP10 non unicode  +  non unicode Backend  -->  no problem 2) Easy DMS 6.00 SP10 non unicode  +  unicode

  • GetRows(), GetXML() VS. Oracle Objects...

    Hi! I've been working with OO4O for 2-3 months now. Since the Dynaset is RIDICULOUSLY slow, I always use GetRows() to get my data. But when I call GetRows() in a Dynaset containing objects (i.e. OraObject), all the objects fields are set to Nothing (

  • GCC onfocus window event differs between IE 6 and IE5

    I have a portlet.aspx in 4.5ws that currently contains a list of items that are essentially anchor tags.   When a user clicks on the link a new window is opened to display the data, when the user closes the new window the onfocus event is fired and t