dialog

Using MVVM Foundation Messenger to Show Dialog

不问归期 提交于 2019-12-12 09:41:23
问题 I'm building a WPF app and trying to conform to MVVM best practices. I'm using the MVVM Foundation framework and noticed the Messenger class, which I've read should be used for handling dialogs in WPF. This sounds great, but I'm totally not understanding how to use a Messenger for this purpose. Literally, all I want to do is open a modal About dialog --I don't need to pass any messages back and forth. Was the intent of the Messenger class to be used for cases where dialogs require a message

Migrating the code from Bot Framework V3 to V4

我的未来我决定 提交于 2019-12-12 09:18:45
问题 I have more question while migrating the dialog from V3 to V4. below is our code. In v3, we were using Microsoft.Bot.Builder.Dialogs.Conversation.SendAsync(conversationContext.CurrentActivity, new RootDialog()); public class RootDialog : IDialog { public RootDialog() { ..... } public async Task StartAsync(IDialogContext context) { context.Wait(this.MessageReceivedAsync); } public virtual async Task MessageReceivedAsync(IDialogContext context, IAwaitable<IMessageActivity> result) { } In the

Preventing gtk FileChooserDialog calling stat on all files in the directory?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 08:59:40
问题 Opening a gtk FileChooserDialog is painfully slow for nfs directories containing many files. strace shows a lot of time calling "stat". About 5 calls for each of the files in the directory. How can we switch off the calls to 'stat' and just show a list of filenames without the modification time? We're using operating Redhat enterprise 4, x86_64, Linux 2.6.9-42.0.8.ELsmp and FileChooser is coming from: /usr/lib64/libgtk-x11-2.0.so.0.400.13 . A test program opens a FileChooserDialog and takes

How to get size of a custom dialog in android?

我怕爱的太早我们不能终老 提交于 2019-12-12 08:38:20
问题 I have a custom Dialog which is extended from dialog. in order to place component on it, I need to know the width of the dialog. how could I do it? Thanks EDIT: public class AnswerTypeDialog extends Dialog{ public AnswerTypeDialog(Context context) { super(context); mContext = context; } @Override protected void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); init(); } protected void init(){ ll=(RelativeLayout) LayoutInflater.from(mContext).inflate(R.layout

Custom dialog box in C#?

旧城冷巷雨未停 提交于 2019-12-12 08:28:28
问题 I have a button that when clicked, a dialog box opens up with various controls on it such as radio buttons and text boxes. If OK then the values in that dialog box is passed back to the button and the rest of the code is processed with those values. If Cancel then do nothing. How can I do this? I was thinking of making another form with those controls and have that button call the new form but I want the rest of the controls to stop until the form is completed like a dialog box. 回答1: 1.)

Visual Studio Publish Web Dialogue takes excessive time to load

删除回忆录丶 提交于 2019-12-12 08:21:25
问题 Whenever I launch the Visual Studio 2015 Publish Web Dialogue (or Visual Studio 2013, both have the same issue) for a specific project, it takes ~20-30 seconds for it to open. Just as well, when I switch between publish profiles it takes the same amount of time when I switch to a specific one . When I switch to Profile A in the list (from Profile B) it takes the same amount of time as it does when it launches the dialogue itself. When I switch from Profile A to the Profile B it doesn't take

Displaying alerts in Activity.onCreate(..)

ⅰ亾dé卋堺 提交于 2019-12-12 07:46:30
问题 I am new to Android and this is my first question here so please go easy on me. Is it possible to check some condition inside onCreate() of an Activity and display an AlertDialog? I am creating an AlertDialog anonymously in Oncreate() and calling show on that instance but the AlertDialog is never displayed. 回答1: Showing an alert dialog in onCreate causes android.view.WindowLeaked exception, because the activity isn't yet created. The solution I found is to put the code that shows the dialog

Android, How to fit message in Facebook dialog?

只谈情不闲聊 提交于 2019-12-12 06:36:49
问题 After two days of searching finally I could integrate Facebook SDK into my application. My problem is when I set bundle and show dialog interface, some parts of lines are out of screen. This is my code: private void postFacebookMessage() { Log.i(TAG, "Try to post message"); token = mFacebook.getAccessToken(); Log.i("token", "" + token); Bundle parameters = new Bundle(); parameters.putString("access_token", token); parameters.putString("message", "This is test message."); parameters.putString(

primefaces :dialog does not show 4

三世轮回 提交于 2019-12-12 06:18:42
问题 I have a problem with this component when I clik on this button, nothing appears,My Problem is p:dialog is not getting displayed,Please I need your help , I worked on primefaces 5.2 Liferay 6.2 , SDK 6.2 . <p:commandButton id="selectButton" icon="ui-icon-search" title="View" oncomplete="introViewDialog.show()" update=":form:displayForm" immediate="true" value="lister" > <f:setPropertyActionListener target="#{introBean.selectedIntro}" value="#{intro}"/> </p:commandButton> my form : <h:form id=

Display Dialog when loading internet

亡梦爱人 提交于 2019-12-12 06:04:15
问题 I am trying to create a dialog when loading Httprequest. But it load during the i click to intent from last Activity, but not the start of this Activity. And the dialog just shown in 0.00001sec then dismiss. Am i implement it wrongly? Here is my codes @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); HttpPostHandler2 handler = new HttpPostHandler2(); String URL ="http://xxxxxx"; handler.execute(URL); }