本文整理汇总了C#中System.Windows.Controls.SelectionChangedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# SelectionChangedEventArgs类的具体用法?C# SelectionChangedEventArgs怎么用?C# SelectionChangedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SelectionChangedEventArgs类属于System.Windows.Controls命名空间,在下文中一共展示了SelectionChangedEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: checkerGrid_SelectionChanged
/// <summary>
/// 安检单列表选择改变
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void checkerGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
GeneralObject item = checkerGrid.SelectedItem as GeneralObject;
if (item == null)
return;
GeneralObject go = new GeneralObject();
go.WebClientInfo = Application.Current.Resources["dbclient"] as WebClientInfo;
go.EntityType = "T_INSPECTION";
if (!item.GetPropertyValue("CONDITION").Equals("未检"))
{
go.Path = "one/select distinct t from T_INSPECTION t left join fetch t.LINES where t.id ='" + item.GetPropertyValue("id").ToString() + "'";
go.DataLoaded += go_DataLoaded;
//if (!item.GetPropertyValue("CONDITION").Equals("正常"))
// userfile.IsEnabled = false;
//else
// userfile.IsEnabled = true;
go.Load();
}
else
{
userfile.DataContext = null;
ClearAll();
//userfile.IsEnabled = false;
}
}
示例2: LongListSelector_SelectionChanged
private void LongListSelector_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
LongListSelector selector = sender as LongListSelector;
//verifying our sender is actually a LongListSelector
if (selector == null)
return;
SoundData data = selector.SelectedItem as SoundData;
//verifying our sender is actually SoundData
if (data == null)
return;
if (File.Exists(data.FilePath))
{
AudioPlayer.Source = new Uri(data.FilePath, UriKind.RelativeOrAbsolute);
}
else
{
using (var storageFolder = IsolatedStorageFile.GetUserStoreForApplication())
{
using (var stream = new IsolatedStorageFileStream(data.FilePath, FileMode.Open, storageFolder))
{
AudioPlayer.SetSource(stream);
}
}
}
selector.SelectedItem = null;
}
示例3: SelectionChanged
private void SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (directDeleteRadioButton.IsChecked == true)
{
RemoveItem();
}
}
示例4: Purpose_Combo_SelectionChanged
private void Purpose_Combo_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (this.IsInitialized)
{
refresh();
}
}
示例5: combo1_SelectionChanged
private void combo1_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
var classType = combo1.SelectedValue as Type;
shapeWidth.IsEnabled = true;
int argCount = NumberOfArguments(classType.Name);
shapeHeight.IsEnabled = (argCount > 1);
}
示例6: OnSelectionChanged
protected override void OnSelectionChanged(SelectionChangedEventArgs e)
{
base.OnSelectionChanged(e);
if (this.SelectedIndex != CompilerMessageView.Instance.SelectedCategoryIndex) {
CompilerMessageView.Instance.SelectedCategoryIndex = this.SelectedIndex;
}
}
示例7: Student_Combo_SelectionChanged
private void Student_Combo_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (event_running) return;
event_running = true;
runEvent();
event_running = false;
}
示例8: Help3CatalogsSelectionChanged
void Help3CatalogsSelectionChanged(object sender, SelectionChangedEventArgs e)
{
string item = (string)help3Catalogs.SelectedValue;
if (!string.IsNullOrEmpty(item)) {
Help3Service.ActiveCatalogId = item;
}
}
示例9: symbolCombo_SelectionChanged
// Cancel current shape request when the symbol selection changes
private async void symbolCombo_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (MyMapView.Editor.IsActive)
MyMapView.Editor.Cancel.Execute(null);
await AcceptPointsAsync();
}
示例10: Letters_SelectionChanged
private void Letters_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (this.listLetters.SelectedIndex == -1)
return;
NavigationService.Navigate(new Uri("/Views/Words.xaml?nid=0&l=" + AppSettings.CyrillicLetters[this.listLetters.SelectedIndex], UriKind.Relative));
this.listLetters.SelectedIndex = -1;
}
示例11: ArrangementList_SelectionChanged
private void ArrangementList_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
curArr = ArrangementList.SelectedIndex;
if (curArr < 0)
return;
UpdateArrangement();
}
示例12: lstGroups_SelectionChanged
private void lstGroups_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (lstGroups.SelectedIndex > -1)
{
NavigationService.Navigate(new Uri("/GroupDetailPage.xaml?ID=" + (lstGroups.SelectedItem as RecipeDataGroup).UniqueId, UriKind.Relative));
}
}
示例13: lstAdapters_SelectionChanged
private void lstAdapters_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
lstAdapterItem selItem = ((lstAdapterItem)lstAdapters.SelectedItem);
TextBox dnsBox = new TextBox() { Text = selItem.PrimaryDNS };
TiltEffect.SetIsTiltEnabled(dnsBox, true);
CustomMessageBox messageBox = new CustomMessageBox()
{
Caption = "Edit DNS for " + selItem.Name,
Message = "Primary DNS Server:",
Content = dnsBox,
LeftButtonContent = "save",
RightButtonContent = "cancel",
IsFullScreen = false
};
messageBox.Dismissed += (s1, e1) =>
{
if (e1.Result == CustomMessageBoxResult.LeftButton)
{
Registry.SetMultiStringValue(selItem.KeyRoot, selItem.KeyPath, "DNS", new string[] { dnsBox.Text });
//TODO: Clear the list first
refreshAdapters();
}
//TODO: Fix this
//lstAdapters.SelectedIndex = -1;
};
messageBox.Show();
}
示例14: comboBoxCameras_SelectionChanged
private void comboBoxCameras_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
_cameraFrameSource.Camera = comboBoxCameras.SelectedItem as Camera;
panelCameraInfo.Visibility = comboBoxCameras.SelectedItem != null
? Visibility.Visible
: Visibility.Collapsed;
}
示例15: lvItems_SelectionChanged
private void lvItems_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
StockList.Value v = (StockList.Value)lvItems.SelectedItem;
if (v != null)
{
XmlDataProvider provider = (XmlDataProvider)grdRssFeed.FindResource("rssData");
switch (v.Market)
{
case "NASDAQ":
provider.Source = new Uri("http://articlefeeds.nasdaq.com/nasdaq/symbols?symbol=" + v.Symbol);
break;
case "LSE":
provider.Source = new Uri("http://www.londonstockexchange.com/exchange/CompanyNewsRSS.html?newsSource=RNS&indexSymbol=ASX");
break;
case "DAX":
provider.Source = new Uri("http://feeds.finance.yahoo.com/rss/2.0/headline?s=" + v.Symbol + "®ion=US&lang=en-US");
break;
}
if (!couchDb.isMyStock(v.Symbol))
{
btnDelete.Visibility = System.Windows.Visibility.Collapsed;
btnAdd.Visibility = System.Windows.Visibility.Visible;
}
else
{
btnDelete.Visibility = System.Windows.Visibility.Visible;
btnAdd.Visibility = System.Windows.Visibility.Collapsed;
}
wbChart.Navigate(new Uri("http://83.254.83.56:8001/files/highcharts/chart.html?symbol=" + v.Symbol + "&market=" + v.Market.ToLower()));
}
}